Identity Scaffolding on Ubuntu 20.04 using incorrect file paths dotnet 5
See original GitHub issueOutput of dotnet --info
:
.NET SDK (reflecting any global.json):
Version: 5.0.101
Commit: d05174dc5a
Runtime Environment:
OS Name: ubuntu
OS Version: 20.04
OS Platform: Linux
RID: ubuntu.20.04-x64
Base Path: /usr/share/dotnet/sdk/5.0.101/
Host (useful for support):
Version: 5.0.1
Commit: b02e13abab
.NET SDKs installed:
3.1.404 [/usr/share/dotnet/sdk]
5.0.101 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.10 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.10 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Steps to reproduce:
- Install the code generator: dotnet tool install -g dotnet-aspnet-codegenerator
- Create a project to scaffold into dotnet new webapp --auth Individual -o WebApp1
- cd into the new project directory
- Install Microsoft.VisualStudio.Web.CodeGeneration.Design
- Build the project to make sure everything works (build OK)
- run scaffold :
dotnet aspnet-codegenerator identity -dc WebApp1.Data.ApplicationDbContext --files "Account.Register;Account.Login;Account.Logout;Account.RegisterConfirmation"
Expected behavior:
All Identity.UI Razor Pages are scaffolded into the project
Actual behavior:
A fatal error indicating a file was not found:
Account.RegisterConfirmation" Building project ... Finding the generator 'identity'... Running the generator 'identity'... A file matching the name Account.Register.cs.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:09.87
Additional information about the project being scaffolded, such as:
Target framework(s):
net5.0
Package version of Microsoft.AspNetCore.App or Microsoft.AspNetCore.All (if applicable):
5.0.1
Package version of Microsoft.VisualStudio.Web.CodeGeneration.Design - this may be added to your project by scaffolding:
5.0.1
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Identity Scaffolding on Ubuntu 20.04 using incorrect file paths
Build the project to make sure everything works (build OK) Scaffold all Identity pages: dotnet aspnet-codegenerator identity -dc IdentityApp. ...
Read more >Identity Scaffolding on Ubuntu 20.04 using incorrect file ...
I was having an issue with Omnisharp not being able to generate my ... dotnet tool update dotnet-aspnet-codegenerator -g --version 6.0.2.
Read more >Scaffold Identity in ASP.NET Core projects
This document explains the steps needed to complete an Identity scaffolding update. We recommend using a source control system that shows ...
Read more >Newest 'asp.net-core-scaffolding' Questions - Stack Overflow
Identity Scaffolding on Ubuntu 20.04 using incorrect file paths dotnet 5. Output of dotnet --info: .NET SDK (reflecting any global.json): Version: 5.0.101 ...
Read more >.NET Identity Scaffolding Error - YouTube
If you are taking a . NET Course, where we are using the . NET Identity Class Library for Authentication. Then with the...
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
@mmousa8189 @jahnog @guustysebie I have a fix for this issue out with a new 3.1.5 and 5.0.2 package out.
Use dotnet tool update dotnet-aspnet-codegenerator -g --version 3.1.5/5.0.2 depending on if you are targeting .netcoreapp3.1 or net5.0. I would like it if someone could confirm the fix before I close the issue.
Apologize for the lengthy delay on this fix and appreciate all the feedback.
Seems to work based on other feedback. Closing.