migrate Assembly.GetEntryAssembly().Location to Pilz.IO

This commit is contained in:
2023-11-20 18:18:53 +01:00
parent 1e093b69c5
commit 696e8b2d4f
4 changed files with 4 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ namespace Pilz.Updating.Administration.GUI
get
{
if (string.IsNullOrEmpty(myAppPath))
Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
Path.GetDirectoryName(IO.Extensions.GetExecutablePath());
return myAppPath;
}
}

View File

@@ -49,6 +49,7 @@
<PackageReference Include="Microsoft-WindowsAPICodePack-Shell" Version="1.1.5" />
<PackageReference Include="Microsoft.VisualBasic" Version="10.3.0" />
<PackageReference Include="Pilz.Cryptography" Version="1.2023.1005.1121" />
<PackageReference Include="Pilz.IO" Version="1.2023.914.856" />
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="UI.for.WinForms.AllControls.Net60">