Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore(deps): Upgrade Photino to 3.2.3 and to HNotify.Icon 2.2.0 #1609

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Rnwood.Smtp4dev.Desktop/DesktopApp.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using H.NotifyIcon.Core;
using Microsoft.Extensions.Options;
using PhotinoNET;
using Photino.NET;
using Rnwood.Smtp4dev.Server.Settings;
using System;
using System.Collections.Generic;
Expand Down
3 changes: 1 addition & 2 deletions Rnwood.Smtp4dev.Desktop/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System.Threading;
using System.Diagnostics;
using System.Text;
using PhotinoNET;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting.Server.Features;
using System.Reflection;
Expand Down Expand Up @@ -55,7 +54,7 @@ private static async Task RunAsync(string[] args)

var host =
await Rnwood.Smtp4dev.Program.StartApp(args, true, o =>
{
{
o.Urls = "http://127.0.0.1:0";
o.IsDesktopApp = true;

Expand Down
4 changes: 2 additions & 2 deletions Rnwood.Smtp4dev.Desktop/Rnwood.Smtp4dev.Desktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="H.NotifyIcon" Version="2.1.3" />
<PackageReference Include="H.NotifyIcon" Version="2.2.0" />
<PackageReference Include="ParallelExtensionsExtras.NetFxStandard" Version="2.1.0" />
<PackageReference Include="Photino.NET" Version="2.6.0" />
<PackageReference Include="Photino.NET" Version="3.2.3" />
</ItemGroup>

<ItemGroup>
Expand Down
7 changes: 6 additions & 1 deletion Rnwood.Smtp4dev/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,12 @@ private static IHost BuildWebHost(string[] args, CommandLineOptions cmdLineOptio
{
ServerOptions serverOptions = webBuilderContext.Configuration.GetSection("ServerOptions").Get<ServerOptions>();

if (!string.IsNullOrEmpty(serverOptions.Urls))
if (!string.IsNullOrEmpty(cmdLineOptions.Urls))
{
c.UseUrls(cmdLineOptions.Urls.Split(';', StringSplitOptions.RemoveEmptyEntries).Select(u => u.Trim()).ToArray());

}
else if (!string.IsNullOrEmpty(serverOptions.Urls))
{
c.UseUrls(serverOptions.Urls.Split(';', StringSplitOptions.RemoveEmptyEntries).Select(u => u.Trim()).ToArray());
}
Expand Down