-
Notifications
You must be signed in to change notification settings - Fork 30
/
VsdConfig.targets
21 lines (19 loc) · 1.15 KB
/
VsdConfig.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="GenerateVsdconfig"
AfterTargets="CoreCompile"
BeforeTargets="AfterCompile"
Inputs="@(VsdConfigXml);$(IntermediateOutputPath)\$(AssemblyName).dll;@(VsdConfigXmlAdditionalAssemblies)"
Outputs="$(OutDir)\$(AssemblyName).vsdconfig"
Condition="'$(BuildingProject)' == 'true' AND '@(VsdConfigXml)' != ''">
<PropertyGroup>
<_VsdConfigTool>%VsSDKToolsPath%\vsdconfigtool.exe</_VsdConfigTool>
</PropertyGroup>
<Exec Command=""$(_VsdConfigTool)" @(VsdConfigXml -> '"%(RelativeDir)%(FileName)%(Extension)"', ' ') "$(IntermediateOutputPath)\$(AssemblyName).dll" @(VsdConfigXmlAdditionalAssemblies -> '"%(RelativeDir)%(FileName)%(Extension)"', ' ') "$(OutDir)\$(AssemblyName).vsdconfig"" />
</Target>
<Target Name="VsdConfigOutputGroup" Outputs="@(VsdConfigOutputGroupOutput)">
<ItemGroup>
<VsdConfigOutputGroupOutput Include="$(OutDir)\$(AssemblyName).vsdconfig" />
</ItemGroup>
</Target>
</Project>