Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gmmastros on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

App.config and .NET version

Status
Not open for further replies.

IlyaRabyy

Programmer
Nov 9, 2010
564
0
16
US
Colleagues,
I'm working on a project in VB .NET, VS 2012, and here's what's in the App.config:

XML:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <startup> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
    </startup>
</configuration>

All fine and dandy, but... (there's always "but", isn't there? ;-) ) ... this program is supposed to work on an "older" Win Server version, which takes only up to .NET v. 4.0.
I'm gonna keep an eye on the .NET components I shall use, of course, but ... (see above [lol])... if I change it to "Version=v4.0" - would the VS throw a warning like "not compatible with version 4.0" or something like that if I try to use some function/object/method/property that appears only in .NET version "younger" than 4.0?

Regards,

Ilya
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top