1

FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync always opening console window, it is possible to prevent this?

Pete
  • 61
  • 5

1 Answers1

1

I think that you can prevent the console opening windows creating a manifest file.

  1. In Visual Studio, right-click on your full-trust process project and select "Add" -> "New Item".
  2. In the "Add New Item" dialog box, select "Application Manifest File" and give it a name.
  3. Open the manifest file and find the element.
  4. Inside the <windowsSettings> element, add the following XML code:

<consoleSettings>

<windowsConsole xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">

<showWindow>false</showWindow>

</windowsConsole>

</consoleSettings>

With this manifest file in place, the console window will no longer appear when the FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync method is called.

Diego Bascans
  • 1,083
  • 1
  • 6
  • 14