You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
.NET May 2022 Update - .NET 6.0.5, .NET 5.0.17, and .NET Core 3.1.25 #7447
Note: This list refers to the Microsoft-provisioned feeds (packages.microsoft.com) and does not in any way represent direct availability in distros (eg RHEL, Fedora).
Known Issues
If there are any more issues with this release we will track them here and check issues off as they're resolved. See the linked issues for details on progress and resolution details.
changed the title [-].NET April 2022 Update - .NET 6.0.5, .NET 5.0.17, and .NET Core 3.1.25[/-][+].NET May 2022 Update - .NET 6.0.5, .NET 5.0.17, and .NET Core 3.1.25[/+]on May 10, 2022
Our builds are returning extra code analysis violations since upgrading to .NET Core 6.0.5 (i.e. SDK 6.0.300). These warnings are not present in SDK 6.0.203.
e.g. The line List<string> a = new(b.C); now returns warning IDE0028: Collection initialization can be simplified
e.g. The line var a = new B { C = d, E = new F { G = 100 } }; now returns warning IDE0017: Object initialization can be simplified
We have some CI/CD builds which have started failing after the release of dotnet 6.0.300 which seems to be related to central package management.
The error we are getting is: error NU1507: There are 2 package sources defined in your configuration. When using central package management, please map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source.
Yesterday this was not a problem (with version 6.0.202), and after investigation we found that our builds started working again when specifying verison 6.0.202 to be installed. We are using the actions/setup-dotnet@v2 action to achieve this. Previously we installed the latest dotnet in our workflow yml files like so:
Distro 6.0.5 5.0.17 3.1.25
Ubuntu 18.04
Ubuntu 20.04
Ubuntu 21.04
Centos 7
Debian 10
Debian 11
Fedora 33
Fedora 34
OpenSUSE 15
Oracle
Note: This list refers to the Microsoft-provisioned feeds (packages.microsoft.com) and does not in any way represent direct availability in distros (eg RHEL, Fedora).
Known Issues
If there are any more issues with this release we will track them here and check issues off as they're resolved. See the linked issues for details on progress and resolution details.
When I run dotnet restore on this project, a warning about conflicting Nuget packages is being treated as an error and failing. This did not happen in the 6.0.202 SDK but does happen in 6.0.300. Were there changes to how configurations are handled during dotnet restore?
The specific warning/error is NU1701 and it's happening because a package is being restored as net461 for a netstandard project. I'm working to fix that, but this warning/error/failure did not happen on a previous SDK so I'm reporting it here.
Seems like MSBuildTreatWarningsAsErrors and TreatWarningsAsErrors were working/handling differently and enabling TreatWarningsAsErrors didn't have any effect on MSBuild warnings, now it has.
Activity
[-].NET April 2022 Update - .NET 6.0.5, .NET 5.0.17, and .NET Core 3.1.25[/-][+].NET May 2022 Update - .NET 6.0.5, .NET 5.0.17, and .NET Core 3.1.25[/+]edwiles commentedon May 11, 2022
Our builds are returning extra code analysis violations since upgrading to .NET Core 6.0.5 (i.e. SDK 6.0.300). These warnings are not present in SDK 6.0.203.
e.g. The line
List<string> a = new(b.C);now returnswarning IDE0028: Collection initialization can be simplifiede.g. The line
var a = new B { C = d, E = new F { G = 100 } };now returnswarning IDE0017: Object initialization can be simplifiedbmilsom commentedon May 11, 2022
Hello,
We have some CI/CD builds which have started failing after the release of dotnet 6.0.300 which seems to be related to central package management.
The error we are getting is:
error NU1507: There are 2 package sources defined in your configuration. When using central package management, please map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source.Yesterday this was not a problem (with version 6.0.202), and after investigation we found that our builds started working again when specifying verison 6.0.202 to be installed. We are using the actions/setup-dotnet@v2 action to achieve this. Previously we installed the latest dotnet in our workflow yml files like so:
but we have reverted it like this for now:
These are running on the ubuntu-latest GitHub runners.
jaredpar commentedon May 11, 2022
@jmarolf , @sharwell, @terrajobst
yophilav commentedon May 11, 2022
@rbhanda
Could you update the link for 3.1.25 please?
The link for 3.1.25 doesn't work.
I think there is a typo in the url https://github.com/dotnet/core/blob/main/release-notes/3. "0" /3.1.25/3.1.25.md
dstahl-axion commentedon May 17, 2022
I'm seeing some new failures as well.
I have a project with the following PropertyGroup in the .csproj file.
When I run
dotnet restoreon this project, a warning about conflicting Nuget packages is being treated as an error and failing. This did not happen in the 6.0.202 SDK but does happen in 6.0.300. Were there changes to how configurations are handled duringdotnet restore?The specific warning/error is
NU1701and it's happening because a package is being restored as net461 for a netstandard project. I'm working to fix that, but this warning/error/failure did not happen on a previous SDK so I'm reporting it here.hasan-akgun-sveasolar commentedon May 20, 2022
Seems like
MSBuildTreatWarningsAsErrorsandTreatWarningsAsErrorswere working/handling differently and enablingTreatWarningsAsErrorsdidn't have any effect onMSBuildwarnings, now it has.dcwhittaker commentedon Jun 14, 2022
Closing in favor of #7536