Skip to content

Commit

Permalink
调整插件项目中应用构建的编译条件。 🉑
Browse files Browse the repository at this point in the history
  • Loading branch information
PopeyeZhong committed Dec 2, 2023
1 parent 765c342 commit 46bc7d5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Zongsoft.Plugins.Web/src/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace Zongsoft.Web
{
public static class Application
{
#if NET7_0
#if NET7_0_OR_GREATER
public static WebApplication Web(Action<Microsoft.AspNetCore.Builder.WebApplicationBuilder> configure = null) => Web(null, null, configure);
public static WebApplication Web(string[] args, Action<Microsoft.AspNetCore.Builder.WebApplicationBuilder> configure = null) => Web(null, args, configure);
public static WebApplication Web(string name, Action<Microsoft.AspNetCore.Builder.WebApplicationBuilder> configure = null) => Web(name, null, configure);
Expand Down
2 changes: 1 addition & 1 deletion Zongsoft.Plugins.Web/src/WebApplicationBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

namespace Zongsoft.Web
{
#if NET7_0
#if NET7_0_OR_GREATER
public partial class WebApplicationBuilder : ApplicationBuilderBase<WebApplication>
{
private readonly Microsoft.AspNetCore.Builder.WebApplicationBuilder _builder;
Expand Down
2 changes: 1 addition & 1 deletion Zongsoft.Plugins/src/Hosting/Application.Daemon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ partial class Application
{
private sealed class DaemonApplicationBuilder : ApplicationBuilder
{
#if NET7_0
#if NET7_0_OR_GREATER
public DaemonApplicationBuilder(string name, string[] args, Action<HostApplicationBuilder> configure = null) : base(name, args, configure)
{
_logger = Zongsoft.Diagnostics.Logger.GetLogger(this.Environment.ApplicationName);
Expand Down
2 changes: 1 addition & 1 deletion Zongsoft.Plugins/src/Hosting/Application.Terminal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ partial class Application
{
private sealed class TerminalApplicationBuilder : ApplicationBuilder
{
#if NET7_0
#if NET7_0_OR_GREATER
public TerminalApplicationBuilder(string name, string[] args, Action<HostApplicationBuilder> configure = null) : base(name, args, configure)
{
_logger = Zongsoft.Diagnostics.Logger.GetLogger(this.Environment.ApplicationName);
Expand Down
2 changes: 1 addition & 1 deletion Zongsoft.Plugins/src/Hosting/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace Zongsoft.Plugins.Hosting
{
public static partial class Application
{
#if NET7_0
#if NET7_0_OR_GREATER
public static IHost Daemon(Action<HostApplicationBuilder> configure = null) => Daemon(null, null, configure);
public static IHost Daemon(string[] args, Action<HostApplicationBuilder> configure = null) => Daemon(null, args, configure);
public static IHost Daemon(string name, Action<HostApplicationBuilder> configure = null) => Daemon(name, null, configure);
Expand Down
2 changes: 1 addition & 1 deletion Zongsoft.Plugins/src/Hosting/ApplicationBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ protected static string GetApplicationName()

public class ApplicationBuilder : ApplicationBuilderBase<IHost>
{
#if NET7_0
#if NET7_0_OR_GREATER
private readonly HostApplicationBuilder _builder;
private readonly Action<HostApplicationBuilder> _configure;

Expand Down

0 comments on commit 46bc7d5

Please sign in to comment.