Skip to content

Code generator CLI tool aspnet-codegenerator 9.0.0 requires .net 8 runtime #3145

Open
@ZuluNovember

Description

@ZuluNovember

Running the aspnet-codegenerator tool with command:

dotnet aspnet-codegenerator minimalapi -dc SurveyBackend.Data.SurveyDbContext -e OrganizationsApi -m SurveyBackend.Data.Organization -o

Results with following error message:

You must install or update .NET to run this application.

App: /Users/zulunovember/.dotnet/tools/dotnet-aspnet-codegenerator
Architecture: arm64
Framework: 'Microsoft.NETCore.App', version '8.0.0' (arm64)
.NET location: /usr/local/share/dotnet

The following frameworks were found:
  9.0.0 at [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Output of dotnet tool list -g:

Package Id                       Version      Commands                   
-------------------------------------------------------------------------
dotnet-aspnet-codegenerator      9.0.0        dotnet-aspnet-codegenerator
dotnet-ef                        9.0.1   

Output of dotnet --info

.NET SDK:
 Version:           9.0.101
 Commit:            eedb237549
 Workload version:  9.0.100-manifests.3068a692
 MSBuild version:   17.12.12+1cce77968

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  15.1
 OS Platform: Darwin
 RID:         osx-arm64
 Base Path:   /usr/local/share/dotnet/sdk/9.0.101/

.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.

Host:
  Version:      9.0.0
  Architecture: arm64
  Commit:       9d5a6a9aa4

.NET SDKs installed:
  9.0.101 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 9.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 9.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions