Does PSForms compiled exe require <app>.exe.config to run properlty?

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
ALIENQuake
Posts: 80
Joined: Sun Mar 03, 2013 12:45 pm
Has voted: 3 times

Does PSForms compiled exe require <app>.exe.config to run properlty?

Post by ALIENQuake »

Hi,

Does PSForms compiled exe require <app>.exe.config? to run properly? My app is used on Windows 7,8.1 and 10.

Code: Select all

<?xml version="1.0" encoding="utf-8" ?> 
<configuration> 
    <startup useLegacyV2RuntimeActivationPolicy="true"> 
        <supportedRuntime version="v4.0" />    
	    <supportedRuntime version="v2.0" />
    </startup> 
	<appSettings>
		<add key="EnableWindowsFormsHighDpiAutoResizing" value="true"/>
	</appSettings>
    <runtime>
        <AppContextSwitchOverrides value="Switch.System.IO.BlockLongPaths=false;Switch.System.IO.UseLegacyPathHandling=false"/>
    </runtime>
</configuration>

jvierra
Posts: 14676
Joined: Tue May 22, 2007 9:57 am
Answers: 6
Has voted: 1 time
Been upvoted: 5 times
Contact:

Re: Does PSForms compiled exe require <app>.exe.config to run properlty?

Post by jvierra »

Works on all versions listed. Some code will not work as expected without the app.config file.

Locked