admin管理员组文章数量:1336563
I am trying to setup .NET in my macbook using vscode and c# devkit. I installed 8.0 first but it didn't work, threw some weird error. I tried 9.0 and it worked fine.
Then I tried aspnet-codegenerator for scaffolding and it installed fine. But on using it to generate a controller I see this error.
You must install or update .NET to run this application.
App: /Users/harshkumar/.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]
Learn more:
To install missing framework, download:
? framework=Microsoft.NETCore.App&framework_version=8.0.0&arch=arm64&rid=osx-arm64&os=osx.14
Is this package not really supported in 9.0?
Edit: It is supported according to the official documentation and chatgpt but I'm still getting this error
I am trying to setup .NET in my macbook using vscode and c# devkit. I installed 8.0 first but it didn't work, threw some weird error. I tried 9.0 and it worked fine.
Then I tried aspnet-codegenerator for scaffolding and it installed fine. But on using it to generate a controller I see this error.
You must install or update .NET to run this application.
App: /Users/harshkumar/.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]
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=8.0.0&arch=arm64&rid=osx-arm64&os=osx.14
Is this package not really supported in 9.0?
Edit: It is supported according to the official documentation and chatgpt but I'm still getting this error
Share Improve this question edited Nov 20, 2024 at 7:07 Harsh Kumar asked Nov 20, 2024 at 6:59 Harsh KumarHarsh Kumar 3762 silver badges12 bronze badges 5 |3 Answers
Reset to default 0It seems that there is a bug in aspnet-codegenerator
. See this issue on .NET's issue tracker.
I had the same issue after installing dotnet-aspnet-codegenerator
tool for .NET 9 in Docker container. Adding an option --allow-roll-forward
resolved the issue for me:
$ dotnet tool install dotnet-aspnet-codegenerator -g --allow-roll-forward
I had to install dotnet 8 alongside my version 9 and make sure it was added to PATH.
本文标签: aspnetcodegenerator not supported for NET 90Stack Overflow
版权声明:本文标题:aspnet-codegenerator not supported for .NET 9.0 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742375558a2463089.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
dotnet-aspnet-codegenerator
do you have installed? Try installing the 9th one withdotnet tool install --global dotnet-aspnet-codegenerator --version 9.0.0
. – Guru Stron Commented Nov 20, 2024 at 7:33threw some weird error.
what error? Fix that instead. As for the current error, the error message is perfectly clear - you tried to use a .NET 8 tool without .NET 8 installed – Panagiotis Kanavos Commented Nov 20, 2024 at 7:34and chatgpt
randomly generated text is less helpful than random SDK installations. If you get an error because there's no project to scaffold, or you're running the tool in the wrong folder, reinstallation won't fix anything – Panagiotis Kanavos Commented Nov 20, 2024 at 7:37