diff --git a/csharp/Platform.Disposables.Tests/DisposableTests.cs b/csharp/Platform.Disposables.Tests/DisposableTests.cs index caa19fb..68dde86 100644 --- a/csharp/Platform.Disposables.Tests/DisposableTests.cs +++ b/csharp/Platform.Disposables.Tests/DisposableTests.cs @@ -42,7 +42,7 @@ private static ProcessStartInfo CreateProcessStartInfo(string logPath, bool wait return new ProcessStartInfo { FileName = "dotnet", - Arguments = $"run -p \"{projectPath}\" -f net7 \"{logPath}\" {waitForCancellation.ToString()}", + Arguments = $"run -p \"{projectPath}\" -f net8 \"{logPath}\" {waitForCancellation.ToString()}", UseShellExecute = false, CreateNoWindow = true }; @@ -67,11 +67,7 @@ private static string GetDisposalObjectTestProjectFilePath() } } pathParts = newPathParts.ToArray(); -#if NET472 - var directory = string.Join(Path.DirectorySeparatorChar.ToString(), pathParts.ToArray()); -#else var directory = Path.Combine(pathParts); -#endif var path = Path.Combine(directory, $"{disposalOrderTestProjectName}.csproj"); if (!Path.IsPathRooted(path)) {