Disable assembly version warnings

- Since nuget resolves the relevant dependencies there's no need
to warn about binding redirects.

#47
This commit is contained in:
David Fowler 2015-10-17 03:09:54 -07:00
parent c43dc6781f
commit 161c988d0f

View file

@ -119,6 +119,10 @@ namespace Microsoft.DotNet.Tools.Compiler
// Assemble csc args // Assemble csc args
var cscArgs = new List<string>() var cscArgs = new List<string>()
{ {
// Default suppressions
"-nowarn:CS1701",
"-nowarn:CS1702",
"-nowarn:CS1705",
"-nostdlib", "-nostdlib",
"-nologo", "-nologo",
$"-out:\"{outputName}\"" $"-out:\"{outputName}\""
@ -153,7 +157,7 @@ namespace Microsoft.DotNet.Tools.Compiler
{ {
// Locate CoreRun // Locate CoreRun
string hostRoot = Environment.GetEnvironmentVariable("DOTNET_CSC_PATH"); string hostRoot = Environment.GetEnvironmentVariable("DOTNET_CSC_PATH");
if(string.IsNullOrEmpty(hostRoot)) if (string.IsNullOrEmpty(hostRoot))
{ {
hostRoot = AppContext.BaseDirectory; hostRoot = AppContext.BaseDirectory;
} }