forked from bobhelander/EDForceFeedback
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
12 lines (12 loc) · 732 Bytes
/
Directory.Build.targets
File metadata and controls
12 lines (12 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
<Project>
<!-- Generate VersionInfo.g.cs for projects with manual AssemblyInfo (GenerateAssemblyInfo=false) -->
<Target Name="GenerateVersionInfo" BeforeTargets="BeforeBuild"
Condition="'$(GenerateAssemblyInfo)' == 'false'">
<MakeDir Directories="$(IntermediateOutputPath)" Condition="!Exists('$(IntermediateOutputPath)')" />
<WriteLinesToFile File="$(IntermediateOutputPath)VersionInfo.g.cs" Overwrite="true"
Lines="using System.Reflection%3B%0D%0A[assembly: AssemblyVersion("$(AssemblyVersion)")]%0D%0A[assembly: AssemblyFileVersion("$(FileVersion)")]" />
<ItemGroup>
<Compile Include="$(IntermediateOutputPath)VersionInfo.g.cs" />
</ItemGroup>
</Target>
</Project>