parent
11b43a37d6
commit
caa2af2024
2 changed files with 7 additions and 10 deletions
|
@ -95,12 +95,6 @@ namespace Microsoft.DotNet.Tools.Publish
|
|||
|
||||
var options = context.ProjectFile.GetCompilerOptions(context.TargetFramework, configuration);
|
||||
|
||||
if (!options.EmitEntryPoint.GetValueOrDefault())
|
||||
{
|
||||
Reporter.Output.WriteLine($"{context.RootProject.Identity} does not have an entry point defined.".Red());
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Generate the output path
|
||||
if (string.IsNullOrEmpty(outputPath))
|
||||
{
|
||||
|
@ -145,8 +139,12 @@ namespace Microsoft.DotNet.Tools.Publish
|
|||
PublishFiles(export.NativeLibraries, outputPath);
|
||||
}
|
||||
|
||||
// Publish the application itself
|
||||
PublishHost(context, outputPath);
|
||||
// Publish a host if this is an application
|
||||
if (options.EmitEntryPoint.GetValueOrDefault())
|
||||
{
|
||||
Reporter.Verbose.WriteLine($"Making {context.ProjectFile.Name.Cyan()} runnable ...");
|
||||
PublishHost(context, outputPath);
|
||||
}
|
||||
|
||||
Reporter.Output.WriteLine($"Published to {outputPath}".Green().Bold());
|
||||
return 0;
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"dependencies": {
|
||||
"System.Runtime": "4.0.21-beta-23428",
|
||||
"Microsoft.NETCore.Runtime": "1.0.1-beta-23428"
|
||||
"System.Runtime": "4.0.21-beta-23428"
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
|
|
Loading…
Reference in a new issue