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 June 2023 Update - .NET 7.0.7, .NET 6.0.18 #8539
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).
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
...
RUN dotnet build "Some.csproj" -c Release -o /app/build
I get an error about newer version of analyzers.
The .NET SDK has newer analyzers with version '7.0.3' than what version '7.0.1' of 'Microsoft.CodeAnalysis.NetAnalyzers' package provides. Update or remove this package reference.
The 7.0.1 version of analyzers are resolved directly from net7.0 target (at least project.assets.json says so)
@jahav - I see that Microsoft.CodeAnalysis.NetAnalyzers 7.0.3 was published to NuGet late yesterday. Please give it a go again and let us know if it's still a problem for you.
Today, we got the following error when trying to install a service on a client machine:
Description: A .NET application failed.
Application: REDACTED.exe
Path: C:\Program Files (x86)\redacted\REDACTED.exe
Message: You must install or update .NET to run this application.
App: C:\Program Files (x86)\redacted\REDACTED.exe
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '6.0.18' (x64)
.NET location: C:\Program Files\dotnet\
The following frameworks were found:
6.0.16 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Learn about framework resolution:
https://aka.ms/dotnet/app-launch-failed
To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.18&arch=x64&rid=win10-x64
The application however was built was the 6.0.408 SDK. Here is my global.json
Additionally, I don't have the SDK 6.0.410 which is required to build applications targeting 6.0.18.
My confusion with the error above is that it tells me that I need6.0.18. How can a SDK built in the past require a runtime in the future? I would be much obliged if there are any docs that I can read on this to educate myself.
My confusion with the error above is that it tells me that I need6.0.18. How can a SDK built in the past require a runtime in the future? I would be much obliged if there are any docs that I can read on this to educate myself.
@shrayasr how are you building and publishing the app? Can you share the commands you're using it? Are you sure the global.json is impacting the folder you're currently publishing the app from? Maybe it was built using a later version.
Applying this update is removing .Net Core 2.2.6 in some Windows Server 2016 and Windows Server 2019 machines. Has anyone seen this behavior? We have one application that uses this specific version of .Net Core and when it's removed, well, it's chaos. BTW I'm Sys Admin, not developer, so is not up to me which version of .Net core I used by this app. Thanks.
Activity
jahav commentedon Jun 14, 2023
When I use the new docker SDK image for build,
I get an error about newer version of analyzers.
The 7.0.1 version of analyzers are resolved directly from net7.0 target (at least project.assets.json says so)
The Microsoft.CodeAnalysis.NetAnalyzers doesn't even have a published 7.0.3 version on Nuget, only preview.
The questions:
leecow commentedon Jun 15, 2023
@jahav - I see that Microsoft.CodeAnalysis.NetAnalyzers 7.0.3 was published to NuGet late yesterday. Please give it a go again and let us know if it's still a problem for you.
jahav commentedon Jun 16, 2023
Thanks for info. As expected, an error was on my side. The direct dependendcy was hiding in
Directory.Build.propsshrayasr commentedon Jun 21, 2023
Hey,
Today, we got the following error when trying to install a service on a client machine:
The application however was built was the
6.0.408SDK. Here is myglobal.jsonFrom my understanding, what I can see on the
6.0.16section in https://dotnet.microsoft.com/en-us/download/dotnet/6.0 tells me that if I build with6.0.408then I can run with the6.0.16runtime.Additionally, I don't have the SDK
6.0.410which is required to build applications targeting6.0.18.My confusion with the error above is that it tells me that I need
6.0.18. How can a SDK built in the past require a runtime in the future? I would be much obliged if there are any docs that I can read on this to educate myself.Thanks.
shrayasr commentedon Jul 11, 2023
Hello,
Just checking if there are any updates on this?
mairaw commentedon Jul 11, 2023
@shrayasr how are you building and publishing the app? Can you share the commands you're using it? Are you sure the global.json is impacting the folder you're currently publishing the app from? Maybe it was built using a later version.
rbhanda commentedon Jul 12, 2023
closing in favor of #8611
9techijcore commentedon Aug 9, 2023
Applying this update is removing .Net Core 2.2.6 in some Windows Server 2016 and Windows Server 2019 machines. Has anyone seen this behavior? We have one application that uses this specific version of .Net Core and when it's removed, well, it's chaos. BTW I'm Sys Admin, not developer, so is not up to me which version of .Net core I used by this app. Thanks.