Successful build on OS X and linux

- Mono 4.3 was required to work with certain compilation options on the
first pass but this is temporary.
- Support outputting portable pdbs when not running on windows by
default
This commit is contained in:
David Fowler 2015-10-18 07:10:22 -07:00
parent 7f59f00317
commit c45ff35aed
2 changed files with 11 additions and 4 deletions

View file

@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using Microsoft.Dnx.Runtime.Common.CommandLine;
using Microsoft.DotNet.Cli.Utils;
using Microsoft.Extensions.ProjectModel;
@ -256,9 +257,15 @@ namespace Microsoft.DotNet.Tools.Compiler
cscArgs.Add($"-keyFile:\"{compilationOptions.KeyFile}\"");
}
// TODO: Support debug portable
cscArgs.Add("-debug:full");
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
cscArgs.Add("-debug:full");
}
else
{
cscArgs.Add("-debug:portable");
}
// TODO: OSS signing
}

View file

@ -12,7 +12,7 @@
"System.Runtime.InteropServices.RuntimeInformation": "4.0.0-*",
"NuGet.Packaging": "3.2.0",
"System.Security.Cryptography.Algorithms": "4.0.0-*",
"System.Security.Cryptography.Algorithms": "4.0.0-beta-23401",
"Microsoft.Extensions.FileSystemGlobbing": "1.0.0-*",
"Microsoft.Extensions.JsonParser.Sources": {