Skip to content

Commit

Permalink
Updated dependencies and added VS22 compatibility (#22)
Browse files Browse the repository at this point in the history
* Dependencies updated to support VS22.

* Close throws exception if not running on main thread. Roslyn dependency set.

* Updated Visual Studio version to 2022 in README.md

* Updated dependencies. May break previous VS19 builds. Works on VS22 17.0.4.

* Updated dependencies, working properly with VS22, NOT WORKING WITH VS19, VISIT 1.X BRANCH TO WORK WITH VS19.

* Requirements updated in README.md

* Version updated to 2.0.0

* Reverted commit 35f18ad. Changed back Test project dependencies.
  • Loading branch information
HLCaptain authored Jan 25, 2022
1 parent a23d19e commit 2eb0a05
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 8 deletions.
6 changes: 3 additions & 3 deletions GodotAddinVS/GodotAddinVS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@
<PackageReference Include="Clide" Version="4.1.1" ExcludeAssets="runtime" />
<PackageReference Include="Clide.Windows" Version="4.1.1" ExcludeAssets="runtime" />
<PackageReference Include="GodotTools.IdeMessaging" Version="1.1.1" />
<PackageReference Include="Microsoft.VisualStudio.SDK" Version="16.0.205" ExcludeAssets="runtime">
<PackageReference Include="Microsoft.VisualStudio.SDK" Version="17.0.32112.339" ExcludeAssets="runtime">
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="16.5.2044">
<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="17.0.5234">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down Expand Up @@ -119,4 +119,4 @@
</Target>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
</Project>
</Project>
2 changes: 1 addition & 1 deletion GodotAddinVS/GodotMessaging/MessageHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected override async Task<Response> HandleOpenFile(OpenFileRequest request)

var mainWindow = dte.MainWindow;
mainWindow.Activate();
SetForegroundWindow(new IntPtr(mainWindow.HWnd));
SetForegroundWindow(mainWindow.HWnd);

return new OpenFileResponse {Status = MessageStatus.Ok};
}
Expand Down
1 change: 1 addition & 0 deletions GodotAddinVS/GodotSolutionEventsListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ private void DebuggerEvents_OnEnterDesignMode(dbgEventReason reason)

private void Close()
{
ThreadHelper.ThrowIfNotOnUIThread();
if (GodotMessagingClient != null)
{
ServiceContainer.RemoveService(typeof(Client));
Expand Down
23 changes: 20 additions & 3 deletions GodotAddinVS/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,15 +1,32 @@
<?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="GodotAddinVS" Version="1.1.1" Language="en-US" Publisher="Ignacio Roldán Etcheverry" />
<Identity Id="GodotAddinVS" Version="2.0.0" Language="en-US" Publisher="Ignacio Roldán Etcheverry" />
<DisplayName>Godot Support</DisplayName>
<Description xml:space="preserve">Support for Godot Engine C# projects, including debugging and extended code completion.</Description>
<License>LICENSE.txt</License>
<Icon>icon.png</Icon>
<Tags>Godot</Tags>
</Metadata>
<Installation>
<InstallationTarget Version="[16.0,17.0)" Id="Microsoft.VisualStudio.Community" />
<InstallationTarget Version="[16.0,18.0)" Id="Microsoft.VisualStudio.Community">
<ProductArchitecture>x86</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Version="[16.0,18.0)" Id="Microsoft.VisualStudio.Pro">
<ProductArchitecture>x86</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Version="[16.0,18.0)" Id="Microsoft.VisualStudio.Enterprise">
<ProductArchitecture>x86</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Version="[16.0,18.0)" Id="Microsoft.VisualStudio.Community">
<ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Version="[16.0,18.0)" Id="Microsoft.VisualStudio.Pro">
<ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Version="[16.0,18.0)" Id="Microsoft.VisualStudio.Enterprise">
<ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>
</Installation>
<Assets>
<Asset Type="Microsoft.VisualStudio.MefComponent" d:Source="Project" d:ProjectName="GodotCompletionProviders" Path="|GodotCompletionProviders|" />
Expand All @@ -30,6 +47,6 @@
As such, this extension sadly requires Xamarin to be installed as well for now. It's a quite
bulky dependency, so we should continue looking for possible alternatives to this.
-->
<Prerequisite Id="Component.Xamarin" Version="[16.6.30013.169,17.0)" DisplayName="Xamarin" />
<Prerequisite Id="Component.Xamarin" Version="[16.0,)" DisplayName="Xamarin" />
</Prerequisites>
</PackageManifest>
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Visual Studio extension for the Godot game engine C# projects.
## Requirements

- **Godot 3.2.3** or greater. Older versions of Godot are not supported and do not work.
- **Visual Studio 2019**. VS 2017 or earlier are not supported.
- **Visual Studio 2022**. VS 2019 or earlier are not supported.
- **Visit 1.x** branch to get the **Visual Studio 2019** supported version.

## Features

Expand Down

0 comments on commit 2eb0a05

Please sign in to comment.