How can I include version number in output file name?

100 Views Asked by At

I'm using XML Manifest File and I'd like to have the project build version concatenated in the output file name

e.g: library-1.0.0.js

Is it possible or any work around?

1

There are 1 best solutions below

0
On

Use https://msbuildextensionpack.codeplex.com/

 <MSBuild.ExtensionPack.Framework.Assembly TaskAction="GetInfo" NetAssembly="$(OutputPath)\xxx.dll" >
     <Output TaskParameter="OutputItems" ItemName="Info" />
     </MSBuild.ExtensionPack.Framework.Assembly>
     <Message Text="Version: %(Info.AssemblyVersion)" Importance="high" />