Skip to content

Commit e719219

Browse files
author
Mads Houmann
committed
VS2022 preview support - v17 proj + sln
1 parent d2b4280 commit e719219

7 files changed

+262
-11
lines changed

CommentsPlus-v17.sln

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31612.314
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{61E5FC7C-6EF0-4B4C-9569-6332FB02336D}"
7+
ProjectSection(SolutionItems) = preProject
8+
.editorconfig = .editorconfig
9+
Samples\Sample2.ts = Samples\Sample2.ts
10+
EndProjectSection
11+
EndProject
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommentsPlus", "CommentsPlus16\CommentsPlus.csproj", "{32E82793-0D5E-4EF7-8344-FF9FD80F678F}"
13+
EndProject
14+
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "CommentsPlusShared", "CommentsPlusShared.shproj", "{3E4BAC08-24C7-4C05-8683-E8109183D72B}"
15+
EndProject
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommentsPlus17", "CommentsPlus17\CommentsPlus17.csproj", "{D9124E8E-BA8E-41FE-B05C-5D7C3A1D6B04}"
17+
EndProject
18+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{F3C55657-D6CA-4974-A137-30D7905C07E2}"
19+
ProjectSection(SolutionItems) = preProject
20+
Samples\Class1.vb = Samples\Class1.vb
21+
Samples\HTMLPage1.html = Samples\HTMLPage1.html
22+
Samples\python_class1.py = Samples\python_class1.py
23+
Samples\Sample2.ts = Samples\Sample2.ts
24+
Samples\samplepage.xaml = Samples\samplepage.xaml
25+
Samples\samplescript.ps1 = Samples\samplescript.ps1
26+
Samples\Script2.js = Samples\Script2.js
27+
Samples\XMLFile1.xml = Samples\XMLFile1.xml
28+
EndProjectSection
29+
EndProject
30+
Global
31+
GlobalSection(SharedMSBuildProjectFiles) = preSolution
32+
CommentsPlusShared.projitems*{32e82793-0d5e-4ef7-8344-ff9fd80f678f}*SharedItemsImports = 4
33+
CommentsPlusShared.projitems*{3e4bac08-24c7-4c05-8683-e8109183d72b}*SharedItemsImports = 13
34+
CommentsPlusShared.projitems*{d9124e8e-ba8e-41fe-b05c-5d7c3a1d6b04}*SharedItemsImports = 4
35+
EndGlobalSection
36+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
37+
Debug|Any CPU = Debug|Any CPU
38+
Debug|x86 = Debug|x86
39+
Release|Any CPU = Release|Any CPU
40+
Release|x86 = Release|x86
41+
EndGlobalSection
42+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
43+
{32E82793-0D5E-4EF7-8344-FF9FD80F678F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
44+
{32E82793-0D5E-4EF7-8344-FF9FD80F678F}.Debug|Any CPU.Build.0 = Debug|Any CPU
45+
{32E82793-0D5E-4EF7-8344-FF9FD80F678F}.Debug|x86.ActiveCfg = Debug|x86
46+
{32E82793-0D5E-4EF7-8344-FF9FD80F678F}.Debug|x86.Build.0 = Debug|x86
47+
{32E82793-0D5E-4EF7-8344-FF9FD80F678F}.Release|Any CPU.ActiveCfg = Release|Any CPU
48+
{32E82793-0D5E-4EF7-8344-FF9FD80F678F}.Release|Any CPU.Build.0 = Release|Any CPU
49+
{32E82793-0D5E-4EF7-8344-FF9FD80F678F}.Release|x86.ActiveCfg = Release|x86
50+
{32E82793-0D5E-4EF7-8344-FF9FD80F678F}.Release|x86.Build.0 = Release|x86
51+
{D9124E8E-BA8E-41FE-B05C-5D7C3A1D6B04}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
52+
{D9124E8E-BA8E-41FE-B05C-5D7C3A1D6B04}.Debug|Any CPU.Build.0 = Debug|Any CPU
53+
{D9124E8E-BA8E-41FE-B05C-5D7C3A1D6B04}.Debug|x86.ActiveCfg = Debug|x86
54+
{D9124E8E-BA8E-41FE-B05C-5D7C3A1D6B04}.Debug|x86.Build.0 = Debug|x86
55+
{D9124E8E-BA8E-41FE-B05C-5D7C3A1D6B04}.Release|Any CPU.ActiveCfg = Release|Any CPU
56+
{D9124E8E-BA8E-41FE-B05C-5D7C3A1D6B04}.Release|Any CPU.Build.0 = Release|Any CPU
57+
{D9124E8E-BA8E-41FE-B05C-5D7C3A1D6B04}.Release|x86.ActiveCfg = Release|x86
58+
{D9124E8E-BA8E-41FE-B05C-5D7C3A1D6B04}.Release|x86.Build.0 = Release|x86
59+
EndGlobalSection
60+
GlobalSection(SolutionProperties) = preSolution
61+
HideSolutionNode = FALSE
62+
EndGlobalSection
63+
GlobalSection(NestedProjects) = preSolution
64+
{F3C55657-D6CA-4974-A137-30D7905C07E2} = {61E5FC7C-6EF0-4B4C-9569-6332FB02336D}
65+
EndGlobalSection
66+
GlobalSection(ExtensibilityGlobals) = postSolution
67+
SolutionGuid = {029ABEDE-369E-42FC-9D27-82FF34253C57}
68+
EndGlobalSection
69+
EndGlobal

CommentsPlus16/source.extension.vsixmanifest

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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">
33
<Metadata>
4-
<Identity Id="MGH.CommentsPlus.a6539c2f-6785-4586-8028-ad923b47224d" Version="1.9.0" Language="en-US" Publisher="Mads Houmann" />
4+
<Identity Id="MGH.CommentsPlus.a6539c2f-6785-4586-8028-ad923b47224d" Version="1.10.0" Language="en-US" Publisher="Mads Houmann" />
55
<DisplayName>CommentsPlus</DisplayName>
66
<Description xml:space="preserve">Comments in italics, extra formatting for comments starting with: !, ?, x, e.g., //!</Description>
77
<License>ms-pl.txt</License>
@@ -17,9 +17,6 @@
1717
<InstallationTarget Version="[15.0,17.0)" Id="Microsoft.VisualStudio.IntegratedShell" />
1818
<InstallationTarget Version="[15.0,17.0)" Id="Microsoft.VisualStudio.Premium" />
1919
<InstallationTarget Version="[15.0,17.0)" Id="Microsoft.VisualStudio.Ultimate" />
20-
<InstallationTarget Version="[17.0,18.0)" Id="Microsoft.VisualStudio.Community">
21-
<ProductArchitecture>amd64</ProductArchitecture>
22-
</InstallationTarget>
2320
</Installation>
2421
<Dependencies>
2522
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" Version="[4.5,)" />

CommentsPlus17/CommentsPlus17.csproj

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<MinimumVisualStudioVersion>17.0</MinimumVisualStudioVersion>
5+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
6+
</PropertyGroup>
7+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
8+
<PropertyGroup>
9+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
10+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
11+
<SchemaVersion>2.0</SchemaVersion>
12+
<ProjectTypeGuids>{82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
13+
<ProjectGuid>{D9124E8E-BA8E-41FE-B05C-5D7C3A1D6B04}</ProjectGuid>
14+
<OutputType>Library</OutputType>
15+
<AppDesignerFolder>Properties</AppDesignerFolder>
16+
<RootNamespace>CommentsPlus</RootNamespace>
17+
<AssemblyName>CommentsPlus17</AssemblyName>
18+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
19+
<GeneratePkgDefFile>true</GeneratePkgDefFile>
20+
<UseCodebase>true</UseCodebase>
21+
<IncludeAssemblyInVSIXContainer>true</IncludeAssemblyInVSIXContainer>
22+
<IncludeDebugSymbolsInVSIXContainer>false</IncludeDebugSymbolsInVSIXContainer>
23+
<IncludeDebugSymbolsInLocalVSIXDeployment>false</IncludeDebugSymbolsInLocalVSIXDeployment>
24+
<CopyBuildOutputToOutputDirectory>true</CopyBuildOutputToOutputDirectory>
25+
<CopyOutputSymbolsToOutputDirectory>true</CopyOutputSymbolsToOutputDirectory>
26+
<StartAction>Program</StartAction>
27+
<StartProgram Condition="'$(DevEnvDir)' != ''">$(DevEnvDir)devenv.exe</StartProgram>
28+
<StartArguments>/rootsuffix Exp</StartArguments>
29+
</PropertyGroup>
30+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
31+
<DebugSymbols>true</DebugSymbols>
32+
<DebugType>full</DebugType>
33+
<Optimize>false</Optimize>
34+
<OutputPath>bin\Debug\</OutputPath>
35+
<DefineConstants>DEBUG;TRACE</DefineConstants>
36+
<ErrorReport>prompt</ErrorReport>
37+
<WarningLevel>4</WarningLevel>
38+
</PropertyGroup>
39+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
40+
<DebugType>pdbonly</DebugType>
41+
<Optimize>true</Optimize>
42+
<OutputPath>bin\Release\</OutputPath>
43+
<DefineConstants>TRACE</DefineConstants>
44+
<ErrorReport>prompt</ErrorReport>
45+
<WarningLevel>4</WarningLevel>
46+
</PropertyGroup>
47+
<ItemGroup>
48+
<Content Include="..\Shared\readme.rtf">
49+
<Link>readme.rtf</Link>
50+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
51+
<IncludeInVSIX>true</IncludeInVSIX>
52+
</Content>
53+
<None Include="source.extension.vsixmanifest">
54+
<SubType>Designer</SubType>
55+
</None>
56+
</ItemGroup>
57+
<ItemGroup>
58+
<Reference Include="PresentationCore" />
59+
<Reference Include="PresentationFramework" />
60+
<Reference Include="System" />
61+
<Reference Include="System.ComponentModel.Composition" />
62+
<Reference Include="System.Xaml" />
63+
<Reference Include="WindowsBase" />
64+
</ItemGroup>
65+
<ItemGroup>
66+
<PackageReference Include="Microsoft.VisualStudio.SDK" Version="17.0.0-previews-1-31410-273" ExcludeAssets="runtime" />
67+
<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="17.0.3177-preview3" />
68+
</ItemGroup>
69+
<ItemGroup>
70+
<Content Include="..\Shared\comments-plus-screenshot.png">
71+
<Link>comments-plus-screenshot.png</Link>
72+
<IncludeInVSIX>true</IncludeInVSIX>
73+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
74+
</Content>
75+
<Content Include="..\Shared\comments-plus-t-icon.png">
76+
<Link>comments-plus-t-icon.png</Link>
77+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
78+
<IncludeInVSIX>true</IncludeInVSIX>
79+
</Content>
80+
<Content Include="..\Shared\ms-pl.txt">
81+
<Link>ms-pl.txt</Link>
82+
<IncludeInVSIX>true</IncludeInVSIX>
83+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
84+
</Content>
85+
</ItemGroup>
86+
<ItemGroup>
87+
<Folder Include="Properties\" />
88+
</ItemGroup>
89+
<ItemGroup>
90+
<Compile Include="CommentsPlus17Package.cs" />
91+
</ItemGroup>
92+
<Import Project="..\CommentsPlusShared.projitems" Label="Shared" />
93+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
94+
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
95+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
96+
Other similar extension points exist, see Microsoft.Common.targets.
97+
<Target Name="BeforeBuild">
98+
</Target>
99+
<Target Name="AfterBuild">
100+
</Target>
101+
-->
102+
</Project>
+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
using Microsoft.VisualStudio.Shell;
2+
3+
using System;
4+
using System.Runtime.InteropServices;
5+
using System.Threading;
6+
7+
using Task = System.Threading.Tasks.Task;
8+
9+
namespace CommentsPlus
10+
{
11+
/// <summary>
12+
/// This is the class that implements the package exposed by this assembly.
13+
/// </summary>
14+
/// <remarks>
15+
/// <para>
16+
/// The minimum requirement for a class to be considered a valid package for Visual Studio
17+
/// is to implement the IVsPackage interface and register itself with the shell.
18+
/// This package uses the helper classes defined inside the Managed Package Framework (MPF)
19+
/// to do it: it derives from the Package class that provides the implementation of the
20+
/// IVsPackage interface and uses the registration attributes defined in the framework to
21+
/// register itself and its components with the shell. These attributes tell the pkgdef creation
22+
/// utility what data to put into .pkgdef file.
23+
/// </para>
24+
/// <para>
25+
/// To get loaded into VS, the package must be referred by &lt;Asset Type="Microsoft.VisualStudio.VsPackage" ...&gt; in .vsixmanifest file.
26+
/// </para>
27+
/// </remarks>
28+
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
29+
[Guid(CommentsPlus17Package.PackageGuidString)]
30+
public sealed class CommentsPlus17Package : AsyncPackage
31+
{
32+
/// <summary>
33+
/// CommentsPlus17Package GUID string.
34+
/// </summary>
35+
public const string PackageGuidString = "6dda59d8-fd13-4d8b-b715-38674320ce66";
36+
37+
#region Package Members
38+
39+
/// <summary>
40+
/// Initialization of the package; this method is called right after the package is sited, so this is the place
41+
/// where you can put all the initialization code that rely on services provided by VisualStudio.
42+
/// </summary>
43+
/// <param name="cancellationToken">A cancellation token to monitor for initialization cancellation, which can occur when VS is shutting down.</param>
44+
/// <param name="progress">A provider for progress updates.</param>
45+
/// <returns>A task representing the async work of package initialization, or an already completed task if there is none. Do not return null from this method.</returns>
46+
protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress<ServiceProgressData> progress)
47+
{
48+
// When initialized asynchronously, the current thread may be a background thread at this point.
49+
// Do any initialization that requires the UI thread after switching to the UI thread.
50+
await this.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
51+
}
52+
53+
#endregion
54+
}
55+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<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="CommentsPlus17.f674b167-08a9-4d6d-b4b0-c4d28d1da73c" Version="1.10.0" Language="en-US" Publisher="Mads Houmann" />
5+
<DisplayName>CommentsPlus17</DisplayName>
6+
<Description xml:space="preserve">Comments in italics, extra formatting for comments starting with: !, ?, x, e.g., //!</Description>
7+
<License>ms-pl.txt</License>
8+
<ReleaseNotes>readme.rtf</ReleaseNotes>
9+
<Icon>comments-plus-t-icon.png</Icon>
10+
<PreviewImage>comments-plus-screenshot.png</PreviewImage>
11+
<Tags>Comments, Formatting, Italics</Tags>
12+
<Preview>true</Preview>
13+
</Metadata>
14+
<Installation>
15+
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0, 18.0)">
16+
<ProductArchitecture>amd64</ProductArchitecture>
17+
</InstallationTarget>
18+
<InstallationTarget Version="[17.0,18.0)" Id="Microsoft.VisualStudio.Pro">
19+
<ProductArchitecture>amd64</ProductArchitecture>
20+
</InstallationTarget>
21+
<InstallationTarget Version="[17.0,18.0)" Id="Microsoft.VisualStudio.Enterprise">
22+
<ProductArchitecture>amd64</ProductArchitecture>
23+
</InstallationTarget>
24+
</Installation>
25+
<Dependencies>
26+
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.5,)" />
27+
</Dependencies>
28+
<Prerequisites>
29+
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[17.0,18.0)" DisplayName="Visual Studio core editor" />
30+
</Prerequisites>
31+
<Assets>
32+
<Asset Type="Microsoft.VisualStudio.MefComponent" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%|" />
33+
</Assets>
34+
</PackageManifest>

CommentsPlusShared.projitems

-6
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,4 @@
1616
<Compile Include="$(MSBuildThisFileDirectory)ItalicComments\FormatMapWatcher.cs" />
1717
<Compile Include="$(MSBuildThisFileDirectory)ItalicComments\ViewCreationListener.cs" />
1818
</ItemGroup>
19-
<ItemGroup>
20-
<Folder Include="$(MSBuildThisFileDirectory)Properties\" />
21-
<Folder Include="$(MSBuildThisFileDirectory)CommentClassifier\" />
22-
<Folder Include="$(MSBuildThisFileDirectory)ExtensionMethods\" />
23-
<Folder Include="$(MSBuildThisFileDirectory)ItalicComments\" />
24-
</ItemGroup>
2519
</Project>

Properties/AssemblyInfo.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
// You can specify all the values or you can default the Build and Revision Numbers
3030
// by using the '*' as shown below:
3131
// [assembly: AssemblyVersion("1.0.*")]
32-
[assembly: AssemblyVersion("1.9.0.0")]
32+
[assembly: AssemblyVersion("1.10.0.0")]
3333
//[assembly: AssemblyFileVersion("1.0.0.0")]

0 commit comments

Comments
 (0)