Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/228.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net core Visual Studio Mac中不提供.Net Core CLI工具_.net Core_Command Line Interface_Visual Studio Mac - Fatal编程技术网

.net core Visual Studio Mac中不提供.Net Core CLI工具

.net core Visual Studio Mac中不提供.Net Core CLI工具,.net-core,command-line-interface,visual-studio-mac,.net Core,Command Line Interface,Visual Studio Mac,tl;dr-在Visual Studio Mac中作为预生成步骤运行时,未找到自定义.Net Core CLI工具 全部故事- 我开发了一个定制的.Net核心CLI工具,我们称之为ConfigTool。此工具是作为.Net核心控制台应用程序开发的,并作为nuget包部署在私有存储库中 我有一个.Net Core 2.0项目,它引用了csproj中的nuget/tool,如下所示: 构建项目时,它会还原nuget包,并使CLI工具可用作dotnet configtool。如果我打开终端并导航到

tl;dr-在Visual Studio Mac中作为预生成步骤运行时,未找到自定义.Net Core CLI工具

全部故事-

我开发了一个定制的.Net核心CLI工具,我们称之为
ConfigTool
。此工具是作为.Net核心控制台应用程序开发的,并作为nuget包部署在私有存储库中

我有一个.Net Core 2.0项目,它引用了
csproj
中的nuget/tool,如下所示:


构建项目时,它会还原nuget包,并使CLI工具可用作
dotnet configtool
。如果我打开终端并导航到我的项目目录并运行命令
dotnet configtool
,它将按预期工作

现在,我希望此命令作为构建过程的一部分运行。因此,我在我的
csproj
的底部添加了以下内容


问题: 在Visual Studio Mac(Community Edition)中构建项目时,我遇到以下错误:
找不到与命令“dotnet configtool”匹配的可执行文件。

尝试过的事情

  • 从项目目录(windows)中的终端运行
    dotnet configtool
    成功
  • 在Visual Studio 2017(windows)中作为预构建步骤运行
    dotnet configtool
    成功
  • 从项目目录(mac)中的终端运行成功
  • 从项目目录(mac)中的终端运行
    dotnet build
    成功
  • 在Visual Studio Mac(社区版)(Mac)中作为预构建步骤运行
    dotnet configtool
    失败
  • 当从VisualStudioMac运行解决方案时,我需要这样做


    有什么想法吗?

    将此问题报告给Microsoft visual Help menu。这是一个已知的错误,在开发人员社区中也有报告-谢谢,@MattWard!真不敢相信我在所有的搜索中都没有找到那些报告。