Skip to content

Commit

Permalink
Fix VS2022 VSIX generation to actually work (and in Release config)
Browse files Browse the repository at this point in the history
  • Loading branch information
parnic committed Oct 16, 2021
1 parent 4c2b6e9 commit 02fc62f
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 20 deletions.
17 changes: 16 additions & 1 deletion Dev17/Dev17+.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>TRACE;Dev17</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
Expand All @@ -49,6 +49,12 @@
<Compile Include="Properties\Settings.Designer.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="..\SharedContent\LICENSE">
<Link>LICENSE</Link>
<IncludeInVSIX>true</IncludeInVSIX>
<VSIXSubPath>SharedContent</VSIXSubPath>
<TargetPath>LICENSE</TargetPath>
</Content>
<None Include="Properties\Settings.settings" />
<None Include="source.extension.vsixmanifest">
<SubType>Designer</SubType>
Expand All @@ -73,6 +79,15 @@
<PackageReference Include="Microsoft.VisualStudio.SDK" Version="17.0.0-previews-3-31605-261" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="17.0.4207-preview4" />
</ItemGroup>
<ItemGroup>
<Content Include="..\SharedContent\openfileinsolution.png">
<Link>openfileinsolution.png</Link>
</Content>
<VSCTCompile Include="..\SharedContent\OpenFileInSolution.vsct">
<Link>OpenFileInSolution.vsct</Link>
<ResourceName>Menus.ctmenu</ResourceName>
</VSCTCompile>
</ItemGroup>
<Import Project="..\OpenFileInSolutionShared\OpenFileInSolutionShared.projitems" Label="Shared" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
Expand Down
49 changes: 30 additions & 19 deletions Dev17/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,22 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="Dev17.fe76fd33-c38d-4ead-be65-75c060862f5b" Version="1.0" Language="en-US" Publisher="Chris Pickett" />
<DisplayName>Dev17</DisplayName>
<Description>Empty VSIX Project.</Description>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0, 18.0)">
<ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5,)" />
</Dependencies>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[17.0,18.0)" DisplayName="Visual Studio core editor" />
</Prerequisites>
<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
</Assets>
<Metadata>
<Identity Id="6bb18fff-9e74-4deb-97df-6a94ddafb74e" Version="1.15.3" Language="en-US" Publisher="Pernicious Games" />
<DisplayName>Open File In Solution</DisplayName>
<Description xml:space="preserve">Shows a list of all files in the current solution and allows quickly filtering and opening them.</Description>
<License>SharedContent\LICENSE</License>
<Tags>open file, quick find, fast find, fast open, openfile, quick open, quickopen, shift alt o, shift+alt+o, visual assist</Tags>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0, 18.0)">
<ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Version="[17.0,18.0)" Id="Microsoft.VisualStudio.Community">
<ProductArchitecture>x86</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Version="[17.0,18.0)" Id="Microsoft.VisualStudio.IntegratedShell">
<ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Version="[17.0,18.0)" Id="Microsoft.VisualStudio.IntegratedShell">
<ProductArchitecture>x86</ProductArchitecture>
</InstallationTarget>
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.7.2,)" />
</Dependencies>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[17.0,18.0)" DisplayName="Visual Studio core editor" />
</Prerequisites>
<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
</Assets>
</PackageManifest>

0 comments on commit 02fc62f

Please sign in to comment.