Running a VS2003 App with .Net Framework 2.0

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've built a C# WinForms app using VS2003. I've just released it for Alpha
testing and am receiving reports back that it's not running on computers that
have the .Net Framework 2.0 but not 1.1.

So I did some research and read that I can resolve this by simply creating a
text file in my project, rename it to "App.Config" and place the following
inside:

<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="v2.0.50727"/>
</startup>
</configuration>


I was hoping I could get verification (or the opposite) from someone here.
 
Yes, that will make it so the app starts even if 1.1 is not present. In that
case it will use 2.0 instead. Note though that there are breaking changes
between 1.1 and 2.0 so your app might not behave as expected when used with
the 2.0 runtime. Only way to be sure is to test your app with both versions.

A better approach would be to simply install 1.1 on the computers that don't
have it.

/claes
 
Back
Top