Skip to content

Commit 02fc62f

Browse files
committed
Fix VS2022 VSIX generation to actually work (and in Release config)
1 parent 4c2b6e9 commit 02fc62f

2 files changed

Lines changed: 46 additions & 20 deletions

File tree

Dev17/Dev17+.csproj

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<DebugType>pdbonly</DebugType>
4141
<Optimize>true</Optimize>
4242
<OutputPath>bin\Release\</OutputPath>
43-
<DefineConstants>TRACE</DefineConstants>
43+
<DefineConstants>TRACE;Dev17</DefineConstants>
4444
<ErrorReport>prompt</ErrorReport>
4545
<WarningLevel>4</WarningLevel>
4646
</PropertyGroup>
@@ -49,6 +49,12 @@
4949
<Compile Include="Properties\Settings.Designer.cs" />
5050
</ItemGroup>
5151
<ItemGroup>
52+
<Content Include="..\SharedContent\LICENSE">
53+
<Link>LICENSE</Link>
54+
<IncludeInVSIX>true</IncludeInVSIX>
55+
<VSIXSubPath>SharedContent</VSIXSubPath>
56+
<TargetPath>LICENSE</TargetPath>
57+
</Content>
5258
<None Include="Properties\Settings.settings" />
5359
<None Include="source.extension.vsixmanifest">
5460
<SubType>Designer</SubType>
@@ -73,6 +79,15 @@
7379
<PackageReference Include="Microsoft.VisualStudio.SDK" Version="17.0.0-previews-3-31605-261" ExcludeAssets="runtime" />
7480
<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="17.0.4207-preview4" />
7581
</ItemGroup>
82+
<ItemGroup>
83+
<Content Include="..\SharedContent\openfileinsolution.png">
84+
<Link>openfileinsolution.png</Link>
85+
</Content>
86+
<VSCTCompile Include="..\SharedContent\OpenFileInSolution.vsct">
87+
<Link>OpenFileInSolution.vsct</Link>
88+
<ResourceName>Menus.ctmenu</ResourceName>
89+
</VSCTCompile>
90+
</ItemGroup>
7691
<Import Project="..\OpenFileInSolutionShared\OpenFileInSolutionShared.projitems" Label="Shared" />
7792
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
7893
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,33 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<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">
3-
<Metadata>
4-
<Identity Id="Dev17.fe76fd33-c38d-4ead-be65-75c060862f5b" Version="1.0" Language="en-US" Publisher="Chris Pickett" />
5-
<DisplayName>Dev17</DisplayName>
6-
<Description>Empty VSIX Project.</Description>
7-
</Metadata>
8-
<Installation>
9-
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0, 18.0)">
10-
<ProductArchitecture>amd64</ProductArchitecture>
11-
</InstallationTarget>
12-
</Installation>
13-
<Dependencies>
14-
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5,)" />
15-
</Dependencies>
16-
<Prerequisites>
17-
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[17.0,18.0)" DisplayName="Visual Studio core editor" />
18-
</Prerequisites>
19-
<Assets>
20-
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
21-
</Assets>
3+
<Metadata>
4+
<Identity Id="6bb18fff-9e74-4deb-97df-6a94ddafb74e" Version="1.15.3" Language="en-US" Publisher="Pernicious Games" />
5+
<DisplayName>Open File In Solution</DisplayName>
6+
<Description xml:space="preserve">Shows a list of all files in the current solution and allows quickly filtering and opening them.</Description>
7+
<License>SharedContent\LICENSE</License>
8+
<Tags>open file, quick find, fast find, fast open, openfile, quick open, quickopen, shift alt o, shift+alt+o, visual assist</Tags>
9+
</Metadata>
10+
<Installation>
11+
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0, 18.0)">
12+
<ProductArchitecture>amd64</ProductArchitecture>
13+
</InstallationTarget>
14+
<InstallationTarget Version="[17.0,18.0)" Id="Microsoft.VisualStudio.Community">
15+
<ProductArchitecture>x86</ProductArchitecture>
16+
</InstallationTarget>
17+
<InstallationTarget Version="[17.0,18.0)" Id="Microsoft.VisualStudio.IntegratedShell">
18+
<ProductArchitecture>amd64</ProductArchitecture>
19+
</InstallationTarget>
20+
<InstallationTarget Version="[17.0,18.0)" Id="Microsoft.VisualStudio.IntegratedShell">
21+
<ProductArchitecture>x86</ProductArchitecture>
22+
</InstallationTarget>
23+
</Installation>
24+
<Dependencies>
25+
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.7.2,)" />
26+
</Dependencies>
27+
<Prerequisites>
28+
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[17.0,18.0)" DisplayName="Visual Studio core editor" />
29+
</Prerequisites>
30+
<Assets>
31+
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
32+
</Assets>
2233
</PackageManifest>

0 commit comments

Comments
 (0)