IT-Admin-Toolkit-WinUI icon indicating copy to clipboard operation
IT-Admin-Toolkit-WinUI copied to clipboard

Publish Single File Causes App Crash When Pinging Machine

Open nkasco opened this issue 2 years ago • 0 comments

Machine ping functionality causes an unexpected app crash when published as a single file.

As of right now, publishing without the single file option prevents the crash:

<Project>
  <PropertyGroup>
    <PublishProtocol>FileSystem</PublishProtocol>
    <Platform>x64</Platform>
    <RuntimeIdentifier>win10-x64</RuntimeIdentifier>
    <PublishDir>C:\publishdir</PublishDir>
    <SelfContained>true</SelfContained>
    <PublishReadyToRun>false</PublishReadyToRun>
    <PublishTrimmed>false</PublishTrimmed>
    <Configuration>Release</Configuration>
    <TargetFramework>net6.0-windows10.0.19041.0</TargetFramework>
    <PublishSingleFile>false</PublishSingleFile>
  </PropertyGroup>
</Project>

nkasco avatar Mar 11 '22 01:03 nkasco