Browse Source

Fix RoundtripAssembly-Tests: use correct output path for compilation

pull/728/head
Siegfried Pammer 10 years ago
parent
commit
1ded4f5fba
  1. 6
      ICSharpCode.Decompiler/Tests/RoundtripAssembly.cs

6
ICSharpCode.Decompiler/Tests/RoundtripAssembly.cs

@ -79,7 +79,7 @@ namespace ICSharpCode.Decompiler.Tests
} }
Assert.IsNotNull(projectFile, $"Could not find {fileToRoundtrip}"); Assert.IsNotNull(projectFile, $"Could not find {fileToRoundtrip}");
Compile(projectFile); Compile(projectFile, outputDir);
RunTest(outputDir, fileToTest); RunTest(outputDir, fileToTest);
} }
@ -94,10 +94,10 @@ namespace ICSharpCode.Decompiler.Tests
} }
} }
static void Compile(string projectFile) static void Compile(string projectFile, string outputDir)
{ {
var info = new ProcessStartInfo(msbuild); var info = new ProcessStartInfo(msbuild);
info.Arguments = $"/nologo /v:minimal \"{projectFile}\""; info.Arguments = $"/nologo /v:minimal /p:OutputPath=\"{outputDir}\" \"{projectFile}\"";
info.CreateNoWindow = true; info.CreateNoWindow = true;
info.UseShellExecute = false; info.UseShellExecute = false;
info.RedirectStandardOutput = true; info.RedirectStandardOutput = true;

Loading…
Cancel
Save