-
-
Notifications
You must be signed in to change notification settings - Fork 59
Support .NET Core SDK 3.1.300 and later #347
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
Conversation
} | ||
} | ||
" | ||
); |
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.
I'm late to the party, but here's a simpler way:
dotnet new globaljson --sdk-version 3.1.300 --force
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.
Thanks @thomaslevesque!
BTW why would I need the --force
option?
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.
FYI — #350
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.
To overwrite the existing file, like your current code is doing
It is required for both MinVer and SourceLink to work properly. See adamralph/minver#347 and dotnet/sdk#10614
.NET Core SDK 3.1.300 contains a breaking change which results in projects versioned with MinVer producing assemblies which do not have the correct
AssemblyFileVersion
,AssemblyInformationalVersion
, andAssemblyVersion
. Effectively, these versions are not set, and will keep their default values, which are usually1.0.0.0
,1.0.0
, and1.0.0.0
respectively.Note that only assembly versions are affected. If a project produces a NuGet package, the version of the package is still correct. However, the problem with assembly versions means that, effectively, MinVer 2.2.0 and earlier do not support .NET Core SDK 3.1.300 and later.
This enhancement adds support for .NET Core SDK 3.1.300 and later in MinVer 2.3.0.
Thanks to @ghorsey and @joacar for spotting this and raising #342 and #343 respectively, and thanks to @bording for fixing this in #344, which was cherry-picked into this branch.