Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Pipeline MSBUILD : error MSB1009: Project file does not exist.

Ad4m_j
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 8, 2019

Iv created a AWS Serverless Application with tests in dotnet core and trying to run the test project as part of the pipeline but getting the error "MSBUILD : error MSB1009: Project file does not exist."

 

Here is my bitbucket-pipelines.yml

pipelines:
default:
- step:
image: microsoft/dotnet:sdk
name: Tests
caches:
- dotnetcore
script:
- export TEST_NAME=AWSLambda1.Tests/AWSLambda1.Tests.csproj
- dotnet test $TEST_NAME

 

 

1 answer

0 votes
Ad4m_j
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 28, 2019

Anyone else having the same problem?

Carl Davis
Contributor
January 17, 2020

I'm having the same issue just calling a .sln in the Project File.

I have tried both:

  Project File:  SubDir\Projfile.sln

  Working Subdirectory:  [blank]

and

  Project File:  Projfile.sln

  Working Subdirectory:  Subdir   (with and without trailing \)

Like Yamilet Ancan likes this
Junaid Jarral
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 18, 2020

Did it work at all?

jimdunstan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 12, 2020

I finally got it to work by referring to the .sln  file , instead of the .proj file

Like Nicolaj Hammerbo likes this
Albert Gaytkulov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 7, 2020

/opt/atlassian/pipelines/agent/build/"ProjectSolutionName"/"ProjectName".csproj

 

ONLY THIS helped me

Like Yamilet Ancan likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events