adding DotnetCliTool to csproj project on VS2017RC #597
Comments
Because of NuGet/Home#4190, you cannot install the package from the NuGet GUI. Instead, you must edit your csproj file to contain: <ItemGroup>
<DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="1.0.0-msbuild3-final" />
</ItemGroup> The source for this tool lives here: https://github.com/aspnet/DotNetTools/ |
Dear Support Team, We have faced a problem with adding "Microsoft.Extensions.SecretManager.Tools" into AspNet Core project in Visual Studio 2017. Error message: Package 'Microsoft.Extensions.SecretManager.Tools 1.0.1' has a package type 'DotnetCliTool' that is not supported by project 'SecretManagerInVs2017'. I've tried to add "SecretManager.Tools" as described in the documentation (https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets) but it didn't solve the problem Please help us solve the described issue. Kind regards, |
@maksym-devpro the error you described is a known issue. See NuGet/Home#4190. As I mentioned before, manually edit your csproj and then run restore either in Visual Studio or on command line with |
Thank you so much. |
…/Configuration#597, I knew I had to restore after editing csproj. Installed SecretManager.
Hi, Microsoft.Extensions.SecretManager.Tools package is this repo?
I will Encrypt to configuration items.
reading this.
https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets
I can not to do. because I don't have project.json .
I try add NuGet package reference to project.
error massage shown this. (I use ja-jp localized VS)
message means package type 'DotnetCliTool' is not supported on Web project,
My question.
The text was updated successfully, but these errors were encountered: