AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Mac OS .NET CLI: not contains Identity files

Open agiletuan opened this issue 8 years ago • 4 comments

Steps to reproduce run the following command at the command line:

dotnet new mvc --auth Individual

Expected behavior Project will contains Asp.Net Identity module.

File: Controllers/AccountController.cs File: Controllers/ManageController.cs File: Models/ApplicationUser.cs Folders: AccountViewModels (and files), ManageViewModels (and files) Actual behavior Project not contains Asp.Net Identity module.

Environment data dotnet --info output:

.NET Core SDK (reflecting any global.json): Version: 2.1.301 Commit: 5952487

Runtime Environment: OS Name: Mac OS X OS Version: 10.13 OS Platform: Darwin RID: osx.10.13-x64 Base Path: /usr/local/share/dotnet/sdk/2.1.301/

Host (useful for support): Version: 2.1.1 Commit: 6985b9f684

.NET Core SDKs installed: 2.1.301 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.1.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download

https://github.com/dotnet/cli/issues/9561


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

agiletuan avatar Jun 26 '18 16:06 agiletuan

It's there, see https://docs.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-2.1?view=aspnetcore-2.1 and https://docs.microsoft.com/en-us/aspnet/core/razor-pages/ui-class?view=aspnetcore-2.1&tabs=visual-studio

Rick-Anderson avatar Jun 26 '18 17:06 Rick-Anderson

@Rick-Anderson thank you so much! I see: must scaffold after create new project!

agiletuan avatar Jun 26 '18 17:06 agiletuan

Only if you want to generate the Identity code. You don't need to scaffold. Run the app you created and register a user. It's all there in a RCL.

Rick-Anderson avatar Jun 26 '18 17:06 Rick-Anderson

Run CLI on windows always working.

agiletuan avatar Jun 26 '18 18:06 agiletuan