Hi @Muhammad Ghozla,
Welcome to Microsoft Q&A!
Please edit your project file (.csproj) as the following:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="TUnit" Version="0.1.818" />
</ItemGroup>
</Project>
The package Microsoft.NET.Test.Sdk
is not compatible with TUnit. And if you use the xUnit framework to run TUnit tests, you need to manually delete xUint package reference.
Sincerely,
Anna
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.