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

nathan-hawkins May 5, 2019

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 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: microsoft/dotnet:sdk

pipelines: default:

    - step:

        caches:

            - dotnetcore

        script:

            - dotnet restore SugarWarrior.sln

            - dotnet build Scripts.csproj

            - dotnet test EditmodeTests.csproj

1 answer

0 votes
Remi Sarraillon January 10, 2020

Hi there,

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

The feature request for Windows/.NET builds is here: https://bitbucket.org/site/master/issues/13452/support-for-native-windows-net-builds-on 

Follow that ticket for updates from Atlassian team.

Remi Sarraillon January 10, 2020

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

https://www.nuget.org/packages/Microsoft.NETFramework.ReferenceAssemblies.net471/

Same problem for me is now resolved.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events