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
Anyone else having the same problem?
Yeah. i do. Here's the link https://community.atlassian.com/t5/Bitbucket-questions/Net-WebAPI-project-build-fails-using-bitbucket-pipeline/qaq-p/1083585#M42117
Never got a response I'm afraid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 \)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did it work at all?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I finally got it to work by referring to the .sln file , instead of the .proj file
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
/opt/atlassian/pipelines/agent/build/"ProjectSolutionName"/"ProjectName".csproj
ONLY THIS helped me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.