Skip to content
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

Merged
merged 6 commits into from
Feb 10, 2020

Conversation

kianzarrin
Copy link
Collaborator

@kianzarrin kianzarrin commented Feb 9, 2020

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 in SharedAssemblyInfo.cs according to https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly.getexecutingassembly?view=netframework-4.8

Now 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.

@originalfoo
Copy link
Member

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.

Copy link
Member

@originalfoo originalfoo left a 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.

@originalfoo originalfoo added code cleanup Refactor code, remove old code, improve maintainability technical Tasks that need to be performed in order to improve quality and maintainability labels Feb 9, 2020
@originalfoo originalfoo added this to the 11.1 milestone Feb 9, 2020
Copy link
Member

@krzychu124 krzychu124 left a 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 😕

@originalfoo originalfoo changed the title centeral mod version Centralise mod version Feb 10, 2020
@originalfoo originalfoo merged commit 54a9398 into CitiesSkylinesMods:master Feb 10, 2020
@kianzarrin kianzarrin deleted the 678-central-version branch February 11, 2020 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code cleanup Refactor code, remove old code, improve maintainability technical Tasks that need to be performed in order to improve quality and maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mod version management
4 participants