Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] Third Party Tools (https://www.kinook.com/Forum/forumdisplay.php?f=3)
-   -   .NET solution version stamp (https://www.kinook.com/Forum/showthread.php?t=1550)

jkuo 02-13-2006 05:35 PM

.NET solution version stamp
 
We want our .NET projects to increment their file/product version with each build but the assembly version to stay static throughout the release. So in our build projects, in the Versions tab in the .NET build step, the "Update Assembly version" is unchecked and the file/product versions are set to our dynamic build number.

VBP adds the AssemblyFileVersionAttribute to assemblyinfo.cs for every project in the solution during build. A developer argued that solutioninfo.cs should be the right place for it since there are many projects in a solution and they all carry the same version. What exactly is the right place for this information? Is there anyway we can have it in both places? (currently VBP errs out if it appears in solutioninfo.cs).

Thanks.


Jessie

kinook 02-14-2006 07:54 AM

You can put them in either place. When building a solution or project and specifying version settings, the Make VS.NET action will create/update the related attribute in each project's AssemblyInfo.cs file. Alternatively, if you want to store the version value in a common file, modify the build VS.NET step to not set/increment versions, and create a separate 'no build' Make VS.NET step to update the version value on a specific .cs file. See http://www.visualbuild.com/Manual/vs...olutiontab.htm for more details.


All times are GMT -5. The time now is 12:49 AM.


Copyright © 1999-2023 Kinook Software, Inc.