Merge pull request #1313 from dotnet/pakrym/paths2
Fix tests on OS X and add diagnostic message
This commit is contained in:
commit
7baf0d61c6
2 changed files with 9 additions and 4 deletions
|
@ -32,6 +32,11 @@ namespace Microsoft.Dotnet.Cli.Compiler.Common
|
||||||
|
|
||||||
public void MakeCompilationOutputRunnable()
|
public void MakeCompilationOutputRunnable()
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrEmpty(_context.RuntimeIdentifier))
|
||||||
|
{
|
||||||
|
throw new InvalidOperationException($"Can not make output runnable for framework {_context.TargetFramework}, because it doesn't have runtime target");
|
||||||
|
}
|
||||||
|
|
||||||
var outputPath = _outputPaths.RuntimeOutputPath;
|
var outputPath = _outputPaths.RuntimeOutputPath;
|
||||||
|
|
||||||
CopyContentFiles(outputPath);
|
CopyContentFiles(outputPath);
|
||||||
|
|
|
@ -68,10 +68,10 @@ namespace Microsoft.DotNet.Tools.Builder.Tests
|
||||||
|
|
||||||
[Theory]
|
[Theory]
|
||||||
// global.json exists
|
// global.json exists
|
||||||
[InlineData(true, null, null, "src/TestLibrary/bin/debug/{fw}", "src/TestApp/bin/debug/{fw}", "src/TestApp/bin/debug/{fw}/{rid}")]
|
[InlineData(true, null, null, "src/TestLibrary/bin/Debug/{fw}", "src/TestApp/bin/Debug/{fw}", "src/TestApp/bin/Debug/{fw}/{rid}")]
|
||||||
[InlineData(true, "out", null, "src/TestLibrary/bin/debug/{fw}", "src/TestApp/bin/debug/{fw}", "out")]
|
[InlineData(true, "out", null, "src/TestLibrary/bin/Debug/{fw}", "src/TestApp/bin/Debug/{fw}", "out")]
|
||||||
[InlineData(true, null, "build", "build/src/TestLibrary/bin/debug/{fw}", "build/src/TestApp/bin/debug/{fw}", "build/src/TestApp/bin/debug/{fw}/{rid}")]
|
[InlineData(true, null, "build", "build/src/TestLibrary/bin/Debug/{fw}", "build/src/TestApp/bin/Debug/{fw}", "build/src/TestApp/bin/Debug/{fw}/{rid}")]
|
||||||
[InlineData(true, "out", "build", "build/src/TestLibrary/bin/debug/{fw}", "build/src/TestApp/bin/debug/{fw}", "out")]
|
[InlineData(true, "out", "build", "build/src/TestLibrary/bin/Debug/{fw}", "build/src/TestApp/bin/Debug/{fw}", "out")]
|
||||||
//no global.json
|
//no global.json
|
||||||
//[InlineData(false, null, null, "src/TestLibrary/bin/debug/{fw}", "src/TestApp/bin/debug/{fw}", "src/TestApp/bin/debug/{fw}/{rid}")]
|
//[InlineData(false, null, null, "src/TestLibrary/bin/debug/{fw}", "src/TestApp/bin/debug/{fw}", "src/TestApp/bin/debug/{fw}/{rid}")]
|
||||||
//[InlineData(false, "out", null, "src/TestLibrary/bin/debug/{fw}", "src/TestApp/bin/debug/{fw}", "out")]
|
//[InlineData(false, "out", null, "src/TestLibrary/bin/debug/{fw}", "src/TestApp/bin/debug/{fw}", "out")]
|
||||||
|
|
Loading…
Add table
Reference in a new issue