-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running .net5 tests failed because .net5 framework was not found #5794
Comments
This is expected behavior as runtime component was upgraded from 5 to 6 recently https://github.com/actions/virtual-environments/pull/5749/files |
@pmatuszewski .NET 5 is out of support, but you can at your own control install it on your run. Using the |
@pmatuszewski is this a public repo? I think I'll need more info to see what's going on here -- the Desktop aspect is probably the cause here but I don't know why. My .NET 5 projects are running/testing fine: https://github.com/timheuer/ClassLibrary2/runs/7007951826?check_suite_focus=true -- so I'm not sure what the diff is here (in mine using windows-2019 runner image, and both projects target net5.0) |
@pmatuszewski, Any updates? |
I am planning to close the thread. If you have any concerns feel free to open it. |
In fact, when a runtime is integrate to a image, x64 and x86 version are installed. With dotnet-setup you cannot specify x86. |
Description
Before environment update I was able to run tests for .net5 application.
Currently when tests are run following error is displayed:
Testhost process exited with error: It was not possible to find any compatible framework version
The framework 'Microsoft.WindowsDesktop.App', version '5.0.0' (x86) was not found.
3.1.26 at [C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
6.0.6 at [C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
Platforms affected
Virtual environments affected
Image version and build link
Environment: windows-2019
Version: 20220614.0
Is it regression?
20220606.1
Expected behavior
It should be possible to run tests for .net5 application
Actual behavior
Running tests fails
Repro steps
The text was updated successfully, but these errors were encountered: