-
Notifications
You must be signed in to change notification settings - Fork 26
/
transform.targets
75 lines (75 loc) · 3.27 KB
/
transform.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Condition="'$(VisualStudioVersion)'=='17.0'"
Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v17.0\TextTemplating\Microsoft.TextTemplating.targets" />
<Import Condition="'$(VisualStudioVersion)'=='16.0'"
Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v16.0\TextTemplating\Microsoft.TextTemplating.targets" />
<PropertyGroup>
<TransformOnBuild>true</TransformOnBuild>
<TransformOutOfDateOnly>true</TransformOutOfDateOnly>
<AssemblyRef_Microsoft_VisualStudio_Interop
Condition="'$(AssemblyRef_Microsoft_VisualStudio_Interop)' == ''
AND (
'$(VisualStudioVersion)' != '17.0'
)"
>System</AssemblyRef_Microsoft_VisualStudio_Interop>
<AssemblyRef_Microsoft_VisualStudio_Interop
Condition="'$(AssemblyRef_Microsoft_VisualStudio_Interop)' == ''
AND (
'$(VisualStudioVersion)' == '17.0'
)"
>$(VsInstallRoot)\Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.Interop.dll</AssemblyRef_Microsoft_VisualStudio_Interop>
<AssemblyRef_EnvDTE
Condition="'$(AssemblyRef_EnvDTE)' == ''"
>$(VsInstallRoot)\Common7\IDE\PublicAssemblies\EnvDTE.dll</AssemblyRef_EnvDTE>
<VsSdk_Shell_Interop
Condition="'$(VsSdk_Shell_Interop)' == ''"
>$(VsInstallRoot)\Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.Shell.Interop.dll</VsSdk_Shell_Interop>
</PropertyGroup>
<Target Name="PrepareTransform">
<ItemGroup>
<T4TransformInputs Include="@(T4Template)"/>
<T4ParameterValues Include="SolutionDir">
<Value>$(SolutionDir)</Value>
<Visible>false</Visible>
</T4ParameterValues>
<T4ParameterValues Include="DevEnvDir">
<Value>$(DevEnvDir)</Value>
<Visible>false</Visible>
</T4ParameterValues>
<T4ParameterValues Include="Configuration">
<Value>$(Configuration)</Value>
<Visible>false</Visible>
</T4ParameterValues>
<T4ParameterValues Include="VisualStudioVersion">
<Value>$(VisualStudioVersion)</Value>
<Visible>false</Visible>
</T4ParameterValues>
<T4ParameterValues Include="VCTargetsPath">
<Value>$(VCTargetsPath)</Value>
<Visible>false</Visible>
</T4ParameterValues>
<T4ParameterValues Include="AssemblyRef_EnvDTE">
<Value>$(AssemblyRef_EnvDTE)</Value>
<Visible>false</Visible>
</T4ParameterValues>
<T4ParameterValues Include="AssemblyRef_Microsoft_VisualStudio_Interop">
<Value>$(AssemblyRef_Microsoft_VisualStudio_Interop)</Value>
<Visible>false</Visible>
</T4ParameterValues>
<T4ParameterValues Include="VsSdk_Shell_Interop">
<Value>$(VsSdk_Shell_Interop)</Value>
<Visible>false</Visible>
</T4ParameterValues>
</ItemGroup>
</Target>
<PropertyGroup>
<BeforeTransform>$(BeforeTransform);PrepareTransform</BeforeTransform>
</PropertyGroup>
<PropertyGroup Condition="'$(VisualStudioVersion)' == '16.0'">
<DefineConstants>$(DefineConstants);VS2019</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(VisualStudioVersion)' == '17.0'">
<DefineConstants>$(DefineConstants);VS2022</DefineConstants>
</PropertyGroup>
</Project>