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

Why does my netcore 3.1 build fail in a pipeline?

I am trying to build a netcore 3.1 application in a bitbucket pipeline and the build fails with an error stating it can't find the csproj file.



# Only use spaces to indent the .yml configuration.# -----
        nameDotnet Csharp files
        - dotnetcore
          - export PROJECT_NAME=TRIDENT_HG.csproj
          - dotnet restore
          - dotnet build --no-restore $PROJECT_NAME
        artifacts:          - /EPTk/TRIDENT_HG/Src/TRIDENT_HG/**

Error Message:

+ dotnet build $PROJECT_NAMEMicrosoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET CoreCopyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore... All projects are up-to-date for restore. WebCompiler: Begin compiling compilerconfig.json WebCompiler installing updated versions of the compilers.../root/.nuget/packages/buildwebcompiler/1.12.405/build/BuildWebCompiler.targets(12,9): error : No such file or directory [/opt/atlassian/pipelines/agent/build/EPTk/TRIDENT_HG/Src/TRIDENT_HG/TRIDENT_HG.csproj]
Build FAILED./root/.nuget/packages/buildwebcompiler/1.12.405/build/BuildWebCompiler.targets(12,9): error : No such file or directory [/opt/atlassian/pipelines/agent/build/EPTk/TRIDENT_HG/Src/TRIDENT_HG/TRIDENT_HG.csproj]
0 Warning(s) 1 Error(s)Time Elapsed 00:00:10.28

0 answers

Suggest an answer

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,850 views 10 16
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