diff --git a/benchmark.cmd b/benchmark.cmd index 7b2f42e7a..4ebba8bd6 100644 --- a/benchmark.cmd +++ b/benchmark.cmd @@ -1,2 +1,2 @@ msbuild Benchmarks\Benchmarks.csproj -t:restore -t:build /p:platform=x64 /p:configuration=release -dotnet S:\CsWinRT\Benchmarks\bin\x64\Release\netcoreapp2.0\Benchmarks.dll -filter * --runtimes netcoreapp2.0 netcoreapp3.1 netcoreapp5.0 \ No newline at end of file +dotnet %~dp0Benchmarks\bin\x64\Release\netcoreapp2.0\Benchmarks.dll -filter * --runtimes netcoreapp2.0 netcoreapp3.1 netcoreapp5.0 \ No newline at end of file diff --git a/benchmark_winmd.cmd b/benchmark_winmd.cmd index e2d5c03aa..feaa12298 100644 --- a/benchmark_winmd.cmd +++ b/benchmark_winmd.cmd @@ -1,4 +1,4 @@ msbuild Benchmarks\Benchmarks.csproj -t:restore -t:clean;rebuild /p:BenchmarkWinmdSupport=true /p:platform=x64 /p:configuration=release /p:TargetFramework=netcoreapp3.1 -S:\CsWinRT\Benchmarks\bin\x64\Release\netcoreapp3.1\Benchmarks.exe -filter * +%~dp0Benchmarks\bin\x64\Release\netcoreapp3.1\Benchmarks.exe -filter * rem Clean project to prevent mismatch scenarios with the typical benchmark.cmd scenario. msbuild Benchmarks\Benchmarks.csproj -t:restore -t:clean /p:BenchmarkWinmdSupport=true /p:platform=x64 /p:configuration=release /p:TargetFramework=netcoreapp3.1 >nul \ No newline at end of file