# Add an option in &#91;Build VS.Net Solution&#93;: restore AssemblyInfo.cs after compile

**URL:** https://www.finalbuilder.com/forums/t/add-an-option-in-91-build-vs-net-solution-93-restore-assemblyinfo-cs-after-compile/4194
**Category:** Feature Requests
**Created:** [August 8, 2013, 8:44am UTC](https://www.finalbuilder.com/forums/t/add-an-option-in-91-build-vs-net-solution-93-restore-assemblyinfo-cs-after-compile/4194 "2013-08-08T08:44:37Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sunchao2](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@sunchao2](https://www.finalbuilder.com/forums/u/sunchao2)
#### Post date: [August 8, 2013, 8:44am UTC](https://www.finalbuilder.com/forums/t/add-an-option-in-91-build-vs-net-solution-93-restore-assemblyinfo-cs-after-compile/4194/1 "2013-08-08T08:44:37Z")

</div>

the action [Build VS.Net Solution] will modify AssemblyInfo.cs and create AssemblyInfo.cs.bak

I hope to restore&nbsp;AssemblyInfo.cs after the action is completed.

&nbsp;

1. add a option in action [Build VS.Net Solution]

2. add a action [restore AssemblyInfo.cs for Build VS.Net Solution]

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [August 9, 2013, 12:47pm UTC](https://www.finalbuilder.com/forums/t/add-an-option-in-91-build-vs-net-solution-93-restore-assemblyinfo-cs-after-compile/4194/2 "2013-08-09T12:47:12Z")

</div>

Generally I use a source control repository and have my final builder project retrieve the code to an independent location before running all the Final Builder project actions. This makes sure I have all the required parts in an Archive file, so if I want to rebuild from the actual code for that version I can.   
  
 Alternatively if you were using Continua CI server, it would do all the assemblyinfo manipulation independently of your development codebase. It’s super cool product.

---

<div class="post-metadata">

### Author: ![sunchao2](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@sunchao2](https://www.finalbuilder.com/forums/u/sunchao2)
#### Post date: [August 9, 2013, 11:08am UTC](https://www.finalbuilder.com/forums/t/add-an-option-in-91-build-vs-net-solution-93-restore-assemblyinfo-cs-after-compile/4194/3 "2013-08-09T11:08:11Z")

</div>

Hi Jamie,   
  
 In automated script, I do the same thing as you suggested.   
 But there are some script that I run manually, I don’t want to make the script unnecessary complex.   
  
 Since you don’t want to add this feature, I have to write my own code to accomplish it.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [August 9, 2013, 12:56pm UTC](https://www.finalbuilder.com/forums/t/add-an-option-in-91-build-vs-net-solution-93-restore-assemblyinfo-cs-after-compile/4194/4 "2013-08-09T12:56:33Z")

</div>

Hehe Sunchao, I don’t work for Vsoft Technologies. Final builder and continua are great products IMHO.   
  
 Over the years I’ve found they just keep improving the software actions, so you end up refactoring your projects and simplifying the CI processes. It’s the one area of the software process that I really enjoy, thanks to Final Builder.   
  
 With respect to the script complexity, have you had a look at the “Include Project action” to simplify the process. I’ve found that I can use variables and include project actions to make fairly generic templates for most of my software projects. I’ve almost got to the point that I just copy and paste actions and each projects standardised variables just slot in.

---

<div class="post-metadata">

### Author: ![sunchao2](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@sunchao2](https://www.finalbuilder.com/forums/u/sunchao2)
#### Post date: [August 12, 2013, 4:28am UTC](https://www.finalbuilder.com/forums/t/add-an-option-in-91-build-vs-net-solution-93-restore-assemblyinfo-cs-after-compile/4194/5 "2013-08-12T04:28:22Z")

</div>

Hi Jamie,   
  
 Sorry for my mistake.   
 I started using Final Builder in 2005.   
 “Include Project action” is used in my script too, which likes a function in programming language.   
  
 Final builder is a handy tool to check out source code, update version & compile, create installer…
