VSTS dotnet运行步骤未找到上一步的版本

时间:2019-05-13 12:10:00

标签: .net-core azure-devops runtime-error

我已成功配置了以下成功的dotnet build发布管道步骤:

Task version: 2.*
Display name: dotnet build
Command: build
Path to project(s): **/AppConsole.csproj
Arguments: 

紧接着失败的dotnet run步骤:

Task version: 2.*
Display name: dotnet run
Command: run
Path to project(s): **/AppConsole.csproj
Arguments: 

出现以下消息退出

[command]C:\agent_dply\_work\_tool\dotnet\dotnet.exe run C:\agent_dply\_work\r40\a\Testing\Tester\AppConsole.csproj
Couldn't find a project to run. Ensure a project exists in  C:\agent_dply\_work\r40\a.
Or pass the path to the project using --project
##[error]Error: The process 'C:\agent_dply\_work\_tool\dotnet\dotnet.exe' failed with exit code 1
##[error]Dotnet command failed with non-zero exit code on the following projects : C:\agent_dply\_work\r40\a\Testing\Tester\AppConsole.csproj

在VSTS下运行时,如何告诉dotnet命令项目在哪里?正如它所建议的,我已经尝试过使用--project标志,但是它给出了类似的错误。

0 个答案:

没有答案