Msbuild stuff
useful additions to build filesThe project files for MsBuild can be extended to do useful things during the build process.
I collected a few ideas to make my projects more useful.
Getting the build time into code #
One can add a build target that gets executed before compiling. This one adds a new file which gets recreated each time. Then, a BuildVersion.Version is available in CSharp.
|
|
Copying after creating a publish version #
One can add a build target after the publishing, f.e. to copy the binary files to a specific location.
|
|