Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

.Net WebAPI project build fails using bitbucket pipeline

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

- step:
- 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.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

3,935 views 68 21
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you