1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<Project ToolsVersion =" 14.0" DefaultTargets =" PrepareBuild;Build" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
- <Import Project =" packages\Microsoft.VSSDK.BuildTools.17.0.1619-preview1\build\Microsoft.VSSDK.BuildTools.props" Condition =" Exists('packages\Microsoft.VSSDK.BuildTools.17.0.1619-preview1\build\Microsoft.VSSDK.BuildTools.props')" />
4
3
<PropertyGroup >
5
4
<MinimumVisualStudioVersion >15.0</MinimumVisualStudioVersion >
6
5
<NuGetPackageImportStamp >
45
44
<IncludeDebugSymbolsInLocalVSIXDeployment >false</IncludeDebugSymbolsInLocalVSIXDeployment >
46
45
<CopyBuildOutputToOutputDirectory >false</CopyBuildOutputToOutputDirectory >
47
46
<CopyOutputSymbolsToOutputDirectory >false</CopyOutputSymbolsToOutputDirectory >
47
+ <IsProductComponent Condition =" '$(Deployment)' == 'Component'" >true</IsProductComponent >
48
48
</PropertyGroup >
49
49
<ItemGroup >
50
- <Content Include =" LICENSE" >
50
+ <Content Include =" ..\ LICENSE" >
51
51
<IncludeInVSIX >true</IncludeInVSIX >
52
52
</Content >
53
- <Content Include =" Microsoft.Cpp.CppWinRT.props" >
53
+ <Content Include =" ..\ Microsoft.Cpp.CppWinRT.props" >
54
54
<VSIXSubPath >Microsoft\VC\v160</VSIXSubPath >
55
55
<InstallRoot >MSBuild</InstallRoot >
56
56
<IncludeInVSIX >true</IncludeInVSIX >
57
57
</Content >
58
- <Content Include =" Platforms\ARM\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
58
+ <Content Include =" ..\ Platforms\ARM\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
59
59
<VSIXSubPath >Microsoft\VC\v160\Platforms\ARM\ImportBefore</VSIXSubPath >
60
60
<InstallRoot >MSBuild</InstallRoot >
61
61
<IncludeInVSIX >true</IncludeInVSIX >
62
62
</Content >
63
- <Content Include =" Platforms\ARM64\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
63
+ <Content Include =" ..\ Platforms\ARM64\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
64
64
<VSIXSubPath >Microsoft\VC\v160\Platforms\ARM64\ImportBefore</VSIXSubPath >
65
65
<InstallRoot >MSBuild</InstallRoot >
66
66
<IncludeInVSIX >true</IncludeInVSIX >
67
67
</Content >
68
- <Content Include =" Platforms\Win32\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
68
+ <Content Include =" ..\ Platforms\Win32\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
69
69
<VSIXSubPath >Microsoft\VC\v160\Platforms\Win32\ImportBefore</VSIXSubPath >
70
70
<InstallRoot >MSBuild</InstallRoot >
71
71
<IncludeInVSIX >true</IncludeInVSIX >
72
72
</Content >
73
- <Content Include =" Platforms\x64\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
73
+ <Content Include =" ..\ Platforms\x64\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
74
74
<VSIXSubPath >Microsoft\VC\v160\Platforms\x64\ImportBefore</VSIXSubPath >
75
75
<InstallRoot >MSBuild</InstallRoot >
76
76
<IncludeInVSIX >true</IncludeInVSIX >
77
77
</Content >
78
- <Content Include =" Application Type\Windows Store\10.0\Platforms\ARM\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
78
+ <Content Include =" ..\ Application Type\Windows Store\10.0\Platforms\ARM\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
79
79
<VSIXSubPath >Application Type\Windows Store\10.0\Platforms\ARM\ImportAfter</VSIXSubPath >
80
80
<InstallRoot >MSBuild</InstallRoot >
81
81
<IncludeInVSIX >true</IncludeInVSIX >
82
82
</Content >
83
- <Content Include =" Application Type\Windows Store\10.0\Platforms\ARM64\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
83
+ <Content Include =" ..\ Application Type\Windows Store\10.0\Platforms\ARM64\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
84
84
<VSIXSubPath >Application Type\Windows Store\10.0\Platforms\ARM64\ImportAfter</VSIXSubPath >
85
85
<InstallRoot >MSBuild</InstallRoot >
86
86
<IncludeInVSIX >true</IncludeInVSIX >
87
87
</Content >
88
- <Content Include =" Application Type\Windows Store\10.0\Platforms\Win32\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
88
+ <Content Include =" ..\ Application Type\Windows Store\10.0\Platforms\Win32\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
89
89
<VSIXSubPath >Application Type\Windows Store\10.0\Platforms\Win32\ImportAfter</VSIXSubPath >
90
90
<InstallRoot >MSBuild</InstallRoot >
91
91
<IncludeInVSIX >true</IncludeInVSIX >
92
92
</Content >
93
- <Content Include =" Application Type\Windows Store\10.0\Platforms\x64\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
93
+ <Content Include =" ..\ Application Type\Windows Store\10.0\Platforms\x64\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
94
94
<VSIXSubPath >Application Type\Windows Store\10.0\Platforms\x64\ImportAfter</VSIXSubPath >
95
95
<InstallRoot >MSBuild</InstallRoot >
96
96
<IncludeInVSIX >true</IncludeInVSIX >
99
99
<Link >Packages\Microsoft.Windows.CppWinRT.$(CppWinRTVersion).nupkg</Link >
100
100
<IncludeInVSIX >true</IncludeInVSIX >
101
101
</Content >
102
- <Content Include =" ..\natvis\cppwinrt.natvis" >
102
+ <Content Include =" ..\..\ natvis\cppwinrt.natvis" >
103
103
<Link >%(Filename)%(Extension)</Link >
104
104
<IncludeInVSIX >true</IncludeInVSIX >
105
105
</Content >
118
118
<None Include =" $(Deployment)\source.extension.vsixmanifest" >
119
119
<SubType >Designer</SubType >
120
120
</None >
121
- <None Include =" packages.config" />
122
121
</ItemGroup >
123
122
<ItemGroup >
124
- <Content Include =" cppwinrt.ico" >
123
+ <Content Include =" ..\ cppwinrt.ico" >
125
124
<IncludeInVSIX >true</IncludeInVSIX >
126
125
</Content >
127
- <Content Include =" cppwinrt.png" >
126
+ <Content Include =" ..\ cppwinrt.png" >
128
127
<IncludeInVSIX >true</IncludeInVSIX >
129
128
</Content >
130
129
</ItemGroup >
131
130
<ItemGroup >
132
131
<Folder Include =" x64\" />
133
132
</ItemGroup >
133
+ <ItemGroup >
134
+ <PackageReference Include =" Microsoft.VSSDK.BuildTools" >
135
+ <Version >17.0.1619-preview1</Version >
136
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
137
+ <PrivateAssets >all</PrivateAssets >
138
+ </PackageReference >
139
+ </ItemGroup >
134
140
<Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
135
141
<Import Project =" $(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition =" '$(VSToolsPath)' != ''" />
136
- <Target Name =" EnsureNuGetPackageBuildImports" BeforeTargets =" PrepareForBuild" >
137
- <PropertyGroup >
138
- <ErrorText >This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText >
139
- </PropertyGroup >
140
- <Error Condition =" !Exists('packages\Microsoft.VSSDK.BuildTools.17.0.1619-preview1\build\Microsoft.VSSDK.BuildTools.props')" Text =" $([System.String]::Format('$(ErrorText)', 'packages\Microsoft.VSSDK.BuildTools.17.0.1619-preview1\build\Microsoft.VSSDK.BuildTools.props'))" />
141
- <Error Condition =" !Exists('packages\Microsoft.VSSDK.BuildTools.17.0.1619-preview1\build\Microsoft.VSSDK.BuildTools.targets')" Text =" $([System.String]::Format('$(ErrorText)', 'packages\Microsoft.VSSDK.BuildTools.17.0.1619-preview1\build\Microsoft.VSSDK.BuildTools.targets'))" />
142
- </Target >
143
- <Import Project =" .\packages\Microsoft.VSSDK.BuildTools.16.0.2258\build\Microsoft.VSSDK.BuildTools.targets" Condition =" Exists('.\packages\Microsoft.VSSDK.BuildTools.16.0.2258\build\Microsoft.VSSDK.BuildTools.targets')" />
144
142
<Target Name =" GetCppWinRTVersion" Outputs =" $(CppWinRTVersion)" />
145
143
<Target Name =" PrepareBuild" BeforeTargets =" PrepareForBuild" >
146
144
<Error Condition =" '$(CppWinRTVersion)' == ''" Text =" The project must be supplied with a CppWinRTVersion property value" />
149
147
<Error Condition =" '$(NupkgDir)' == ''" Text =" The project must be supplied with a NupkgDir property value" />
150
148
<Copy SourceFiles =" ..\LICENSE" DestinationFolder =" $(MSBuildProjectDirectory)" />
151
149
<ItemGroup >
152
- <VSTemplateFiles Include =" *Templates\*\**\*.vstemplate" />
153
- <OtherTemplateFiles Include =" *Templates\*\**\*" />
150
+ <VSTemplateFiles Include =" ..\ *Templates\*\**\*.vstemplate" />
151
+ <OtherTemplateFiles Include =" ..\ *Templates\*\**\*" />
154
152
<OtherTemplateFiles Remove =" @(OtherTemplateFiles)" Condition =" '%(Extension)' == '.vstemplate'" />
155
153
<Templates Include =" @(VSTemplateFiles)" >
156
154
<StagingFolder >$(MSBuildProjectDirectory)\$(OutDir)%(RecursiveDir)</StagingFolder >
160
158
<Copy SourceFiles =" @(Templates)" DestinationFolder =" %(StagingFolder)" />
161
159
<XmlPoke XmlInputPath =" %(StagedTemplates.Identity)" Query =" /ns:VSTemplate/ns:WizardData/ns:packages/ns:package/@version" Value =" $(CppWinRTVersion)" Namespaces =" < Namespace Prefix='ns' Uri='http://schemas.microsoft.com/developer/vstemplate/2005' /> " />
162
160
<ItemGroup >
163
- <TemplateItems Include =" @(OtherTemplateFiles);@(Templates->'%(StagingFolder)%(Filename).vstemplate');@(Templates->'cppwinrt.ico');@(Templates->'cppwinrt.png')" >
161
+ <TemplateItems Include =" @(OtherTemplateFiles);@(Templates->'%(StagingFolder)%(Filename).vstemplate');@(Templates->'..\ cppwinrt.ico');@(Templates->'..\ cppwinrt.png')" >
164
162
<IncludeInVSIX >true</IncludeInVSIX >
165
163
<IsAssembly >false</IsAssembly >
166
164
<VSIXSubPath >%(RecursiveDir)</VSIXSubPath >
170
168
<Content Include =" @(TemplateItems)" />
171
169
</ItemGroup >
172
170
</Target >
173
- <Import Project =" packages\Microsoft.VSSDK.BuildTools.17.0.1619-preview1\build\Microsoft.VSSDK.BuildTools.targets" Condition =" Exists('packages\Microsoft.VSSDK.BuildTools.17.0.1619-preview1\build\Microsoft.VSSDK.BuildTools.targets')" />
174
171
</Project >
0 commit comments