In the last two articles I showed how we can set up FAKE to make an automated build and how we can use it with FxCop. This time we will use FAKE’s AssemblyInfo task in order to set a specific version info to our assemblies.
I assume you have succeeded the CaculatorSample tutorial. If so then just modify your “BuildApp” target to the following:
As you can see modifying your AssemblyInfo.cs file is pretty easy with FAKE. The AssemblyInfo task works for C#, VB.Net and F#. The version parameter can be declared as a property or fetched from a build server like TeamCity:
Image may be NSFW.
Clik here to view.
Original article: Modifying AssemblyInfo and Version via FAKE – F# Make
©2013 Rash thoughts about .NET, C#, F# and Dynamics NAV.. All Rights Reserved.