Create
cancel
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

How to setup build pipeline for .Net 5.0

Hi everyone,

 

I got a bitbucket repository for a .Net 5.0 project.

The solution contains some .Net 5.0 class library projects and some .Net 5.0 winform projects.

I just want to ask how to setup a build pipeline to esure that all comited code always build?

 

Best regards,

1 answer

Thank you for your answer.

 

I tried the followin scriot but the job failed :

 



# This is a sample build configuration for .NET Core.
# Only use spaces to indent your .yml configuration.
# -----
# You can use any Docker image from Docker Hub, or your own container registry, as your build environment.
image: microsoft/dotnet:sdk:5.0
pipelines:
default:
- step:
script: # Modify the commands below to build your repository.
- export PROJECT_NAME=UpsilonEcosystem.sln
- export TEST_NAME=UpsilonEcosystem.sln
- dotnet restore
- dotnet build $PROJECT_NAME
- dotnet test $TEST_NAME
Like Abir Stolov likes this

What was the error message?

/opt/atlassian/pipelines/agent/build/Upsilon/Common/Forms/Upsilon.Common.Forms.csproj : error NU1201: Project Upsilon.Common.Library is not compatible with net50-windows (.NETFramework,Version=v5.0,Profile=windows). Project Upsilon.Common.Library supports: net50 (.NETFramework,Version=v5.0) [/opt/atlassian/pipelines/agent/build/UpsilonEcosystem.sln]

Suggest an answer

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

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

236 views 2 5
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