11<?xml version =" 1.0" encoding =" utf-8" ?>
22<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')" />
43 <PropertyGroup >
54 <MinimumVisualStudioVersion >15.0</MinimumVisualStudioVersion >
65 <NuGetPackageImportStamp >
4544 <IncludeDebugSymbolsInLocalVSIXDeployment >false</IncludeDebugSymbolsInLocalVSIXDeployment >
4645 <CopyBuildOutputToOutputDirectory >false</CopyBuildOutputToOutputDirectory >
4746 <CopyOutputSymbolsToOutputDirectory >false</CopyOutputSymbolsToOutputDirectory >
47+ <IsProductComponent Condition =" '$(Deployment)' == 'Component'" >true</IsProductComponent >
4848 </PropertyGroup >
4949 <ItemGroup >
50- <Content Include =" LICENSE" >
50+ <Content Include =" ..\ LICENSE" >
5151 <IncludeInVSIX >true</IncludeInVSIX >
5252 </Content >
53- <Content Include =" Microsoft.Cpp.CppWinRT.props" >
53+ <Content Include =" ..\ Microsoft.Cpp.CppWinRT.props" >
5454 <VSIXSubPath >Microsoft\VC\v160</VSIXSubPath >
5555 <InstallRoot >MSBuild</InstallRoot >
5656 <IncludeInVSIX >true</IncludeInVSIX >
5757 </Content >
58- <Content Include =" Platforms\ARM\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
58+ <Content Include =" ..\ Platforms\ARM\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
5959 <VSIXSubPath >Microsoft\VC\v160\Platforms\ARM\ImportBefore</VSIXSubPath >
6060 <InstallRoot >MSBuild</InstallRoot >
6161 <IncludeInVSIX >true</IncludeInVSIX >
6262 </Content >
63- <Content Include =" Platforms\ARM64\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
63+ <Content Include =" ..\ Platforms\ARM64\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
6464 <VSIXSubPath >Microsoft\VC\v160\Platforms\ARM64\ImportBefore</VSIXSubPath >
6565 <InstallRoot >MSBuild</InstallRoot >
6666 <IncludeInVSIX >true</IncludeInVSIX >
6767 </Content >
68- <Content Include =" Platforms\Win32\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
68+ <Content Include =" ..\ Platforms\Win32\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
6969 <VSIXSubPath >Microsoft\VC\v160\Platforms\Win32\ImportBefore</VSIXSubPath >
7070 <InstallRoot >MSBuild</InstallRoot >
7171 <IncludeInVSIX >true</IncludeInVSIX >
7272 </Content >
73- <Content Include =" Platforms\x64\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
73+ <Content Include =" ..\ Platforms\x64\ImportAfter\Microsoft.Cpp.CppWinRT.props" >
7474 <VSIXSubPath >Microsoft\VC\v160\Platforms\x64\ImportBefore</VSIXSubPath >
7575 <InstallRoot >MSBuild</InstallRoot >
7676 <IncludeInVSIX >true</IncludeInVSIX >
7777 </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" >
7979 <VSIXSubPath >Application Type\Windows Store\10.0\Platforms\ARM\ImportAfter</VSIXSubPath >
8080 <InstallRoot >MSBuild</InstallRoot >
8181 <IncludeInVSIX >true</IncludeInVSIX >
8282 </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" >
8484 <VSIXSubPath >Application Type\Windows Store\10.0\Platforms\ARM64\ImportAfter</VSIXSubPath >
8585 <InstallRoot >MSBuild</InstallRoot >
8686 <IncludeInVSIX >true</IncludeInVSIX >
8787 </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" >
8989 <VSIXSubPath >Application Type\Windows Store\10.0\Platforms\Win32\ImportAfter</VSIXSubPath >
9090 <InstallRoot >MSBuild</InstallRoot >
9191 <IncludeInVSIX >true</IncludeInVSIX >
9292 </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" >
9494 <VSIXSubPath >Application Type\Windows Store\10.0\Platforms\x64\ImportAfter</VSIXSubPath >
9595 <InstallRoot >MSBuild</InstallRoot >
9696 <IncludeInVSIX >true</IncludeInVSIX >
9999 <Link >Packages\Microsoft.Windows.CppWinRT.$(CppWinRTVersion).nupkg</Link >
100100 <IncludeInVSIX >true</IncludeInVSIX >
101101 </Content >
102- <Content Include =" ..\natvis\cppwinrt.natvis" >
102+ <Content Include =" ..\..\ natvis\cppwinrt.natvis" >
103103 <Link >%(Filename)%(Extension)</Link >
104104 <IncludeInVSIX >true</IncludeInVSIX >
105105 </Content >
118118 <None Include =" $(Deployment)\source.extension.vsixmanifest" >
119119 <SubType >Designer</SubType >
120120 </None >
121- <None Include =" packages.config" />
122121 </ItemGroup >
123122 <ItemGroup >
124- <Content Include =" cppwinrt.ico" >
123+ <Content Include =" ..\ cppwinrt.ico" >
125124 <IncludeInVSIX >true</IncludeInVSIX >
126125 </Content >
127- <Content Include =" cppwinrt.png" >
126+ <Content Include =" ..\ cppwinrt.png" >
128127 <IncludeInVSIX >true</IncludeInVSIX >
129128 </Content >
130129 </ItemGroup >
131130 <ItemGroup >
132131 <Folder Include =" x64\" />
133132 </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 >
134140 <Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
135141 <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')" />
144142 <Target Name =" GetCppWinRTVersion" Outputs =" $(CppWinRTVersion)" />
145143 <Target Name =" PrepareBuild" BeforeTargets =" PrepareForBuild" >
146144 <Error Condition =" '$(CppWinRTVersion)' == ''" Text =" The project must be supplied with a CppWinRTVersion property value" />
149147 <Error Condition =" '$(NupkgDir)' == ''" Text =" The project must be supplied with a NupkgDir property value" />
150148 <Copy SourceFiles =" ..\LICENSE" DestinationFolder =" $(MSBuildProjectDirectory)" />
151149 <ItemGroup >
152- <VSTemplateFiles Include =" *Templates\*\**\*.vstemplate" />
153- <OtherTemplateFiles Include =" *Templates\*\**\*" />
150+ <VSTemplateFiles Include =" ..\ *Templates\*\**\*.vstemplate" />
151+ <OtherTemplateFiles Include =" ..\ *Templates\*\**\*" />
154152 <OtherTemplateFiles Remove =" @(OtherTemplateFiles)" Condition =" '%(Extension)' == '.vstemplate'" />
155153 <Templates Include =" @(VSTemplateFiles)" >
156154 <StagingFolder >$(MSBuildProjectDirectory)\$(OutDir)%(RecursiveDir)</StagingFolder >
160158 <Copy SourceFiles =" @(Templates)" DestinationFolder =" %(StagingFolder)" />
161159 <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' /> " />
162160 <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')" >
164162 <IncludeInVSIX >true</IncludeInVSIX >
165163 <IsAssembly >false</IsAssembly >
166164 <VSIXSubPath >%(RecursiveDir)</VSIXSubPath >
170168 <Content Include =" @(TemplateItems)" />
171169 </ItemGroup >
172170 </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')" />
174171</Project >
0 commit comments