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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

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

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.

 

pipeline.yml:

# Only use spaces to indent the .yml configuration.# -----
pipelines:  
branches:    
develop:    
step:
        nameDotnet Csharp files
        imagemcr.microsoft.com/dotnet/core/sdk:3.1
        caches:
        - dotnetcore
        script:
          - cd $BITBUCKET_CLONE_DIR/EPTk/TRIDENT_HG/Src/TRIDENT_HG
          - 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
TAGS
Community showcase
Published in Bitbucket

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

456 views 4 4
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