Updating assemblyinfo

Recently we just added a new task which will parse the Assembly file and increment the version number of the Assembly.Basically all we are doing is opening up the Assembly class and reading it in and then splitting it into a string array.Script is compatible with both MSBuild and xbuild and can be build on Windows and Linux using both . Read more about restoring packages and other build steps in my post about building and testing.

Then an assembly will have exactly that version we need.Every time assembly is rebuild build counter increases.Sample solution is available for download here https://github.com/mchudinov/Versioning.To set the version numbers we can use MSBuild Extension Pack.– Install MSBuild Extension pack Nu Get package to the solution – Add project build file to the solution If there is no MSBuild project file there yet add it.

Leave a Reply