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:
parent
c43dc6781f
commit
161c988d0f
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue