Mir Hussain

Mir Hussain

  • NA
  • 23
  • 8.1k

How do I write a C# program that can run any windows system.

Mar 25 2017 10:38 PM

Hi,

In app.config of my  c# project, i have written the following lines

<?xml version="1.0"?>

<configuration>

<startup useLegacyV2RuntimeActivationPolicy="true">

<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>

<supportedRuntime version="v2.0" sku=".NETFramework,version=v2.0.50727"/>

</startup>

</configuration>

it works fine on windows 7/8/8.1/10 but there is a problem while installing on xp systems.
i want my application to run on every system from windows xp to latest versions.
Also i want to know that whether i can choose x86 in platform target for all windows systems like win32/win64.
what about define DEBUG constant and define TRACE constant [should be checked or unchecked].
please help at the earliest.
Thanks 

Answers (2)