The script is written in VBScript and is quite simple.
read the project file passed in the command line, e.g., Setup.vdproj
backup the original file, just in case something goes wrong ;-)
find the version number
increment the version number
replace the version number with the new value
replace the product code with a new GUID
replace the package code with a new GUID
write the updated project file back to disk
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Set version number...
Thursday, 7 March 2013
Insert SVNRevision and Build number in your AssemblyInfo
09:35
No comments
Insert SVNRevision and Build number in your AssemblyInfo
MSBuild Community Task, you can easily automatically generate smart version numbers, you have to:
Download MSBuildCommunityTasks " https://github.com/loresoft/msbuildtasks/downloads "
Make sure your “svn.exe” binary is in C:\program files\subversion\bin
Add this at the end of your .csproj /.vbproj file
**AssemblyInfo Update when project build in release mode
<!-- Import of the MSBuildCommunityTask targets --><Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"...
Subscribe to:
Posts (Atom)