Skip to content

Commit

Permalink
Set target to x64 by default and make main public
Browse files Browse the repository at this point in the history
  • Loading branch information
Sella-GH committed May 20, 2024
1 parent fbac918 commit e440008
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion AzzyBot-Next/AzzyBot-Next.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Nullable>enable</Nullable>
<IsPublishable>True</IsPublishable>
<Platforms>x64;ARM64;AnyCPU</Platforms>
<PlatformTarget>AnyCPU</PlatformTarget>
<PlatformTarget>x64</PlatformTarget>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<Authors>Sella-GH, AzzyBot Contributors</Authors>
Expand All @@ -22,6 +22,7 @@
<NoWarn>$(NoWarn);CA1812;CA2007</NoWarn>
<Configurations>Debug;Release;Docker;Docker-debug</Configurations>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<StartupObject>AzzyBot.Startup</StartupObject>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
4 changes: 2 additions & 2 deletions AzzyBot-Next/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace AzzyBot;

public static class Startup
{
private static async Task Main(string[] args)
public static async Task Main(string[] args)
{
string environment = AzzyStatsSoftware.GetBotEnvironment;
bool isDev = environment == Environments.Development;
Expand All @@ -22,7 +22,7 @@ private static async Task Main(string[] args)
}
else
{
forceDebug = args.Length > 0 && args[0] is "-forceDebug";
forceDebug = args?.Length > 0 && args[0] is "-forceDebug";
}

HostApplicationBuilderSettings appSettings = new()
Expand Down

0 comments on commit e440008

Please sign in to comment.