# Build VS.Net Solution

**URL:** <https://www.finalbuilder.com/forums/t/build-vs-net-solution/3348>\
**Category:** Bugs\
**Created:** [April 7, 2011, 11:57am UTC](https://www.finalbuilder.com/forums/t/build-vs-net-solution/3348 "2011-04-07T11:57:10Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [April 7, 2011, 11:57am UTC](https://www.finalbuilder.com/forums/t/build-vs-net-solution/3348/1 "2011-04-07T11:57:10Z")

</div>

Hi there

we build our projects with the Build VS.Net SolutionAction and would like to update our AssemblyInfo.vb with the .NET Version in this Action.

In our AssemblyInfo.vb are more then one AssemblyVersion, AssemblyTitle and so on. Wraped with precompilervariables like this:

.#If VERSION\_IS\_PRODUCT1 Then  
.Assembly: AssemblyCompany("company1")  
.Assembly: AssemblyProduct("produkt1")  
.Assembly: AssemblyVersion("1.2.3.4")  
.Assembly: AssemblyFileVersion("1.2.3.4")  
.Assembly: AssemblyTitle("titel1")  
  
  
#ElseIf VERSION\_IS\_PRODUCT2 Then  
.Assembly: AssemblyCompany("company2")  
.Assembly: AssemblyProduct("produkt2")  
.Assembly: AssemblyVersion("4.5.6.7")  
.Assembly: AssemblyFileVersion("4.5.6.7")  
.Assembly: AssemblyTitle("titel2")

#EndIf

&nbsp;

If I set the precompilervariable "VERSION\_IS\_PRODUCT2" and run the Action, only the AssemblyInformation of the "VERSION\_IS\_PRODUCT1" are updated. It looks like the action takes the first Assemblytags which he founds.

Hope u can fix this.

&nbsp;

Thank you

greeting from Germany

Manni

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [April 7, 2011, 3:05am UTC](https://www.finalbuilder.com/forums/t/build-vs-net-solution/3348/2 "2011-04-07T03:05:41Z")

</div>

The action uses regex (with a small bit of extra logic) to find an update assembly info , so it has no way of handling IFDEFS. I would question why you even need the ifdefs since you are setting the attributes at build time anyway?

---

<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:** [April 7, 2011, 6:13am UTC](https://www.finalbuilder.com/forums/t/build-vs-net-solution/3348/3 "2011-04-07T06:13:06Z")

</div>

Thank you for the fast awnser.   
 To your question: We have one Project for more then one Company.   
 We handel color and some menupoints with ifdefs. Our licencemodul is managed by AssemblyProduct   
 so even in the time of programming we need the right Assemblyiinformations, thats why we use ifdefs.   
  
 Thanks for your time   
 Manni
