Skip to content

.NET June 2023 Update - .NET 7.0.7, .NET 6.0.18 #8539

Closed

Description

@rbhanda

.NET June 2023 Update

Release Notes

Status

Asset Type 7.0.7 6.0.18 Notes
Installers/Binaries ✅ ✅
Container Images
(Linux)
✅ ✅
Container Images
(Windows)
✅ ✅
Winget Packages ✅ ✅
Snaps ✅ ✅
Linux Packages (Microsoft distribution) 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).
     Centos 7 ✅ ✅
     Debian 10 ✅ ✅
     Debian 11 ✅ ✅
     Fedora 35 ✅ ✅
     Fedora 36 ✅ ✅
     OpenSUSE 15 ✅ ✅
     Ubuntu 18.04 ✅ ✅
     Ubuntu 20.04 ✅ ✅
     Ubuntu 22.04 ✅ ✅
     Ubuntu 23.04 ✅ ✅

Issues

Please report any issues you find either by responding to this issue, creating a new issue or creating a new issue in one of the following repos:

Known Issues

Activity

  1. pinned this issue on Jun 13, 2023
  2. jahav commented on Jun 14, 2023

    @jahav

    When I use the new docker SDK image for build,

    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)

    "projectFileDependencyGroups": {
        "net7.0": [
          "Some.StartupInfrastructure >= 1.0.0",
          "Microsoft.CodeAnalysis.Analyzers >= 3.3.4",
          "Microsoft.CodeAnalysis.NetAnalyzers >= 7.0.1",
          "SonarAnalyzer.CSharp >= 9.0.0.68202",
          "StyleCop.Analyzers >= 1.2.0-beta.435"
        ]
      },
    

    The Microsoft.CodeAnalysis.NetAnalyzers doesn't even have a published 7.0.3 version on Nuget, only preview.

    The questions:

    • Is the missing analyzer version from nuget intentional?
    • How can I increase the version of analyzers? Do I have to reference them directly? There is quote possibly an error on my side.
  3. leecow commented on Jun 15, 2023

    @leecow
    Member

    @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.

  4. jahav commented on Jun 16, 2023

    @jahav

    Thanks for info. As expected, an error was on my side. The direct dependendcy was hiding in Directory.Build.props

  5. shrayasr commented on Jun 21, 2023

    @shrayasr

    Hey,

    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

    {
      "sdk": {
        "version": "6.0.408"
      }
    }
    

    From my understanding, what I can see on the 6.0.16 section in https://dotnet.microsoft.com/en-us/download/dotnet/6.0 tells me that if I build with 6.0.408 then I can run with the 6.0.16 runtime.

    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 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.

  6. shrayasr commented on Jul 11, 2023

    @shrayasr

    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.

    Hello,

    Just checking if there are any updates on this?

  7. mairaw commented on Jul 11, 2023

    @mairaw
    Contributor

    @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.

  8. unpinned this issue on Jul 11, 2023
  9. rbhanda commented on Jul 12, 2023

    @rbhanda
    ContributorAuthor

    closing in favor of #8611

  10. 9techijcore commented on Aug 9, 2023

    @9techijcore

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions