Upgrade .NETCore SDK in default .NET configuration

Issue #13700 resolved
Carlos Ignacio Pérez Sechi created an issue

Is it posible to update the version of the .NETCore SDK in order to build latest versions of dotnet applications with the pipeline.

Here I show the error I get while running "dotnet test" in my project:

The specified framework 'Microsoft.NETCore.App', version '1.1.0' was not found. - Check application dependencies and target a framework version installed at: /usr/share/dotnet/shared/Microsoft.NETCore.App - The following versions are installed: 1.0.1 - Alternatively, install the framework version '1.1.0'

Comments (4)

  1. Philip Hodder staff

    Hi Carlos,

    I assume you have based your build off of the default .NET configuration we provide? Can you try and replace the line:

    image: microsoft/dotnet:onbuild


    image: microsoft/dotnet:1.1.0-sdk-msbuild

    instead. That should give you the version of .NET you need.

    Let me know how that goes.

    Thanks, Phil

  2. Günther Foidl

    Generally (and as "mentioned" in Building .NET Core Docker Images | Microsoft Docs I would kick out the onbuild-image. Use only the microsoft/dotnet-image.

    So similar to this one:

      name: microsoft/dotnet
      depth: 1
        - step:
              - dotnetcore
              - dotnet restore
              - dotnet build -c Release
              - find tests -name *.csproj -exec dotnet test --no-build -c Release {} \;
  3. Log in to comment