.NET 8 - Common Language Runtime detected an invalid program. #2867
Answered
by
VeroniqueBorel
VeroniqueBorel
asked this question in
Question
-
Hi, My tests won't run when I try to migrate my test project to .NET 8. I get the same issue with a brand new project: in VS 2022 17.8.5, add a new project using template "xUnit Test Project" and framework .NET 8.0, then just run "Test1". The test doesn't run and I get this output:
Upgrading the NuGet packages to the latest version doesn't make any difference. Did I miss something when I upgraded Visual Studio? Is .NET 8 supported? |
Beta Was this translation helpful? Give feedback.
Answered by
VeroniqueBorel
Jan 19, 2024
Replies: 1 comment 1 reply
-
Out of the box version works: Newest version works as well: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you so much for checking. Your answer made me realize I had the profiler of Telerik JustMock running and it was indeed the culprit. Luckily the latest version is fixed.