.NET Framework v5.0 No Longer Available

Kanwal Ahuja's Avatar

Kanwal Ahuja

05 Jul, 2022 04:45 PM

Our build has suddenly stopped being able to executes test for a Microsoft.NETCore.App v5.0 library. This was working recently and no change has been made to this library in quite a while. I've included a good build that ran for a PR as well as the failing build that was only the merge of that PR.

Recent Good Build (https://ci.appveyor.com/project/BuchananGroup/hometesterclub-0xm7n/builds/44039402)
unning .NET Core tests...dotnet test "C:\projects\hometesterclub-0xm7n\WaveUtility.Tests\WaveUtility.Tests.csproj" --configuration Debug --no-build --filter "TestCategory!=Integration"
Test run for C:\projects\hometesterclub-0xm7n\WaveUtility.Tests\bin\Debug\net5.0\WaveUtility.Tests.dll (.NETCoreApp,Version=v5.0)
Microsoft (R) Test Execution Command Line Tool Version 16.11.0
Copyright (c) Microsoft Corporation. All rights reserved.
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
No test matches the given testcase filter `TestCategory!=Integration` in C:\projects\hometesterclub-0xm7n\WaveUtility.Tests\bin\Debug\net5.0\WaveUtility.Tests.dll

Broken Build (https://ci.appveyor.com/project/BuchananGroup/hometesterclub-0xm7n/builds/44074572):
Test run for C:\projects\hometesterclub-0xm7n\WaveUtility.Tests\bin\Debug\net5.0\WaveUtility.Tests.dll (.NETCoreApp,Version=v5.0)
Microsoft (R) Test Execution Command Line Tool Version 16.11.0
Copyright (c) Microsoft Corporation. All rights reserved.
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
Testhost process exited with error: It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '5.0.0' (x64) was not found.
  - The following frameworks were found:
      1.0.16 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      1.1.13 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      2.0.9 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      2.1.18 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      2.2.7 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      3.0.3 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      3.1.4 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      3.1.26 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      6.0.6 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=5.0.0&arch=x64&rid=win10-x64
. Please check the diagnostic logs for more information.
Test Run Aborted.

Was anything changed with the base image that might have affected the installed framework versions?

Thanks in advance for your help,
Kanwal

  1. Support Staff 1 Posted by Feodor Fitsner on 05 Jul, 2022 05:08 PM

    Feodor Fitsner's Avatar

    Hi Kanwal,

    The latest Visual Studio 2019 version 16.11.16 installs 5.0.409 which, for some reason, brings version 6.0.6 of .NET Core runtime with it. I'm not sure why .NET team decided to drop 5.0.x runtime, but it's affecting running tests - we've got similar reports from other customers.

    As a workaround for now is to install previous 5.0.408 SDK during the build with the following commands: https://gist.github.com/FeodorFitsner/c62c323dee76b6c116e6ea699770f...

    We'll add 5.0.408 during the next image update later this week.

  2. Support Staff 2 Posted by Feodor Fitsner on 05 Jul, 2022 05:23 PM

    Feodor Fitsner's Avatar

    We'll deploy image update later today.

  3. Support Staff 3 Posted by Feodor Fitsner on 06 Jul, 2022 03:50 AM

    Feodor Fitsner's Avatar

    We've updated Visual Studio 2019 image - it includes .NET 5.0 runtime now. Your build should be fine now.

  4. 4 Posted by Kanwal Ahuja on 08 Jul, 2022 03:15 PM

    Kanwal Ahuja's Avatar

    Thanks Feodor. Much appreciated!

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