Applying build.number in sln2008 build runner

Does anyone know of a way to update the build version number in a C# project being built through the sln2008 build running? I'm wondering if I need to move to a NANT script to change my product version on each build.

-Richard

1 comment
Comment actions Permalink

This is possible.You may reference it in MSBuild by $(build_number).
Secondly, you will need to update AssemblyInfo.cs(.vb) files to set the version.
You may write a custom task to generate AsseblyInfo file or to patch existing one.
Have a look to MSBuild Community tasks for a task to generate AsseblyInfo.cs

We have an related issue in your tracker, please have a look/watch/vote for it at
http://www.jetbrains.net/tracker/issue/TW-6637

Thanks!

0

Please sign in to leave a comment.