"José Manuel Agüero" <jmaguero_vodafone.es> wrote in message
news:Om**************@TK2MSFTNGP09.phx.gbl...
Hello, Sougato Das:
Although VS 2002 only compiles with .NET Framework 1.0, you can force your
executable to run with 1.1 (even while debugging) if you add a config file
to the project's \bin folder (in fact, to the folder where you will start
your executable from).
The name must be the same of the executable followed with ".config". For
example: "MyExecutable.exe.config"
The contents must be:
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="v1.0.3705"/>
</startup>
</configuration>
Unfortunately you can't access directly to the 1.1 classes (without
problems); You must use reflection (or late binding, if you don't use option
strict).
With this method you can, for example, use Windows XP's visual styles in
your VS 2002 applications adding theese two lines in the Main() method,
before the Application.Run() instruction:
\\\
dim mi as
system.reflection.methodinfo=gettype(application). getmethod("EnableVisualSty
les")
if not mi is nothing then mi.invoke(nothing,nothing)
///
Regards.
"Sougato Das" <so*********@hotmail.com> escribió en el mensaje
news:Da********************@comcast.com...
| I recently downloaded and installed the .NET Framework 1.1. Previously, I
| had 1.0. The installation was successful, but when I go to the About
| Microsoft Development Environment menu item in the Help menu of Microsoft
| Visual Studio .NET, it lists Microsoft .NET Framework 1.0 at the top (as
it
| did previously) instead of 1.1.
|
| Is this ok? Do I somehow need to point Visual Studio .NET to the correct
| version of the Framework? I also noticed that in the Windows/Microsoft
| .NET/Framework folder there are two subfolders: one for v1.0.3705 (262MB)
| and one for v1.1.4322 (37MB). I suppose the latter folder just contains
the
| updates?
|
| Thanks,
| Sougato
I would like to point out that the config file trick does not work. See the
thread I started about it.
Sueffel
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004