2
我很努力在Bitbucket流水线中配置构建。如何在Bitbucket流水线中构建子文件夹
这是一个C#解决方案,代码位于子文件夹中,而不是位于存储库的根文件夹中。这就是为什么当我建立它,我得到的错误:
+ dotnet restore
MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
我读过的文档,但似乎没有选项来尝试指定一个子文件夹。那么你如何配置它?
这是我的.yml文件:
image: microsoft/dotnet:latest
pipelines:
default:
- step:
caches:
- dotnetcore
script: # Modify the commands below to build your repository.
- export PROJECT_NAME=MyProjectNameHere
- export TEST_NAME=MyProjectNameHere
- dotnet restore
- dotnet build $PROJECT_NAME
- dotnet test $TEST_NAME
为我工作!谢谢 –