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

The reference assemblies for framework ".NETFramework,Version=v4.7.1" were not found.

Hi Atlassian community,


I have a pretty simple pipeline configuration, however, the .NET framework isn't being found. The full error is below:

/usr/share/dotnet/sdk/2.2.203/Microsoft.Common.CurrentVersion.targets(1183,5): error MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.7.1" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [/opt/atlassian/pipelines/agent/build/Scripts.csproj

I am also getting a "Not found" when trying to get dotnetcore in my caching:

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

Finally, here is my configuration file:

# This is a sample build configuration for .NET Core.

# Check our guides at 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: microsoft/dotnet:sdk

pipelines: default:

    - step:


            - dotnetcore


            - dotnet restore SugarWarrior.sln

            - dotnet build Scripts.csproj

            - dotnet test EditmodeTests.csproj

1 answer

Hi there,

I've actually same concern and I found this, it might be help ;)

The feature request for Windows/.NET builds is here: 

Follow that ticket for updates from Atlassian team.

Meanwhile, you can include assemblies directly with the nuget related.

Same problem for me is now resolved.

Suggest an answer

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

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

3,761 views 64 20
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