visual studio mac for mac missing of identity class

后端 未结 3 782
借酒劲吻你
借酒劲吻你 2020-12-30 14:52

Hi i downloaded visual studio for mac 2017 community version. I created a default MVC Core 2.0 project and i noticed that there is missing class of Account controllers where

3条回答
  •  礼貌的吻别
    2020-12-30 15:38

    Currently the GUI for Mac Visual Studio does not support the ability to add Authentication. However, the CLI does!

    1. dotnet new sln --name

      • This will create a new sln
      • If you don't use the --name flag the sln will take the current folder's name
    2. dotnet new mvc -o moviemvc --auth Individual

      • This will create a new .csproj with mvc and Authentication (Identity models) included
    3. dotnet sln add

      • This will add the file to the sln in the folder (if exists)
    4. dotnet sln add

      • If you have multiple sln's in the folder, you will have to specify the sln you want to target

    You can find more information here too

提交回复
热议问题