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.
This topic is 1 month and 1 day old and the forum Administrator has chosen for old topics to be locked when a reply is attempted. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
ALIENQuake
Posts: 50
Meble kuchenne na zamówienie - na wymiar - Wrocław
Joined: Sun Mar 03, 2013 12:45 pm

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: 14358
Joined: Tue May 22, 2007 9:57 am
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.

This topic is 1 month and 1 day old and the forum Administrator has chosen for old topics to be locked when a reply is attempted. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked