Fixed incorrect runtime directives in library resolver tests
このコミットが含まれているのは:
1 親
3b3e348c4f
コミット
c53dba1155
2ファイル変更
+6
-6
検索条件に一致するファイルはありません
@@ -6,6 +6,6 @@ using BenchmarkDotNet.Running;
|
||||
// ================
|
||||
// In order to run this benchmark, switch to Release mode and either run select
|
||||
// it as the startup project for the solution and run it without the debugger
|
||||
// (CTRL + F5), or compile it and then go to its bin\Release\net5.0 folder,
|
||||
// (CTRL + F5), or compile it and then go to its bin\Release\net6.0 folder,
|
||||
// open a cmd prompt and run "dotnet ComputeSharp.Benchmark.dll".
|
||||
BenchmarkSwitcher.FromAssembly(Assembly.GetExecutingAssembly()).Run(args);
|
||||
@@ -59,7 +59,7 @@ public class NativeLibrariesResolverTests
|
||||
CleanSampleProject(configuration, rid);
|
||||
BuildSampleProject(configuration, rid);
|
||||
|
||||
string realtivePathToDll = Path.Combine("bin", $"{configuration}", "net5.0", $"{ToDirectory(rid)}", "ComputeSharp.Sample.NuGet.dll");
|
||||
string realtivePathToDll = Path.Combine("bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}", "ComputeSharp.Sample.NuGet.dll");
|
||||
|
||||
Assert.AreEqual(0, Exec(SampleProjectDirectory!, "dotnet", realtivePathToDll));
|
||||
}
|
||||
@@ -74,7 +74,7 @@ public class NativeLibrariesResolverTests
|
||||
CleanSampleProject(configuration, rid);
|
||||
BuildSampleProject(configuration, rid);
|
||||
|
||||
string pathToDllDirectory = Path.Combine(SampleProjectDirectory!, "bin", $"{configuration}", "net5.0", $"{ToDirectory(rid)}");
|
||||
string pathToDllDirectory = Path.Combine(SampleProjectDirectory!, "bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}");
|
||||
|
||||
Assert.AreEqual(0, Exec(pathToDllDirectory, "dotnet", "ComputeSharp.Sample.NuGet.dll"));
|
||||
}
|
||||
@@ -89,7 +89,7 @@ public class NativeLibrariesResolverTests
|
||||
CleanSampleProject(configuration, rid);
|
||||
BuildSampleProject(configuration, rid);
|
||||
|
||||
string relativePathToAppHost = Path.Combine("bin", $"{configuration}", "net5.0", $"{ToDirectory(rid)}", "ComputeSharp.Sample.NuGet.exe");
|
||||
string relativePathToAppHost = Path.Combine("bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}", "ComputeSharp.Sample.NuGet.exe");
|
||||
|
||||
Assert.AreEqual(0, Exec(SampleProjectDirectory!, relativePathToAppHost, ""));
|
||||
}
|
||||
@@ -104,7 +104,7 @@ public class NativeLibrariesResolverTests
|
||||
CleanSampleProject(configuration, rid);
|
||||
BuildSampleProject(configuration, rid);
|
||||
|
||||
string pathToAppHostDirectory = Path.Combine(SampleProjectDirectory!, "bin", $"{configuration}", "net5.0", $"{ToDirectory(rid)}");
|
||||
string pathToAppHostDirectory = Path.Combine(SampleProjectDirectory!, "bin", $"{configuration}", "net6.0", $"{ToDirectory(rid)}");
|
||||
|
||||
Assert.AreEqual(0, Exec(pathToAppHostDirectory, "ComputeSharp.Sample.NuGet.exe", ""));
|
||||
}
|
||||
@@ -125,7 +125,7 @@ public class NativeLibrariesResolverTests
|
||||
|
||||
Exec(SampleProjectDirectory!, "dotnet", $"publish -c Release -r win-x64 {ToOption(publishMode)} {ToOption(deploymentMode)} {ToOption(nativeLibsDeploymentMode)} /bl");
|
||||
|
||||
string pathToAppHost = Path.Combine("bin", $"Release", "net5.0", "win-x64", "publish", "ComputeSharp.Sample.NuGet.exe");
|
||||
string pathToAppHost = Path.Combine("bin", $"Release", "net6.0", "win-x64", "publish", "ComputeSharp.Sample.NuGet.exe");
|
||||
|
||||
Assert.AreEqual(0, Exec(SampleProjectDirectory!, pathToAppHost, ""));
|
||||
}
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする