具有Prebuild事件的Devops Pipeline项目

问题描述

嗨,我真的很努力在具有预构建事件的项目上建立管道。

解决方案本身可以在本地很好地构建所有21个项目。

prebuild事件如下:

"$(SolutionDir)Removerowguids\bin\Debug\Removerowguids.exe" $(SolutionDir)brouwen3.Business\Domains\Store\Dcbrouwen.edmx
"$(SolutionDir)Removerowguids\bin\Debug\Removerowguids.exe" $(SolutionDir)brouwen3.Business\Domains\Store\DcPCD.edmx

它会从现有edmx中删除一些数据。

当我运行管道时,除VS Build步骤外,其他一切都进行得很好。

这是它生成错误

Error MSB3073: The command ""D:\a\1\s\Removerowguids\bin\Debug\Removerowguids.exe" D:\a\1\s\Mits.Business\Store\Mesbrouwen.edmx" exited with code 3.
Error MSB3073: The command ""D:\a\1\s\Removerowguids\bin\Debug\Removerowguids.exe" D:\a\1\s\brouwen3.Business\Domains\Store\Dcbrouwen.edmx

管道本身是非常基本的,它尝试了MSBuild和VSBuild步骤。

如果有人能指出这里出了什么问题,那就太好了。

enter image description here

解决方法

MSB3073仅表示命令有问题,错误的最后部分exited with code 3指向路径错误,该错误在here中列出为:

ERROR_PATH_NOT_FOUND 3(0x3)系统找不到路径 指定。

\bin\Debug文件夹是在构建后生成的,在预构建过程中不存在,您可以尝试将.exe直接放置在Solution文件夹中,例如:"$(SolutionDir)Removerowguids.exe"