Support publishing to .NET Framework
- Pick .exe or .dll based on emit entry point (true) - Skip post publish fix up if the target application targets .NET Framework
This commit is contained in:
parent
d42b38d8ff
commit
6da43b205d
3 changed files with 18 additions and 13 deletions
|
@ -167,7 +167,7 @@ namespace Microsoft.DotNet.Tools.Compiler
|
|||
|
||||
// Get compilation options
|
||||
var compilationOptions = context.ProjectFile.GetCompilerOptions(context.TargetFramework, configuration);
|
||||
var outputName = Path.Combine(outputPath, context.ProjectFile.Name + ".dll");
|
||||
var outputName = Path.Combine(outputPath, context.ProjectFile.Name + (compilationOptions.EmitEntryPoint.GetValueOrDefault() ? ".exe" : ".dll"));
|
||||
|
||||
var bootstrappingWithMono = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("BOOTSTRAPPING_WITH_MONO"));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue