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 2024 Update - .NET 8.0.5, NET 7.0.19, .NET 6.0.30 #9309
The list below refers to the Microsoft-provisioned feeds (packages.microsoft.com) and does not in any way represent direct availability in distros (eg RHEL, Fedora).
There seems to be a change in the Central Package Management behaviour in SDK 8.0.300 around the existence of Directory.Packages.props file. We had one in our solution but it didn't have anything defined, ie:
<Project>
</Project>
dotnet restore was happy under previous SDK versions, but now under 8.0.300 it starts complaining about the incorrect use of Central Package Management (as if it is enabled), eg:
error NU1008: Projects that use central package version management should not define the version on the PackageReference items but on the PackageVersion items
Deleting the Directory.Packages.props has fixed the issue.
Reacted by jgtestw, Pieter-Jan Briers, HeseRula, Andreas Kromann, abjoseph, Jens Andersen, Ryan Milligan and srxmsft
Is it possible that this update changed the way code style analyzers work at least for 8.0.5? Out of sudden analyzers that didn't trigger before are now producing warnings or in our case errors preventing our build from working even so there weren't any changes. e.g.: error IDE0100: Remove redundant equality
Reacted by cnickel-cmgo, Ben Page, Chris Pearson and Radek Zahradník
@SusanBradley the blog post is now live athttps://devblogs.microsoft.com/dotnet/dotnet-and-dotnet-framework-may-2024-servicing-updates/
As @antmeehan and @andreaskromann point out with NuGet/NuGet.Client#5572, I think it's worth noting that the default value of <ManagePackageVersionsCentrally /> has essentially changed such that whenever a file called Directory.Packages.props is present, the default value is now true (8.0.300) as opposed to false (prior to 8.0.300).
This was in fact a breaking change for us, because some of our legacy projects in our mono repository haven't been migrated to use the centralized package management, causing some of our builds to fail when building with the 8.0.300 SDK. We relied on the default value and using a more specific Directory.Build.props to ensure that these legacy projects did not use the central nuget package versioning.
Now, for anyone reading this, it's easily fixed by explicitly setting <ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally> in the Directory.Build.props file where you do not want to use CPM, but it is indeed something you MUST do before upgrading the dotnet SDK.
Reacted by Stephen Ward, jgtestw, Shashwat S and Miguel-AgRz
@pebezo The images are up to date, but the syndication from the Microsoft Asset Registry to DockerHub is currently not working. See dotnet/dotnet-docker#5327.
Can we have link to what's the new feature released in 8.0.300, compared to 8.0.205, it should be a new feature release, so what's the new feature?
This versioning is primarily to enable new tooling work share with Visual Studio (ie compilers, analizers, msbuild, etc) to move forward with new versions of VS, though impactful SDK changes do sometimes also come into play.
@marcpopMSFT - who could help work out a good way to get this information into release notes or some other location?
CC @baronfel in case he has any better idea on how to track/document this.
Typically, the SDK feature band releases are mostly about updates of the VS tooling (ie updates to nuget, msbuild, roslyn, razor, vstest, etc) to ensure the SDK matches what ships in VS. Those tool updates can have features in them but we rely on individual teams to document and call out any new features (for example, nuget package search was introduced in 8.0.200).
For the SDK, we typically update the .net 9 release notes with new features (even if those features ship in the feature band SDKs) to reduce the release costs. Looking over PRs into the 8.0.3xx branch, there are a few minor quality of life improvements and some container changes. Everything else in codeflow.
Different repos/tech have different approaches here. The Containers tech has dedicated release notes in the SDK repo that are tracked per-SDK Release, while the F# team has per-component release notes markdown files that are currently published to community run sites like https://fsharp.github.io/fsharp-compiler-docs/release-notes/Language.html. I think from a process perspective the first step is having some kind of per-component changelog tracking happening as changes are made in the repo, and then aggregating those periodically.
Apologies, this was most likely a false alarm. Averages are now returning to the same as before so I think it was simply because the rolling upgrade of course also means a rolling restart of all containers:
Is it possible that this update changed the way code style analyzers work at least for 8.0.5? Out of sudden analyzers that didn't trigger before are now producing warnings or in our case errors preventing our build from working even so there weren't any changes. e.g.: error IDE0100: Remove redundant equality
We are also seeing this issue. We had one team member seeing this behaviour and the only difference we saw was the version of Visual Studio I was on 17.9.6 they were on 17.10. As soon as I also updated I got the same error.
An example error is: if (expectedPattern.IsMatch(contents) == false)
Whilst this could be if(!expectedPattern.IsMatch(contents) which passes the check, the former is much harder to miss the intent.
Is it possible that this update changed the way code style analyzers work at least for 8.0.5? Out of sudden analyzers that didn't trigger before are now producing warnings or in our case errors preventing our build from working even so there weren't any changes. e.g.: error IDE0100: Remove redundant equality
Since this release my CIDC has been broken for our aspnet application. CSHTML files now have build errors that don't make any sense. Of all the build errors its just cshtml files.
for example :
<div render-if="!@isUpdate" class="col-md-2"> has a build error error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement
isUpdate is defined above in a code block.
Using 8.0.301 doesnt help, has the same behaviour. For now I have pinned my pipeline image to mcr.microsoft.com/dotnet/sdk:8.0.204 but I have yet to figure out how to get a dev container with the 8.0.204 sdk
dotnet/aspnetcore#54763 was the only analyzer change we took for 8.0.5, but it's not clear to me how that could be related (CC @JamesNK). If it's not that, it seems more likely to be a change in dotnet/roslyn-analyzers
Why did this release include the 8.0.300 SDK but the matching Visual Studio 17.9.7 update shipped with 8.0.205?
If I install 8.0.300 manually, it doesn't work properly in Visual Studio because it looks like the compiler version is too old, causing the SDK analyzers to not work.
For example:
The analyzer assembly 'C:\Program Files\dotnet\sdk\8.0.300\Sdks\Microsoft.NET.Sdk\codestyle\cs\Microsoft.CodeAnalysis.CodeStyle.dll' references version '4.10.0.0' of the compiler, which is newer than the currently running version '4.9.0.0'. ServiceControl.Audit.Persistence.SagaAudit C:\Program Files\dotnet\sdk\8.0.300\Sdks\Microsoft.NET.Sdk\codestyle\cs\Microsoft.CodeAnalysis.CodeStyle.dll
We currently have our CI builds set up to pick up the latest SDK, so this results in us having failing builds due to the analyzers in the updated SDK finding more cases of triggering patterns, but then us not being able to see them locally in Visual Studio and apply fixers.
It also appears the compiler in the 8.0.300 SDK has a new language breaking change that has impacted us as well, and it's a pain to figure out what's going on when I can't use the matching SDK in Visual Studio. @bording were you able to resolve this? I am also getting same error after manully installing 8.0.300 sdk.
I am also curious as to why an identical command, aside from the baseOS differences, installs 8.0.1-1 vs 8.0.5-1. I guess that also means the repo is technically missing
dotnet-runtime-deps-8.0-8.0.5-1.x86_64, given the versions should match.
Activity
mattzink commentedon May 14, 2024
Is the full changelog link for the 7.0.19 release supposed to be comparing v6.0.29 -> v7.0.19? I guess I was expecting 7.0.18 -> 7.0.19?
https://github.com/dotnet/core/releases/tag/v7.0.19
antmeehan commentedon May 15, 2024
There seems to be a change in the Central Package Management behaviour in SDK
8.0.300around the existence ofDirectory.Packages.propsfile. We had one in our solution but it didn't have anything defined, ie:dotnet restorewas happy under previous SDK versions, but now under8.0.300it starts complaining about the incorrect use of Central Package Management (as if it is enabled), eg:Deleting the
Directory.Packages.propshas fixed the issue.Serge-N commentedon May 15, 2024
Publish the blog too .
andreaskromann commentedon May 15, 2024
@antmeehan it seems to be this change: NuGet/NuGet.Client#5572
devtronic-abrettschneider commentedon May 15, 2024
Is it possible that this update changed the way code style analyzers work at least for 8.0.5? Out of sudden analyzers that didn't trigger before are now producing warnings or in our case errors preventing our build from working even so there weren't any changes. e.g.: error IDE0100: Remove redundant equality
SusanBradley commentedon May 15, 2024
Can we get a priority on publishing the blog on the day that updates are released? https://devblogs.microsoft.com/dotnet/May-2024-updates/ that's MIA. I'm not a developer, I'm a patcher and I rely on the communication from the .NET blog to know what updates I should be expecting.
mairaw commentedon May 15, 2024
@SusanBradley the blog post is now live athttps://devblogs.microsoft.com/dotnet/dotnet-and-dotnet-framework-may-2024-servicing-updates/
SusanBradley commentedon May 15, 2024
@mairaw https://support.microsoft.com/en-us/topic/-net-6-0-update-may-14-2024-kb5038350-a08fa6e5-7c7e-4ecb-a15e-268507cd39ab that says that the .net 6 also has security updates, not just 7 and 8?
rbhanda commentedon May 15, 2024
Hello, My apologies for the wrong details in the https://support.microsoft.com/en-us/topic/-net-6-0-update-may-14-2024-kb5038350-a08fa6e5-7c7e-4ecb-a15e-268507cd39ab. I have submitted a request to update this to reflect that 6.0 is a non security release
Work against .NET SDK update ManagePackageVersionsCentrally change
Hesehus-TOAL commentedon May 16, 2024
As @antmeehan and @andreaskromann point out with NuGet/NuGet.Client#5572, I think it's worth noting that the default value of
<ManagePackageVersionsCentrally />has essentially changed such that whenever a file calledDirectory.Packages.propsis present, the default value is nowtrue(8.0.300) as opposed tofalse(prior to 8.0.300).This was in fact a breaking change for us, because some of our legacy projects in our mono repository haven't been migrated to use the centralized package management, causing some of our builds to fail when building with the 8.0.300 SDK. We relied on the default value and using a more specific
Directory.Build.propsto ensure that these legacy projects did not use the central nuget package versioning.Now, for anyone reading this, it's easily fixed by explicitly setting
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>in theDirectory.Build.propsfile where you do not want to use CPM, but it is indeed something you MUST do before upgrading the dotnet SDK.pebezo commentedon May 16, 2024
Any reason why 8.0.4 or 8.0.5 is not listed here https://hub.docker.com/_/microsoft-dotnet-runtime ?
lbussell commentedon May 16, 2024
@pebezo The images are up to date, but the syndication from the Microsoft Asset Registry to DockerHub is currently not working. See dotnet/dotnet-docker#5327.
You can view the latest tags on MAR: https://mcr.microsoft.com/product/dotnet/runtime/tags
8 remaining items
leecow commentedon May 23, 2024
I see dotnet/runtime#100575 included in 8.0.5.
@Maoni0 can you have a look at the above?
leecow commentedon May 23, 2024
This versioning is primarily to enable new tooling work share with Visual Studio (ie compilers, analizers, msbuild, etc) to move forward with new versions of VS, though impactful SDK changes do sometimes also come into play.
@marcpopMSFT - who could help work out a good way to get this information into release notes or some other location?
marcpopMSFT commentedon May 23, 2024
CC @baronfel in case he has any better idea on how to track/document this.
Typically, the SDK feature band releases are mostly about updates of the VS tooling (ie updates to nuget, msbuild, roslyn, razor, vstest, etc) to ensure the SDK matches what ships in VS. Those tool updates can have features in them but we rely on individual teams to document and call out any new features (for example, nuget package search was introduced in 8.0.200).
For the SDK, we typically update the .net 9 release notes with new features (even if those features ship in the feature band SDKs) to reduce the release costs. Looking over PRs into the 8.0.3xx branch, there are a few minor quality of life improvements and some container changes. Everything else in codeflow.
baronfel commentedon May 24, 2024
Different repos/tech have different approaches here. The Containers tech has dedicated release notes in the SDK repo that are tracked per-SDK Release, while the F# team has per-component release notes markdown files that are currently published to community run sites like https://fsharp.github.io/fsharp-compiler-docs/release-notes/Language.html. I think from a process perspective the first step is having some kind of per-component changelog tracking happening as changes are made in the repo, and then aggregating those periodically.
mrahl commentedon May 24, 2024
Apologies, this was most likely a false alarm. Averages are now returning to the same as before so I think it was simply because the rolling upgrade of course also means a rolling restart of all containers:
chrispearson-cg commentedon May 24, 2024
We are also seeing this issue. We had one team member seeing this behaviour and the only difference we saw was the version of Visual Studio I was on 17.9.6 they were on 17.10. As soon as I also updated I got the same error.
An example error is:
if (expectedPattern.IsMatch(contents) == false)Whilst this could be
if(!expectedPattern.IsMatch(contents)which passes the check, the former is much harder to miss the intent.nckl commentedon May 29, 2024
Since this release my CIDC has been broken for our aspnet application. CSHTML files now have build errors that don't make any sense. Of all the build errors its just cshtml files.
for example :
<div render-if="!@isUpdate" class="col-md-2">has a build error error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statementisUpdate is defined above in a code block.
Using 8.0.301 doesnt help, has the same behaviour. For now I have pinned my pipeline image to mcr.microsoft.com/dotnet/sdk:8.0.204 but I have yet to figure out how to get a dev container with the 8.0.204 sdk
leecow commentedon Jun 3, 2024
@wtgodbe, can you have a look at the comment above? Starting with you since @nckl is seeing the break in aspnetcore.
wtgodbe commentedon Jun 3, 2024
dotnet/aspnetcore#54763 was the only analyzer change we took for 8.0.5, but it's not clear to me how that could be related (CC @JamesNK). If it's not that, it seems more likely to be a change in dotnet/roslyn-analyzers
Ritika-Poddar commentedon Jun 5, 2024
Arauf2 commentedon Jun 28, 2024
FYI, I am trying to install aspnetcore-runtime 8.0 on an almalinux image, and it appears the repo (https://packages.microsoft.com/config/alma/9/packages-microsoft-prod.rpm) is missing:
dotnet-runtime-deps-8.0-8.0.1-1.x86_64
I followed instructions here: https://learn.microsoft.com/en-us/linux/packages
and it appears that method is not necessary anymore, e.g: https://learn.microsoft.com/en-us/dotnet/core/install/linux-rhel still results in this:
microdnf install aspnetcore-runtime-8.0aspnetcore-runtime-8.0-8.0.5-1.el9_4.x86_64 dotnet-host-8.0.5-1.el9_4.x86_64 dotnet-hostfxr-8.0-8.0.5-1.el9_4.x86_64 dotnet-runtime-8.0-8.0.5-1.el9_4.x86_64 libicu-67.1-9.el9.x86_64On an amazonlinux-2023 image using the package method (https://packages.microsoft.com/config/amazonlinux/2023/packages-microsoft-prod.rpm), these are installed:
dotnet-host-8.0.1-1.x86_64 dotnet-hostfxr-8.0-8.0.1-1.x86_64 dotnet-runtime-deps-8.0-8.0.1-1.x86_64 dotnet-runtime-8.0-8.0.1-1.x86_64 aspnetcore-runtime-8.0-8.0.1-1.x86_64I am also curious as to why an identical command, aside from the baseOS differences, installs 8.0.1-1 vs 8.0.5-1. I guess that also means the repo is technically missing
dotnet-runtime-deps-8.0-8.0.5-1.x86_64, given the versions should match.
@rbhanda, any ideas for next step?
rbhanda commentedon Jul 9, 2024
closing in favor of #9390
Arauf2 commentedon Jul 9, 2024
@rbhanda, shall I open up an "issue" for my comment above? Thanks!