2014-01-21 60 views

回答

0

使用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" /> 
相关问题