-
Notifications
You must be signed in to change notification settings - Fork 85
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
Centralise mod version #680
Centralise mod version #680
Conversation
shared assembly info file.
Looks good! Always wanted something like this; just as you'd spent ages trying to find way to get steam apps path, I'd spent ages trying to work out how to centralise the version info. Great to finally see this be a reality! Currently testing some other stuff but hope to get round to testing this in a few hours. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Tested and working great!
Took me a while to find the SharedAssemblyInfo.cs in the Solution Explorer lol.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
VS does not let me revert TMPE.sln I tried to do it with a external editor but then I started to get errors. I'd say let TMPE.sln to be as it is.
VS is generating projects id automatically, we can't do anything with it 😕
fixed #678
Added SharedAssemblyInfo.cs to the solution. this file is added as "LINKED FILE" to every TMPE project:
including these projects: TLM TMPE.*
excluding these projects: CSUtil.Commons CSUtil.CameraInfo OptionsFramework
changed the
const
version string to a property whose value is same as the Version inSharedAssemblyInfo.cs
according to https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly.getexecutingassembly?view=netframework-4.8Now there is only one place to change assembly version:
SharedAssemblyInfo.cs
Also updated the copy rights also inside
SharedAssemblyInfo.cs
EDIT: I decided to do this because of #649 (comment)
EDIT:
you might notice some changes to TMPE.sln these changes are harmless and is mostly re-shufling lines. This is because when I added
SharedAssemblyInfo.cs
to solution VS decided to do some tidying up as well!VS does not let me revert TMPE.sln I tried to do it with a external editor but then I started to get errors. I'd say let TMPE.sln to be as it is.