Use separate vsixmanifest files for Component and Standalone deployments (#909)

* Use separate vsixmanifest files for Component and Standalone deployments

* Remove prerequisite from Component VSIX

* Keep empty <Prerequisites> element

* Component VSIX now depends on Inbox CppWinRT "component"

Co-authored-by: Kenny Kerr <kekerr@microsoft.com>
This commit is contained in:
Ryan Shepherd 2021-05-03 11:23:27 -07:00 коммит произвёл GitHub
Родитель 969ea267c1
Коммит d9fe8d8b24
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 35 добавлений и 1 удалений

Просмотреть файл

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="Microsoft.Windows.CppWinRT" Version="|%CurrentProject%;GetCppWinRTVersion|" Language="en-US" Publisher="Microsoft" />
<PackageId>Microsoft.Windows.CppWinRT</PackageId>
<DisplayName>C++/WinRT</DisplayName>
<Description xml:space="preserve">Tools for authoring and consuming Windows Runtime classes in standard C++.</Description>
<MoreInfo>https://go.microsoft.com/fwlink/?linkid=869449</MoreInfo>
<License>LICENSE</License>
<GettingStartedGuide>https://docs.microsoft.com/windows/uwp/cpp-and-winrt-apis/intro-to-using-cpp-with-winrt</GettingStartedGuide>
<ReleaseNotes>https://docs.microsoft.com/windows/uwp/cpp-and-winrt-apis/faq</ReleaseNotes>
<Icon>cppwinrt.ico</Icon>
<PreviewImage>cppwinrt.png</PreviewImage>
<Tags>WinRT, C++, cppwinrt, native</Tags>
</Metadata>
<Installation AllUsers="true">
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0,17.0)" />
<InstallationTarget Id="Microsoft.VisualStudio.Enterprise" Version="[15.0,17.0)" />
<InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="[15.0,17.0)" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5,)" />
</Dependencies>
<Assets>
<Asset Type="NativeVisualizer" Path="cppwinrt.natvis" />
<Asset Type="DebuggerEngineExtension" Path="CppWinrtVisualizer.vsdconfig" />
<Asset Type="Microsoft.VisualStudio.ItemTemplate" Path="ItemTemplates" />
<Asset Type="Microsoft.VisualStudio.ProjectTemplate" Path="ProjectTemplates" />
<Asset Type="Microsoft.Windows.CppWinRT.|%CurrentProject%;GetCppWinRTVersion|.nupkg" Source="File" Path="Microsoft.Windows.CppWinRT.|%CurrentProject%;GetCppWinRTVersion|.nupkg" VsixSubPath="Packages" />
</Assets>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CppWinRT" Version="[16.10,)" DisplayName="CppWinRT" />
</Prerequisites>
</PackageManifest>

Просмотреть файл

@ -106,7 +106,7 @@
<Link>x64\%(Filename)%(Extension)</Link>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<None Include="source.extension.vsixmanifest">
<None Include="$(Deployment)\source.extension.vsixmanifest">
<SubType>Designer</SubType>
</None>
</ItemGroup>