Skip to content

Commit 751d62b

Browse files
committed
Fix build issues
1 parent d75b9f1 commit 751d62b

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

src/Console/Program.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ namespace Console;
3030

3131
internal static class Program
3232
{
33-
private static ILogger<ControlPanel> _panelLogger;
3433
private static ControlPanel _controlPanel;
3534
private static readonly Queue<string> Messages = new ();
3635
private static readonly object MessageLock = new ();
@@ -58,7 +57,7 @@ internal static class Program
5857
private static async Task Main()
5958
{
6059
XmlConfigurator.Configure(
61-
LogManager.GetRepository(Assembly.GetAssembly(typeof(LogManager))),
60+
LogManager.GetRepository(Assembly.GetEntryAssembly() ?? Assembly.GetCallingAssembly()),
6261
new FileInfo("log4net.config"));
6362

6463
_lastConfigFilePath = Path.Combine(Environment.CurrentDirectory, "appsettings.config");
@@ -95,8 +94,8 @@ private static async Task Main()
9594
new MenuItem("_Quit", "", () =>
9695
{
9796
SaveConfigurationSettings(_settings);
98-
99-
Application.RequestStop();
97+
98+
Application.Shutdown();
10099
})
101100
}),
102101
new MenuBarItem("Co_nnections", new[]

src/OSDP.Net/OSDP.Net.csproj

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,8 @@
2929
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
3030
<PackageReference Include="System.Collections" Version="4.3.0" />
3131
<PackageReference Include="System.Memory" Version="4.5.5" />
32-
<<<<<<< HEAD
3332
<PackageReference Include="System.Text.Json" Version="8.0.5" />
34-
=======
35-
<PackageReference Include="System.Text.Json" Version="8.0.4" />
36-
</ItemGroup>
37-
38-
<ItemGroup>
3933
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
40-
>>>>>>> origin/develop
4134
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
4235
<PackageReference Include="System.IO.Ports" Version="8.0.0" />
4336
</ItemGroup>

0 commit comments

Comments
 (0)