Default unityVersion to the branch's m_EditorVersion in ProjectVersion.txt
See original GitHub issueI have working code (pretty simple) to read m_EditorVersion from ProjectSettings\ProjectVersion.txt. I’m using this as the input to with: unityVersion
. Something like this could be the default if unityVersion is not specified. Any thoughts on that? Seems to be in keeping with the goal of having things work out of the box, but maybe you want to avoid parsing this file? Maybe in production people want to use a constant version to build binaries, but you’d think they’d be developing with that version too, right? It looks like the ProjectVersion.txt file has been around for a while (at least 2015), and is automatically updated by Unity when you upgrade. What do you think?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Finding the Name and Editor Version Used in Unity Projects
The first 2 immediate things that are useful to know about a Unity project are. 1 — Editor Version. 2 — Project Name....
Read more >Merge conflict in ProjectVersion.txt causes 'Unable to parse ...
Workaround: This issue is likely a merge conflict in one of the ProjectVersion. txt files. The error is still present on any new...
Read more >Feedback - Unity Hub Ignores Project Version
We have a Unity project which has several versions of the project in different branches in git. Some of these branches are using...
Read more >sentry-unity/Directory.Build.props at main - GitHub
If there is no Unity version in the environment we default to reading it ... -of-bugs/ProjectSettings/ProjectVersion.txt</UnitySampleProjectUnityVersion>.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see.
Yes I think you will find that every production-grade project using Nodejs will only change the Nodejs version in CI and docker files when this is proven to work in the pipeline itself, not just when someone installs a different version of node and creates a commit. (yes I have seen people using
latest
tag too, but no comment)Lets continue platform agnostic:
I believe these things are semantically different because:
The bigger a team is, the more important these differences become and in some cases entirely different teams are responsible for these two things. If you’re saying my explanation isn’t world-class I fully agree, but I’m not convinced we should change all Unity Actions based on 1 use case that in my opinion mixes concerns. (You’d have to come with objective reasons and why it would work for everyone else too).
If you want to do two semantically different things in the same step, this is possible of course. Nobody is stopping you from reading a file in a step before the build or test step and providing a value (using an output parameter) as the Unity version in Unity Builder and Unity Test Runner.
Hey @dogboydog,
I think it’s an interesting idea.
Currently I think this is not desirable for three reasons:
I think we should close this issue unless we have specific use cases that would require this.