-
-
Notifications
You must be signed in to change notification settings - Fork 640
Added support for Visual Studio 2026 #2504
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
Conversation
a84fd0d to
3c50d51
Compare
3c50d51 to
3023f17
Compare
|
Doesn't seem to work correctly on projects with more complicated configurations/platforms results in a EDIT: it would seem that VS itself is incapable of supporting such platform configuration anymore. When trying to manually create a custom platform it gives |
|
Would you mind opening this as an issue? |
|
I've opened an issue on microsoft's side cause adding normal custom platforms through the configuration manager doesn't work (while opening a regular old .sln with those same custom platforms works fine), so let's see what they reply https://developercommunity.visualstudio.com/t/Solutions-with-custom-Platform-names-no/10972388 EDIT: Okay, it's apparently "by design" now that custom platform names aren't supported |
Just saw your edit. Really appreciate you opening that up on the VS side. I'm not really sure if there's something useful we can do from the Premake end to make it work, unfortunately. |
One can still open .sln files in VS2026 and have custom platforms work on those. but for .slnx it's not supported |
|
I think it's possible, if I get one of the generated sln files and right click save as in VS2026 it converts it to an slnx file that opens properly. I've added a zip file that contains the slnx generated by premake, the one saved by visual studio, the original one it comes from, and the lua, for testing. |
|
yeah @nickclark2016 as above, if converting an existing .sln to a .slnx from visual studio, it opens just fine. it seems VS adds stuff into the <project> section into the slnx (left is generated by VS, right is by premake) |

What does this PR do?
Adds support for VS 2026. This includes the new solution format, which is XML based. See schema here: https://github.com/microsoft/vs-solutionpersistence/blob/main/src/Microsoft.VisualStudio.SolutionPersistence/Serializer/Xml/Slnx.xsd
This also adds support for the new C++ toolchain, v145.
How does this PR change Premake's behavior?
No changes to existing code.
Anything else we should know?
No
Did you check all the boxes?
closes #XXXXin comment to auto-close issue when PR is merged)You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to requests like these!