Hi Team,
I know this must sound fairly routine to most of you. However, for a beginner like me this has turned out to be a rather daunting task.
I've pushed my WebApI project to BitBucket's master branch with the following entries in 'bitbucket-pipelines.yml'.
image: microsoft/dotnet:sdk
pipelines:
default:
- step:
caches:
- dotnetcore
script: # Modify the comma`nds below to build your repository.
- export PROJECT_NAME=..\..\myProject
#- export TEST_NAME=someTest
- dotnet restore
- dotnet build $PROJECT_NAME
#- dotnet test $someTest
With this the CI always gets triggered, however, it fails with error ->
Build setup 4s
export PROJECT_NAME=..\..\myProject<1s
+ export PROJECT_NAME=..\..\someTest
dotnet restore <1s
+ dotnet restore
MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
The build fails with the same error even if I specify "export PROJECT_NAME=myProject".
Could someone please point me in the right direction?
The project targets .Net framework 4.6.1.
I didn't put in the .csproj content in here to avoid cluttering. Please ask, if you need; I'll post it,
Thanks very much.