Still a problem with Dotnet core 3.1.301
See original GitHub issueStill a problem with Dotnet core 3.1.301
the output of dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 3.1.302
Commit: 41faccf259
Runtime Environment:
OS Name: zorin
OS Version: 15
OS Platform: Linux
RID: linux-x64
Base Path: /usr/share/dotnet/sdk/3.1.302/
Host (useful for support):
Version: 3.1.6
Commit: 3acd9b0cd1
.NET Core SDKs installed:
3.1.302 [/usr/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.6 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.6 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
output of dotnet aspnet-codegenerator controller -name ServerController -async -api -m Server -dc ServerContext -outDir Controllers
Building project ...
Finding the generator 'controller'...
Running the generator 'controller'...
Attempting to compile the application in memory.
Attempting to figure out the EntityFramework metadata for the model and DbContext: 'Server'
A file matching the name ApiControllerWithContext.cshtml was not found within any of the folders:
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.<BuildCommandLine>b__6_0()
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args)
RunTime 00:00:04.48
output of ls -l ~/.nuget/packages/microsoft.visualstudio.web.codegenerators.mvc/3.1.4/Templates/ControllerGenerator/
total 36
-rwxrw-r-- 1 jared jared 1293 Aug 3 18:28 ApiControllerWithActions.cshtml
-rwxrw-r-- 1 jared jared 4901 Aug 3 18:28 ApiControllerWithContext.cshtml
-rwxrw-r-- 1 jared jared 411 Aug 3 18:28 ApiEmptyController.cshtml
-rwxrw-r-- 1 jared jared 2389 Aug 3 18:28 ControllerWithActions.cshtml
-rwxrw-r-- 1 jared jared 407 Aug 3 18:28 EmptyController.cshtml
-rwxrw-r-- 1 jared jared 10197 Aug 3 18:28 MvcControllerWithContext.cshtml
_Originally posted by @Jaredes0514 in https://github.com/dotnet/Scaffolding/issues/559#issuecomment-668844613_
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
.NET Core 3.1 will reach End of Support on December 13, ...
After that date, Microsoft will no longer provide servicing updates or technical support for .NET Core 3.1. We recommend moving to .NET 6...
Read more >Started to get "This project is targeting a version of .NET ...
I'm getting this same issue with ASP.Net Core 3.1. The solution has been fine for two years and now it want's to install...
Read more >Download .NET Core 3.1 (Linux, macOS, and Windows)
NET Core 3.1 downloads for Linux, macOS, and Windows. .NET is a free, cross-platform, open-source developer platform for building many different types of ......
Read more >NETSDK1045: The current .NET SDK does not support ...
This error occurs when the build tools can't find the version of the .NET SDK that's needed to build a project. This is...
Read more >Microsoft Visual Studio 2019: The project file cannot be ...
I went to C:\Program Files\dotnet\sdk\ where I found that there still exist a .NET 6 folder which is empty. Deleting that empty .NET...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just installed dotnet 5 in my ubuntu 20.04, was following the rest api tutorial and this problem still exists.
Same using dotnet 5 on Linux