Skip to content
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

Support newer Visual Studio build tools #76

Open
OrangeDog opened this issue May 17, 2021 · 3 comments
Open

Support newer Visual Studio build tools #76

OrangeDog opened this issue May 17, 2021 · 3 comments

Comments

@OrangeDog
Copy link

OrangeDog commented May 17, 2021

VS2010 is rather old now, and e.g. VS2017 cannot build hawtjni's projects

C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(65,5): error MSB8020: The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using the v100 build tools, please install Visual Studio 2010 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".

Being able to generate newer projects would be very helpful. I can't even find a way to get the 2010 (or 2008) build tools any more. https://visualstudio.microsoft.com/vs/older-downloads/ only goes back to 2012.

@OrangeDog
Copy link
Author

OrangeDog commented May 17, 2021

I found you can bypass that check with e.g. <windowsPlatformToolset>v141</windowsPlatformToolset>, but then you get SDK version complaints instead

C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.Cpp.WindowsSDK.targets(46,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution".

There doesn't seem to be an equivalent option to change that to a Windows 10 SDK.

@OrangeDog
Copy link
Author

Ok, I found that one too: <windowsTargetPlatformVersion>10.0.17763.0</windowsTargetPlatformVersion>.
I guess there's nothing to do other than make the defaults newer and/or smarter?

@castortech
Copy link
Contributor

Have a look at my fork: https://github.com/castortech/hawtjni

It does support all the way to VS 2022 and externalized the settings in the pom.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants