Skip to content

Support for VS2015 through VS2022 in Premake 4#20

Open
assarbad wants to merge 4 commits into
premake:masterfrom
assarbad:master
Open

Support for VS2015 through VS2022 in Premake 4#20
assarbad wants to merge 4 commits into
premake:masterfrom
assarbad:master

Conversation

@assarbad

Copy link
Copy Markdown

Hi @starkos,

I finally got around to work on rebasing my fork on your Git repo. IIRC we both used Hg once upon a time, then you and I separately migrated to Git, commit hashes diverged etc. I traced the common ancestor to a9141de and git replace-d my history for the one from your premake-4.x repo. This way they should be compatible.

I then rebased onto your master branch, since it seemed the sensible thing to do, just squashing a single commit that touched only the .hgignore file.

The result should cleanly work and be true to the Premake 4 spirit without adding the other stuff I added in my WDS fork.

My commits are signed (thus didn't tick the "allow edits" checkbox).

Best regards,

Oliver

PS: more will follow, such as the support for VS2026. It's not a big deal, but since I am doing the work now, I am also cleaning the history a little.

assarbad added 4 commits May 14, 2026 22:05
Does not add the VisualStudioVersion and MinimumVisualStudioVersion in solution
files, but VS2015 opens those fine regardless and picks them up first even when
VS2010, 2012 and 2013 are installed as well.

Added corresponding tests and verified that all is as expected.
There are also minor fixes, such as for CompileAs and other conditions. It
actually also required changing two test cases, because implicitly the default
are C++ projects, so adding .c files should add CompileAs, but didn't in the
past.
It appears the true string in modern versions is "Visual Studio Version <version>" not just "Visual Studio <version>". Still need to figure out which of the VS versions changed it.
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

Successfully merging this pull request may close these issues.

1 participant