我正在构建一个 dotnet 核心工具,但在全局安装时遇到问题。我可以复制我遇到的问题,但不知道如何解决它。下面是我的步骤
<PackAsTool>和<PackageOutputPath>安装时我收到以下错误
error NU1212: Invalid project-package combination for TestConsole 1.0.9. DotnetToolReference project style can only contain references of the DotnetTool type
这是 nupkg 中 testconsole.nuspec 的副本,其中包含
<packageType name="DotnetTool" />来自https://natemcmaster.com/blog/2018/05/12/dotnet-global-tools/的建议