FalconWebsite.csproj
<ItemGroup>
<PackageReference Include="knockoutjs" Version="3.4.1" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.0.0-beta1" />
<PackageReference Include="Microsoft.AspNetCore" Version="1.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="1.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OAuth" Version="1.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.1" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="1.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="1.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.Design" Version="1.1.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="1.1.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="1.1.0-msbuild3-final" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0-msbuild3-final" />
</ItemGroup>
我正在尝试使用以下命令安装Microsoft.Extensions.SecretManager.Tools
Install-Package Microsoft.Extensions.SecretManager.Tools -Pre
但是,我得到如下图像
我在此链接Package 'Microsoft.EntityFrameworkCore.Tools.DotNet 1.0.0-msbuild2-final' has a package type 'DotnetCliTool' that is not supported by project中发现了类似的错误 但是,根据链接不适合我
答案 0 :(得分:1)
编辑项目文件,添加以下行:
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="1.0.0-msbuild3-final" />
</ItemGroup>
我刚尝试过它并且有效。
答案 1 :(得分:0)
使用Microsoft.Extensions.SecretManager.Tools
版本1.0.0-msbuild3-final
答案 2 :(得分:0)
由于NuGet/Home#4190,您无法从NuGet GUI安装软件包。相反,您必须编辑csproj文件以包含:
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="1.0.0-msbuild3-final" />
</ItemGroup>
这是你的答案,因为我是通过页面解决的。 https://github.com/aspnet/Configuration/issues/597