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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

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.

0 answers

Suggest an answer

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

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,129 views 0 3
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