Replies: 3 comments 19 replies
-
|
Hi, thanks for reporting this! The issue is almost certainly caused by the To fix this:
The warning you saw about If you're still seeing issues after removing it, could you share your |
Beta Was this translation helpful? Give feedback.
-
|
I removed all cached nuget packages, removed .vs, bin and obj folders. Removed all temporary files (using bleachbit software) to be sure. Restarted PC, but still same issue. |
Beta Was this translation helpful? Give feedback.
-
|
I'm still stuck on this. Understanding a little bit more on how Analyzer works, but still missing knowledge on how (what environment) they compile trying to understand this CSC error .... But I did find out something, should have tested that before : Trying to go back in TUnit package version, and yeah it work for older ones ! Does it talk to you ? Do you remember what change may cause this discrepancy between version |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
I tried to get into unit testing via this new promising framework.
I am using Visual Studio 2022 17.14.29
I used the template project first. It WAS working on default written tests furnished with the templated newly created project.
I could see them in the VS embedded test explorer window
Then I tried to write my first test using the TUnit Mock library. I got a warning about test generator couldn't work without System.Memory 4.0.2.0. So I added the System.Memory Nuget package.
But since All my build(clean project - rebuild) fail on MSB6006 error "csc.exe" stopped with code 1, along with 4 CSC CS8032 warning :
C:\Users\XXXX\.nuget\packages\tunit.core\1.21.24\analyzers\dotnet\roslyn4.14\cs\TUnit.Analyzers.dll: Exception has been thrown by the target of an invocation..C:\Users\XXXX\.nuget\packages\tunit.core\1.21.24\analyzers\dotnet\roslyn4.14\cs\TUnit.Analyzers.dll: Exception has been thrown by the target of an invocation..C:\Users\XXXX\.nuget\packages\tunit.core\1.21.24\analyzers\dotnet\roslyn4.14\cs\TUnit.Analyzers.dll: Exception has been thrown by the target of an invocation..C:\Users\XXXX\.nuget\packages\tunit.core\1.21.24\analyzers\dotnet\roslyn4.14\cs\TUnit.Analyzers.dll: Exception has been thrown by the target of an invocation..I even tried to removed all my nugets package, delete .vs, bin and obj folders. Create a new console project to turn it in a Tunit one manually instead. Even cerating a brand new solution with a console project, turned into a TUnit project manually, with a simple public class with a simple async test method but now all my builind fails.
Though running the testing project in CLI work fine ...
It is the MS build that fail inside VS 2022. I'm using .Net 9 as .net 10 isn't available in VS 2022. Using C# 13 or lastversion set into csproj too.
I think something is wrongly setted somewhere since it originally worked at first.
Beta Was this translation helpful? Give feedback.
All reactions