package up DNX in the tar.gz
includes a smoke test for verifying that the output can be used to build also includes a checked-in CoreCLR in order to work around CoreCLR issue
This commit is contained in:
parent
94bafb17a3
commit
1d76b2846c
45 changed files with 347 additions and 179 deletions
|
@ -84,8 +84,6 @@ namespace Microsoft.DotNet.Tools.Compiler
|
|||
|
||||
var diagnostics = new List<DiagnosticMessage>();
|
||||
|
||||
bool success = true;
|
||||
|
||||
// Collect dependency diagnostics
|
||||
diagnostics.AddRange(context.LibraryManager.GetAllDiagnostics());
|
||||
|
||||
|
@ -145,16 +143,19 @@ namespace Microsoft.DotNet.Tools.Compiler
|
|||
configuration,
|
||||
context.TargetFramework.GetTwoDigitShortFolderName());
|
||||
|
||||
if (!Directory.Exists(outputPath))
|
||||
if (Directory.Exists(outputPath))
|
||||
{
|
||||
Directory.CreateDirectory(outputPath);
|
||||
Directory.Delete(outputPath, recursive: true);
|
||||
}
|
||||
|
||||
if (!Directory.Exists(intermediateOutputPath))
|
||||
if (Directory.Exists(intermediateOutputPath))
|
||||
{
|
||||
Directory.CreateDirectory(intermediateOutputPath);
|
||||
Directory.Delete(intermediateOutputPath, recursive: true);
|
||||
}
|
||||
|
||||
Directory.CreateDirectory(outputPath);
|
||||
Directory.CreateDirectory(intermediateOutputPath);
|
||||
|
||||
// Get compilation options
|
||||
var compilationOptions = context.ProjectFile.GetCompilerOptions(context.TargetFramework, configuration);
|
||||
var outputName = Path.Combine(outputPath, context.ProjectFile.Name + (compilationOptions.EmitEntryPoint.GetValueOrDefault() ? ".exe" : ".dll"));
|
||||
|
@ -227,18 +228,17 @@ namespace Microsoft.DotNet.Tools.Compiler
|
|||
|
||||
foreach (var diag in diagnostics)
|
||||
{
|
||||
success &= diag.Severity != DiagnosticMessageSeverity.Error;
|
||||
PrintDiagnostic(diag);
|
||||
}
|
||||
|
||||
success &= result.ExitCode == 0;
|
||||
|
||||
PrintSummary(diagnostics);
|
||||
var success = result.ExitCode == 0;
|
||||
|
||||
PrintSummary(success, diagnostics);
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
private static void PrintSummary(List<DiagnosticMessage> diagnostics)
|
||||
private static void PrintSummary(bool success, List<DiagnosticMessage> diagnostics)
|
||||
{
|
||||
Reporter.Output.Writer.WriteLine();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue