-
Notifications
You must be signed in to change notification settings - Fork 1
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
Does not recognize VS2022 #2
Comments
Looking at current master that's not true. Instead it appears to be cpu-features, that depends on buildcheck 0.0.3. |
Now it fails for VS 17.4 indeed. Apparently, Microsoft delivers Windows 10 SDK as package "Microsoft.VisualStudio.Component.Windows10SDK" without a version, but for Windows 11 there is "Microsoft.VisualStudio.Component.Windows11SDK.22000" (for example). OTOH, in registry it is stored as Windows 10 SDK: Furthermore, when I update the SDK to the latest version, there is |
Closing this as VS2022 support should be working and we now have CI verifying that as well. |
Unfortunately this is not really true - even if CI is verifying (which prerequisites is it using?). It still fails to detect VS2022 with only Windows 11 SDK (current default SDK 10.0.22000.0, as well as 10.0.22621.0). It only works if manually adding some Windows 10 SDK. That's actually the same I described above. So nothing changed. |
I was under the impression that VS2022 detection was the problem, which is covered by the For Windows 11 SDK detection, can you try applying this patch and see if that helps?: diff --git a/lib/findvs.js b/lib/findvs.js
index ea87e14..d9794d7 100644
--- a/lib/findvs.js
+++ b/lib/findvs.js
@@ -156,8 +156,8 @@ function findModernVS() {
const sdkVer = parseInt(m[2], 10);
if (!isFinite(sdkVer) || sdkVer < 0)
continue;
- fullVersion = `${sdk}.0.${sdkVer}.0`;
- version = `${sdk}.0`;
+ fullVersion = `10.0.${sdkVer}.0`;
+ version = '10.0';
break;
}
} |
I'm sorry if it was misleading - the error message just says "Unable to detect compiler type". And yes, this little patch helps indeed! |
Fixed in 19d7fba. Thanks for the verification. |
Build check throws an error 'Unable to detect compiler type' with Visual Studio 2022 installed.
msbuild.exe can be found on my system as
(that's on Windows 10 x64 - so it's not any longer located in "Program Files(x86)").
The text was updated successfully, but these errors were encountered: