Skip to content

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

Merged
merged 5 commits into from
May 26, 2020
Merged

Support .NET Core SDK 3.1.300 and later #347

merged 5 commits into from
May 26, 2020

Conversation

adamralph
Copy link
Owner

@adamralph adamralph commented May 26, 2020

.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, and AssemblyVersion. Effectively, these versions are not set, and will keep their default values, which are usually 1.0.0.0, 1.0.0, and 1.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.

@adamralph adamralph added the enhancement New feature or request label May 26, 2020
@adamralph adamralph added this to the 2.3.0 milestone May 26, 2020
}
}
"
);

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

Copy link
Owner Author

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?

Copy link
Owner Author

Choose a reason for hiding this comment

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

FYI — #350

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants