Hi Atlassian community,
I have a pretty simple pipeline configuration, however, the .NET framework isn't being found. The full error is below:
<span>/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</span>
I am also getting a "Not found" when trying to get dotnetcore in my caching:
<span>Cache "dotnetcore": Not found</span><span>Cache "dotnetcore": Downloading<br></span>
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