Ubuntu image is missing .NET SDK 2.2.104?

tpodolak's Avatar

tpodolak

06 Jul, 2019 11:35 AM

I've been using Ubuntu image to build https://github.com/nsubstitute/NSubstitute.Analyzers project for quite some time and I've never experienced any problems with it until yesterday. When I try to build my master branch I am getting following error
A compatible SDK version for global.json version: [2.2.104] from [/home/appveyor/projects/nsubstitute-analyzers/global.json] was not found Even though previous builds (done so far) were always working fine - you can check in history - for instance this one

Has something change recently in Ubuntu images? I can't see NET SDK 2.2.104 listed in https://www.appveyor.com/docs/linux-images-software/

  1. Support Staff 1 Posted by Wasa Pleshakov on 08 Jul, 2019 08:15 PM

    Wasa Pleshakov's Avatar

    We can install only latest version of SDK 2.2 which is 2.2.300 in our latest Ubuntu images.

    Is there a chance to use version "2.2" without patch version "104" in global.json ? Like this:

     "version": "2.2"
    
    Another workaround is to downgrade SDK in your builds:
    install:
      - sh: apt-get install dotnet-sdk-2.2=2.2.104-1
      - sh: dotnet new console
    
    But this is quite a long operation, be prepared that your build will last longer for 5-10 minutes.
  2. 2 Posted by tpodolak on 08 Jul, 2019 09:37 PM

    tpodolak's Avatar

    I think I can use 2.2 in global.json, however, I would like to prevent potential future builds from failing. Is there any ubuntu image considered as immutable? From what I can tell, there are two "main" images listed in https://www.appveyor.com/docs/linux-images-software/. Is the Ubuntu1804 considered as stable (no breaking changes in the future)? Or rather both of them can be modified so in case of missing SDKs I need to update my code?

  3. Support Staff 3 Posted by Wasa Pleshakov on 08 Jul, 2019 10:27 PM

    Wasa Pleshakov's Avatar

    Process of updating Ubuntu images implies that it will update any software installed in an image. We update images from time to time to make them relevant to users needs. Unfortunately, we do not maintain any kind of "stable" image.

    As a short term workaround, you may use 'previous ubuntu' image which have .NET SDK 2.2.104 installed in it. But on the next update of images, we will rotate them and current 'ubuntu' image with SDK 2.2.300 will become 'previous ubuntu' image.

    If you need a stable image you may consider Appveyor On-premise and maintain your very own image.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac