473,508 Members | 2,324 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.net framework version, visual studio '03

I am developing in VS '03. I have all of the current framework
versions installed on my PC, 1.1, 2.0, and 3.0.

How can I make sure the code I am developing in is using the 3.0
framework version? Or do I need to be using the latest version of
Visual Studio to do so?
Thanks,

Jason

Sep 28 '07 #1
5 1672
You can use a config file to direct the runtime to use a particular version
of the framework.

The config file must be named the same as the dll or the exe, but with
..config at the end...
MyApp.exe.config
MyAppLib.dll.config

You can write the config file, if it does not already exist, in notepad, and
add it to the project.

Here is an example of a config file

<?xml version ="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v1.1.4322" />
</startup>
</configuration>

Just name the file as stated above, and use one of these files for each
project in the solution. Also...get the exact version number for 3.0 and
insert it in place of version="v1.1.4322" as shown above.

Caution: AT DESIGN TIME, when attempting to use a later version of the
framework using an older version of VB.net, your design-time views of forms
may not be available. To alleviate this, use the compatible framework that
your design environment was intended for. When you compile for runtime, you
can switch out the referenced assemblies and add the config file. (Actually,
I think you only have to switch one reference for each project, and the rest
happen automatically.)

This is a tricky proposition, because you are actually writing code as
though it will be compiled against the expected framework. I would only
suggest doing this if you have a distinct reason for doing so.

Recently, I needed the System.Net.Mail namespace instead of the
System.Web.Mail namespace due to an additional method that I needed. Except
when I was testing for that method, I still was running the compatible
framework. When compiling the release, I did the switch. (You need to be
sure the config file is properly directed, or only present when compiling to
the "mis-matched" framework).

You should do serious beta testing for compatibility issues.

By default, I think that the compiled exe and dll's, whatever framework they
are compiled to run under, will find the closest framework available on the
system they are running on (unless the config file provides distinct
direction).

http://msdn2.microsoft.com/en-us/lib...84(VS.71).aspx
"jr*****@gmail.com" wrote:
I am developing in VS '03. I have all of the current framework
versions installed on my PC, 1.1, 2.0, and 3.0.

How can I make sure the code I am developing in is using the 3.0
framework version? Or do I need to be using the latest version of
Visual Studio to do so?
Thanks,

Jason

Sep 28 '07 #2
j,

Version 2003 is made for Net 1.1 you cannot make programs for higher Net
versions with that.

Cor

Sep 28 '07 #3
>you cannot make programs for higher Net versions with that.

Well actually you can , i have once tested a 1.1 app on a 2.0 framework (
clean pc with only framework 2.0 installed ) and to my own surprise it
worked without anny noticable problems.

So i guess the.Net framework is backwards compatible to some point

HTH

Michel

"Cor Ligthert[MVP]" <1n*************@planet.nlschreef in bericht
news:DB**********************************@microsof t.com...
j,

Version 2003 is made for Net 1.1 you cannot make programs for higher Net
versions with that.

Cor

Sep 28 '07 #4
Michel,

In my idea that was always written that it was the goal. However as we can
see by all the post about this, I have not much believe in it.

Cor

Sep 28 '07 #5
"Michel Posseth [MCP]" <MS**@posseth.comschrieb:
you cannot make programs for higher Net versions with that.

Well actually you can , i have once tested a 1.1 app on a 2.0 framework
( clean pc with only framework 2.0 installed ) and to my own surprise it
worked without anny noticable problems.

So i guess the.Net framework is backwards compatible to some point
That's true (there are some cases in which it won't work though).
Nevertheless, VS.NET 2003 will create .NET 1.1 assemblies and cannot be
altered to create .NET 2.0 assemblies.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Sep 28 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
8497
by: Juan Reyes | last post by:
I had Framework version v1.0.3705 installed and upgraded to v1.1.4322 but when I create a new project in Visual Studio I find that the system reference is...
1
2492
by: Asad Khan | last post by:
Hi, I have Visual Studio 2002 Enterprise Architecture Edition. I was wondering if anyone has any information on how I can develop applications for .Net Compact Framework using this IDE. I've heard...
3
1815
by: Federico | last post by:
Dear all, I've an old version of Visual Studio.NET (2002)standard and I have read the guide for developers by Halvorson. In the section on "how to distribute a Visual Basic . NET Application",...
2
7055
by: fripper | last post by:
I have installed Visual Studio .Net 2003 on top of an earlier version. Now, when I open a new project I get a message that says Visual Studio .NET has detected that the web server is running...
1
1695
by: vijay | last post by:
Hi... The default framework that ships with Visual Studio 7.0 Enterprise architect is v1.0.3705. Is it possible for me to remove the Framework alone and install the new .NET framework 1.1 and...
2
1716
by: Ing. Davide Piras | last post by:
Hi there, we have a big web application wrote in Visual Studio .NET 2003 (Framework 1.1) which we still use to modify, evolve and compile all the assemblies... on IIS we are trying to set the...
0
1807
by: innovasys | last post by:
TORQUAY, DEVON, UK - Innovasys announced the release of Document! X 5, the fifth version of the documentation solution of choice for developers using Microsoft Visual Studio or the .NET Framework....
4
2928
by: blackdog | last post by:
I load to *.aspx into web server, but my web only recognize Microsoft ..NET Framework Version:1.1.xxxxx It could not recognize Framework Version:2.0. Currently I have Microsoft Visual Studio...
4
1821
by: Iouri | last post by:
How can I make VS2005 to work with .Net Framework 3.0. What settings should I change? Thank you
6
2239
by: amparikh | last post by:
I have VS.NET 2003 IDE and compiler. Are there any knwon issues using .NET 3.0 SDK with VS.NET 2003 ? or just including the right header files and libraries within the SDK should do it ? Thanks
0
7118
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5625
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5049
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.