Missed Team ’24? Catch up on announcements here.

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

.net core 3.0 sdk

bsarica October 22, 2019

How can we refer .net core sdk for 3.0 in bitbucket-pipelines.yml? the default sdk image doesn't support 3.0 yet afaik.

2 answers

1 accepted

0 votes
Answer accepted
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 25, 2019

Hi @bsarica

Please confirm it I'm understanding you correctly.

You are trying to use the .net core SDK 3.0 in Pipelines, but the default docker image (that is used when no other is referenced) does not have the version you need, right?

If this is the case, can you reference a different image that has the SDK you need?

Another option is to customize any image as you want. Then you can reference it in your Pipelines.

More details on how to reverence other images can be found at:

I hope that is helpful.

bsarica October 29, 2019

Thanks, I tried and it works. My image line is now as below:

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

 

Thanks again.

Like # people like this
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 30, 2019

I'm glad you are back in business now! =]

anshul1007
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 28, 2019

Hi Bsarica,

 

Can you please share the YML file which you have used for pipeline as I am getting error. I am using the .net core 3.1.

bsarica December 29, 2019

# This is a sample build configuration for .NET Core.
# Check our guides at https://confluence.atlassian.com/x/5Q4SMw for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: mcr.microsoft.com/dotnet/core/sdk:3.0

pipelines:
   branches:
      develop:
         - step:
            caches:
               - dotnetcore
            script: # Modify the comma`nds below to build your repository.

            #the following lines are irrelevant.

 

 

IMO the bold line should be replaced in your situtation. Just try 3.1 at the end and see if anything happens.

0 votes
jnisenson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 15, 2020

Update bitbucket-pipelines.yml to use the following image

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events