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

Make sure we all use the same C# lang version #12006

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

molnard
Copy link
Collaborator

@molnard molnard commented Nov 29, 2023

Recently my VS auto-updated and I got the new C# - especially the new C# lang version => 12. After this VS started to offer new expressions that are only available in 12. I thought it was OK because we specified versions in config files precisely. Unfortunately, this was not the case with the lang version - other devs were not able to compile the project.

I propose to set the version of the lang from latest to 11 to make this deterministic. In this case, automatic updates cannot mess up our code integrity. We have a similar concept with the .NET version as well - it is specified precisely.

@wieslawsoltes
Copy link
Collaborator

Can we put this in https://github.com/zkSNACKs/WalletWasabi/blob/master/Directory.Build.props#L3 ?

And maybe unify the:

<AnalysisLevel>latest</AnalysisLevel>
<Nullable>enable</Nullable>

@kiminuo
Copy link
Collaborator

kiminuo commented Nov 29, 2023

Copy link
Collaborator

@kiminuo kiminuo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to have this explicit. Yes.

@molnard
Copy link
Collaborator Author

molnard commented Nov 29, 2023

Can we put this in

I don't know, can we? From my side this PR is satisfactory, it solves my problem.

@molnard molnard changed the title Makes we all use the same C# lang version Make sure we all use the same C# lang version Nov 29, 2023
@kristapsk
Copy link
Collaborator

Concept ACK

@molnard molnard merged commit 5cfbe43 into WalletWasabi:master Nov 30, 2023
6 of 7 checks passed
@kiminuo kiminuo mentioned this pull request Dec 15, 2023
@molnard molnard deleted the lang11 branch December 21, 2023 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants