Replies: 2 comments 5 replies
-
So currently, I don't believe this is supported in Premake. There is currently logic depending on the version of Visual Studio requested in the project files. We also provide a version number for the solution format version in the solution file, which corresponds to the version of the solution. When you have a version agnostic project, how is the format version handled in the solution? Also, how are fields in new versions of VS handled by old versions? We're definitely open to having a PR for a "vs" action, but there are definitely questions that would need to be answered. |
Beta Was this translation helpful? Give feedback.
-
OK, I'll try to do it. It might take me some time though as I'm completely new to Premake (and not very comfortable with Lua, even though I used it in the past).
In the currently used tool we require specifying the names for all the solution files to produce explicitly. I don't know if we could (probably?) or should (really no idea) do it like this with Premake, but this seems to work reasonably well, e.g. in practice you'd typically add a few options specifying the solution file names for the versions you support once and then update them when adding support for the new version of MSVS or dropping support for an old one.
From what (little) I know about Premake syntax, it could make sense to use
OK, thanks, this is important, as I'd need to look at 6.x then -- so far I've only looked at 5, as I thought it was the latest version (and it's not even yet available in even the latest Debian, for example, where only premake4 package exists).
I'd like to try because we really need some solution for MSVS projects generation not relying on obsolete Python 2 (used by our current tool), but I don't promise anything yet, let's see how it goes first... Thanks again for your help! |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'd like to be able to use premake to generate version-independent project files for MSVS, i.e. instead of running
premake5 vs2017
andpremake5 vs2019
andpremake5 vs2022
I'd like to have a generator that I could use withpremake5 msvs
which would create a single set of.vcxproj
files that could be used with any of these versions and one or more solution files, which would use these project files.IME this works much better than having multiple version-specific projects that mostly are exactly identical and I've been using this (with other project-generating tools) for many years, but I don't think it's currently possible to do this with premake, is it? If yes, I'd be glad to hear about it, but if no, I'd like to ask whether anybody can give me any hints about how could this be implemented and, also, whether contributing such
msvs
action back to premake itself would be welcome?Thanks in advance for your thoughts!
VZ
Beta Was this translation helpful? Give feedback.
All reactions