diff --git a/src/Microsoft.DotNet.Cli.Utils/project.json b/src/Microsoft.DotNet.Cli.Utils/project.json index e177c12c2..b6ff1d85e 100644 --- a/src/Microsoft.DotNet.Cli.Utils/project.json +++ b/src/Microsoft.DotNet.Cli.Utils/project.json @@ -1,6 +1,5 @@ { "version": "1.0.0-*", - "compilerName": "csc", "shared": "**/*.cs", diff --git a/src/Microsoft.DotNet.Cli/project.json b/src/Microsoft.DotNet.Cli/project.json index d6a128e4f..b927627b4 100644 --- a/src/Microsoft.DotNet.Cli/project.json +++ b/src/Microsoft.DotNet.Cli/project.json @@ -1,7 +1,6 @@ { "name": "dotnet", "version": "1.0.0-*", - "compilerName": "csc", "compilationOptions": { "emitEntryPoint": true }, diff --git a/src/Microsoft.DotNet.Tools.Compiler.Csc/project.json b/src/Microsoft.DotNet.Tools.Compiler.Csc/project.json index 9a2f3d0eb..37137989e 100644 --- a/src/Microsoft.DotNet.Tools.Compiler.Csc/project.json +++ b/src/Microsoft.DotNet.Tools.Compiler.Csc/project.json @@ -1,7 +1,6 @@ { "name": "dotnet-compile-csc", "version": "1.0.0-*", - "compilerName": "csc", "compilationOptions": { "emitEntryPoint": true }, diff --git a/src/Microsoft.DotNet.Tools.Compiler/Program.cs b/src/Microsoft.DotNet.Tools.Compiler/Program.cs index 2119009fe..281986a3c 100644 --- a/src/Microsoft.DotNet.Tools.Compiler/Program.cs +++ b/src/Microsoft.DotNet.Tools.Compiler/Program.cs @@ -191,11 +191,7 @@ namespace Microsoft.DotNet.Tools.Compiler } var compilerName = context.ProjectFile.CompilerName; - if (compilerName == null) - { - Console.Error.WriteLine("Could not find the compiler name. Please specify it in the project.json file."); - return false; - } + compilerName = compilerName ?? "csc"; // Write RSP file var rsp = Path.Combine(intermediateOutputPath, $"dotnet-compile.{compilerName}.rsp"); diff --git a/src/Microsoft.DotNet.Tools.Compiler/project.json b/src/Microsoft.DotNet.Tools.Compiler/project.json index 1d0c647b9..60777510f 100644 --- a/src/Microsoft.DotNet.Tools.Compiler/project.json +++ b/src/Microsoft.DotNet.Tools.Compiler/project.json @@ -1,7 +1,6 @@ { "name": "dotnet-compile", "version": "1.0.0-*", - "compilerName": "csc", "compilationOptions": { "emitEntryPoint": true }, diff --git a/src/Microsoft.DotNet.Tools.Publish/project.json b/src/Microsoft.DotNet.Tools.Publish/project.json index c663ad76c..c0d8ddb35 100644 --- a/src/Microsoft.DotNet.Tools.Publish/project.json +++ b/src/Microsoft.DotNet.Tools.Publish/project.json @@ -1,7 +1,6 @@ { "name": "dotnet-publish", "version": "1.0.0-*", - "compilerName": "csc", "compilationOptions": { "emitEntryPoint": true }, diff --git a/src/Microsoft.DotNet.Tools.Resgen/project.json b/src/Microsoft.DotNet.Tools.Resgen/project.json index 52bbc0388..da64c8872 100644 --- a/src/Microsoft.DotNet.Tools.Resgen/project.json +++ b/src/Microsoft.DotNet.Tools.Resgen/project.json @@ -1,7 +1,6 @@ { "name": "resgen", "version": "1.0.0-*", - "compilerName": "csc", "compilationOptions": { "emitEntryPoint": true }, diff --git a/src/Microsoft.Extensions.ProjectModel/project.json b/src/Microsoft.Extensions.ProjectModel/project.json index c203f4053..fc475de1e 100644 --- a/src/Microsoft.Extensions.ProjectModel/project.json +++ b/src/Microsoft.Extensions.ProjectModel/project.json @@ -1,7 +1,6 @@ { "version": "1.0.0-*", "description": "Types to model a .NET Project", - "compilerName": "csc", "dependencies": { "Microsoft.CSharp": "4.0.1-beta-23419", "System.Collections": "4.0.11-beta-23419",