diff --git a/Directory.Packages.props b/Directory.Packages.props index a84164d03..7ec54887d 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -35,7 +35,7 @@ <PackageVersion Include="NSubstitute" Version="5.3.0" /> <PackageVersion Include="NSubstitute.Analyzers.CSharp" Version="1.0.17" /> <PackageVersion Include="NUnit" Version="4.3.2" /> - <PackageVersion Include="NUnit3TestAdapter" Version="4.6.0" /> + <PackageVersion Include="NUnit3TestAdapter" Version="5.0.0-beta.6" /> <PackageVersion Include="NuGet.Protocol" Version="6.12.1" /> <PackageVersion Include="PowerShellStandard.Library" Version="5.1.1" /> <PackageVersion Include="Shouldly" Version="4.2.1" /> diff --git a/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj b/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj index 305d22d96..bfd725162 100644 --- a/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj +++ b/ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj @@ -12,7 +12,10 @@ <RuntimeIdentifier Condition="$(IsWindowsARM64) == true">win-arm64</RuntimeIdentifier> <IsPackable>false</IsPackable> - <StartupObject>AutoGeneratedProgram</StartupObject> + <IsTestProject>true</IsTestProject> + <EnableNUnitRunner>true</EnableNUnitRunner> + <OutputType>Exe</OutputType> + <StartupObject>TestingPlatformEntryPoint</StartupObject> <AllowUnsafeBlocks>True</AllowUnsafeBlocks> diff --git a/ILSpy.BamlDecompiler.Tests/ILSpy.BamlDecompiler.Tests.csproj b/ILSpy.BamlDecompiler.Tests/ILSpy.BamlDecompiler.Tests.csproj index 849406f39..c68bc3e24 100644 --- a/ILSpy.BamlDecompiler.Tests/ILSpy.BamlDecompiler.Tests.csproj +++ b/ILSpy.BamlDecompiler.Tests/ILSpy.BamlDecompiler.Tests.csproj @@ -12,7 +12,9 @@ <RuntimeIdentifier Condition="$(IsWindowsARM64) == true">win-arm64</RuntimeIdentifier> <IsPackable>false</IsPackable> - <StartupObject>AutoGeneratedProgram</StartupObject> + <IsTestProject>true</IsTestProject> + <EnableNUnitRunner>true</EnableNUnitRunner> + <OutputType>Exe</OutputType> <EnableDefaultItems>false</EnableDefaultItems> <UseWpf>true</UseWpf> diff --git a/ILSpy.Tests/ILSpy.Tests.csproj b/ILSpy.Tests/ILSpy.Tests.csproj index 7fff3f2eb..9f48737ef 100644 --- a/ILSpy.Tests/ILSpy.Tests.csproj +++ b/ILSpy.Tests/ILSpy.Tests.csproj @@ -3,8 +3,11 @@ <PropertyGroup> <TargetFramework>net8.0-windows</TargetFramework> + <IsPackable>false</IsPackable> - <StartupObject>AutoGeneratedProgram</StartupObject> + <IsTestProject>true</IsTestProject> + <EnableNUnitRunner>true</EnableNUnitRunner> + <OutputType>Exe</OutputType> <AllowUnsafeBlocks>True</AllowUnsafeBlocks>