Skip to content

Added support for vs2022 without breaking 2017 and 2019 (hopefully) #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## [v5.5.5] (28-01-2022)
###### Added support for Visual Studio 2022!

## [v5.5.4] (26-09-2021)
###### Fixed error message "bad exception"!

Expand Down
3 changes: 2 additions & 1 deletion Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public static class Constants
public static readonly Dictionary<Int32, String> IdeVersions = new Dictionary<Int32, String>
{
{ 15, "2017" },
{ 16, "2019" }
{ 16, "2019" },
{ 17, "2022" }
};
}
}
14 changes: 7 additions & 7 deletions DiscordRPforVS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DiscordRPforVS</RootNamespace>
<AssemblyName>DiscordRPforVS</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<GeneratePkgDefFile>true</GeneratePkgDefFile>
<UseCodebase>true</UseCodebase>
<IncludeAssemblyInVSIXContainer>true</IncludeAssemblyInVSIXContainer>
Expand Down Expand Up @@ -124,24 +124,24 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="DiscordRichPresence">
<Version>1.0.169</Version>
<Version>1.0.175</Version>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers">
<Version>3.3.0-beta2.final</Version>
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers">
<Version>6.0.0</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.LiveShare">
<Version>1.1.57</Version>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.SDK">
<Version>16.0.206</Version>
<Version>17.0.32112.339</Version>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.Validation">
<Version>15.5.31</Version>
<Version>17.0.34</Version>
</PackageReference>
<PackageReference Include="Microsoft.VSSDK.BuildTools">
<Version>16.8.8</Version>
<Version>17.0.5234</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
8 changes: 4 additions & 4 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
using System.Resources;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("A Discord Rich Presence extension for Visual Studio 2017 and 2019")]
[assembly: AssemblyDescription("A Discord Rich Presence extension for Visual Studio 2017 and 2019")]
[assembly: AssemblyTitle("A Discord Rich Presence extension for Visual Studio 2017, 2019 and 2022")]
[assembly: AssemblyDescription("A Discord Rich Presence extension for Visual Studio 2017, 2019 and 2022")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("1TheNikita")]
[assembly: AssemblyProduct("Discord Rich Presence VS extension")]
[assembly: AssemblyCopyright("Copyright 1TheNikita 2021")]
[assembly: AssemblyTrademark("1TheNikita")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("6.0.0")]
[assembly: AssemblyFileVersion("6.0.0")]
[assembly: AssemblyVersion("6.0.1")]
[assembly: AssemblyFileVersion("6.0.1")]
[assembly: NeutralResourcesLanguage("en")]
10 changes: 5 additions & 5 deletions Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</p>
</div>

This extension enables on [Discord Rich Presence](https://discordapp.com/rich-presence) for Visual Studio 2017 and 2019.
This extension enables on [Discord Rich Presence](https://discordapp.com/rich-presence) for Visual Studio 2017, 2019 and 2022.

As you're developing, this extension will automatically update your status on Discord to tell the world what you're coding.

Expand Down
34 changes: 17 additions & 17 deletions VSPackage.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions app.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="DiscordRPforVS.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
<section name="DiscordRPforVS.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
</sectionGroup>
</configSections>
<userSettings>
Expand Down Expand Up @@ -40,6 +40,6 @@
</DiscordRPforVS.Properties.Settings>
</userSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
</configuration>
</configuration>
27 changes: 21 additions & 6 deletions source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?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="VisualDevelopment.drpcvs" Version="5.5.4" Language="en-US" Publisher="1TheNikita" />
<Identity Id="VisualDevelopment.drpcvs" Version="5.5.5" Language="en-US" Publisher="1TheNikita" />
<DisplayName>Discord Rich Presence</DisplayName>
<Description xml:space="preserve">A Discord Rich Presence extension for Visual Studio 2017 and 2019.</Description>
<Description xml:space="preserve">A Discord Rich Presence extension for Visual Studio 2017, 2019 and 2022.</Description>
<MoreInfo>https://marketplace.visualstudio.com/items?itemName=1TheNikita.drpcvs2019</MoreInfo>
<License>Resources\LICENSE.txt</License>
<ReleaseNotes>https://github.com/1TheNikita/Visual-Studio/blob/master/CHANGELOG.md</ReleaseNotes>
Expand All @@ -12,15 +12,30 @@
<Tags>development,discord,discordrpc,presence,rich,rpc,visual</Tags>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0,)" />
<InstallationTarget Id="Microsoft.VisualStudio.Enterprise" Version="[15.0,)" />
<InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="[15.0,)" />
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0, 18.0)">
<ProductArchitecture>x86</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Id="Microsoft.VisualStudio.Enterprise" Version="[15.0, 18.0)">
<ProductArchitecture>x86</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="[15.0, 18.0)">
<ProductArchitecture>x86</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Version="[15.0, 18.0)" Id="Microsoft.VisualStudio.Community">
<ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Version="[15.0, 18.0)" Id="Microsoft.VisualStudio.Enterprise">
<ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Version="[15.0, 18.0)" Id="Microsoft.VisualStudio.Pro">
<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="[15.0,)" DisplayName="Visual Studio core editor" />
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0, 18.0)" DisplayName="Visual Studio core editor" />
</Prerequisites>
<Assets>
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
Expand Down