asp.net代码生成器不断请求程序包,即使它已添加

asp.net代码生成器不断请求程序包,即使它已添加,asp.net,.net,Asp.net,.net,。。。。。。。。。。 一般信息: 操作系统:Linux mint Debbie 代码编辑器:vs代码 下面是我的教程: ........... 当我跑步时: dotnet aspnet-codegenerator -h 我得到这个(和选项/参数列表): 包已添加到csproj文件中: <Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <TargetFramework>

。。。。。。。。。。 一般信息:

操作系统:Linux mint Debbie

代码编辑器:vs代码

下面是我的教程: ........... 当我跑步时:

dotnet aspnet-codegenerator -h
我得到这个(和选项/参数列表):

包已添加到csproj文件中:

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="3.1.7" />
    <PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="3.1.7" />
    <PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="3.1.7" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.1.7">
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
      <PrivateAssets>all</PrivateAssets>
    </PackageReference>
    <PackageReference Include="Microsoft.EntityFrameworkCore.SQLite" Version="3.1.7" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.7" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.7">
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
      <PrivateAssets>all</PrivateAssets>
    </PackageReference>
    <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.4" />
  </ItemGroup>

</Project>
我得到:

    Building project ...
Finding the generator 'view'...
No code generators found with the name 'view'
   at Microsoft.VisualStudio.Web.CodeGeneration.CodeGeneratorsLocator.GetCodeGenerator(String codeGeneratorName)

   at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args)

问题可能与dotnet aspnet codegenerator和Microsoft.VisualStudio.Web.CodeGeneration.Design有关,请卸载此软件包,然后尝试重新安装。问题可能与dotnet aspnet codegenerator和Microsoft.VisualStudio.Web.CodeGeneration.Design有关,请卸载此软件包,然后尝试重新安装。
dotnet-aspnet-codegenerator view -name myView
    Building project ...
Finding the generator 'view'...
No code generators found with the name 'view'
   at Microsoft.VisualStudio.Web.CodeGeneration.CodeGeneratorsLocator.GetCodeGenerator(String codeGeneratorName)

   at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args)