Skip to content

Swashbuckle looking for .NET 7 in a .NET 8 project #2707

Closed
@zahalzel

Description

@zahalzel

Running Swashbuckle 6.5.0 on a .NET 8 project, I only have .NET 8 SDK and runtimes installed, running into this error:

dotnet swagger tofile --serializeasv2 --output "C:\Users\zahalzel\source\repos\WebApplication1010\WebApplication1010\bin\Debug\net8.0\swagger.json" "C:\Users\zahalzel\source\repos\WebApplication1010\WebApplication1010\bin\Debug\net8.0\WebApplication1010.dll" v1

You must install or update .NET to run this application.
App: C:\Users\zahalzel\.nuget\packages\swashbuckle.aspnetcore.cli\6.5.0\tools\net7.0\any\dotnet-swagger.dll
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '7.0.0' (x64)
.NET location: C:\Program Files\dotnet\
The following frameworks were found:
  8.0.0-rc.1.23419.4 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Learn more:
https://aka.ms/dotnet/app-launch-failed
To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=7.0.0&arch=x64&rid=win-x64&os=win10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions