AspNetCore.Docs
AspNetCore.Docs copied to clipboard
Getting a "build failed" after Scaffold Controller commands
Specially after: dotnet aspnet-codegenerator controller -name TodoItemsController -async -api -m TodoItem -dc TodoContext -outDir Controllers
I followed the steps exactly but getting "Build FAILED" with 10 warnings and 2 errors.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 583ae3e7-5915-f22b-e54c-6c100cf2a7da
- Version Independent ID: 95f2549e-29f9-e31a-b4d0-432b971643ff
- Content: Tutorial: Create a web API with ASP.NET Core
- Content Source: aspnetcore/tutorials/first-web-api.md
- Product: aspnet-core
- Technology: aspnetcore-tutorials
- GitHub Login: @Rick-Anderson
- Microsoft Alias: riande
The tutorial works. I'm not sure what step you missed. You might try asking on StackOverflow,.
You need to stop debug. I met the same issus.