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

Bitbucket Pipelines with .net core 3.1

In my bitbucket repo I've got a simple .net core 3.1 project: \ProjectXY\ProjectXY.sln (windows wpf application)

The config \bitbucket-pipelines.yml looks like:

 

image: mcr.microsoft.com/dotnet/core/sdk:3.1

pipelines:
default:
- step:
caches:
- dotnetcore
script:
- dotnet restore ProjectXY/ProjectXY.sln
- dotnet build ProjectXY/ProjectXY.sln --configuration Release

 

In the command prompt the 2 script commands of the config works successfull but the build fails:

 

Cache "dotnetcore": Downloading
Cache "dotnetcore": Not found

Images used:
build : mcr.microsoft.com/dotnet/core/sdk@sha256:ea7ce9991e01fac7c0329377970a6e5e18e0042416124a051b6d70e4caa9ec61
+ dotnet restore ProjectXY/ProjectXY.sln
Determining projects to restore...
/usr/share/dotnet/sdk/3.1.300/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(59,5): error NETSDK1100: Windows is required to build Windows desktop applications. [/opt/atlassian/pipelines/agent/build/ProjectXY/ProjectXY.csproj]
Skipping cache upload for failed step
Searching for test report files in directories named [test-results, failsafe-reports, test-reports, surefire-reports] down to a depth of 4
Finished scanning for test reports. Found 0 test report files.
Merged test suites, total number tests is 0, with 0 failures and 0 errors.

 

Thank you very much for your help!

Regards

Markus

1 answer

Hi Marcus, welcome.

Please take note of the actual error message:

Windows is required to build Windows desktop applications.

and the remark on the limitations:

Currently we don't support building WindowsmacOS, or iOS applications

This leaves you with many options. You can track the linked Jira ticket on the progress of Windows in Bitbucket Pipelines and you can also contact Microsoft and tell them that you want to build Windows applications on Linux and demand it.

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,326 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