SaschaWillems / SPIRV-VSExtension

SPIR-V extension for Visual Studio
MIT License
92 stars 14 forks source link

Support for Visual Studio 2022 #8

Open kyamant opened 2 years ago

kyamant commented 2 years ago

VS 2022 is the current version of Visual Studio and would like to be able to use SPIRV-VSExtension on it.

Yaazarai commented 2 years ago

BUMP this. Tried compiling the extension myself and I get this error:

1>CSC : error CS1747: Cannot embed interop types from assembly 'Microsoft.VisualStudio.Shell.Interop.11.0, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it is missing the 'System.Runtime.InteropServices.GuidAttribute' attribute.
1>CSC : error CS1759: Cannot embed interop types from assembly 'Microsoft.VisualStudio.Shell.Interop.11.0, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it is missing either the 'System.Runtime.InteropServices.ImportedFromTypeLibAttribute' attribute or the 'System.Runtime.InteropServices.PrimaryInteropAssemblyAttribute' attribute.
1>CSC : error CS1747: Cannot embed interop types from assembly 'Microsoft.VisualStudio.Shell.Interop.12.0, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it is missing the 'System.Runtime.InteropServices.GuidAttribute' attribute.
1>CSC : error CS1759: Cannot embed interop types from assembly 'Microsoft.VisualStudio.Shell.Interop.12.0, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it is missing either the 'System.Runtime.InteropServices.ImportedFromTypeLibAttribute' attribute or the 'System.Runtime.InteropServices.PrimaryInteropAssemblyAttribute' attribute.
SaschaWillems commented 1 year ago

You can find a working version in this branch: https://github.com/SaschaWillems/SPIRV-VSExtension/tree/vs2022

It's not 100% perfect yet (compiler warnings), but works fine on VS2022. It also adds support for compiling using DXC.

Yaazarai commented 1 year ago

Not provided in the online extension manager for VS2022. Source does not compile:

1>C:\Users\Alex\.nuget\packages\microsoft.vssdk.buildtools\17.5.4072\tools\VSSDK\Microsoft.VsSDK.targets(911,5): error VSSDK1031: Extension 'SPIRV-VSExtension.Sascha Willems.5d468aca-a2f8-4bdb-8494-3321c9335623' could not be found. Please make sure the extension has been installed.

SaschaWillems commented 1 year ago

Not provided in the online extension manager for VS2022.

I'll provide a version once it fully works for VS2022.

Source does not compile:

I'll take look. It compiles fine for me, but updating extensions is always tricky and comes with a lot of pitfalls.

Yaazarai commented 1 year ago

Any update on this issue?