View gist:9b81308e6f300aba6ea57a7514fc6333
<!-- This Using task gets the file version of the assembly passed in "AssemblyPath" and returns the "Version" --> | |
<UsingTask TaskName="GetFileVersion" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> | |
<ParameterGroup> | |
<AssemblyPath ParameterType="System.String" Required="true" /> | |
<Version ParameterType="System.String" Output="true" /> | |
</ParameterGroup> | |
<Task> | |
<Using Namespace="System.Diagnostics" /> | |
<Code Type="Fragment" Language="cs"> |