I am struggling to configure the build in Bitbucket Pipelines.
It's a C# solution and the code is located in a subfolder, rather than in the root folder of the repository. This is why when I build it, I get the error:
+ dotnet restore
MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
I've read the docs but there seems to be no option to try to specify a subfolder. How do you configure it then?
Here's my .yml file:
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