Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
ZuluNovember opened this issue Jan 16, 2025 · 0 comments

Comments

@ZuluNovember
Copy link

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant