I installed VS2005 last November and at around that time a program in VS2003
stopped behaving. I've recently found the time to dig into this, and one of
the things I've just noticed is that the DLLs that the program loads (which
are managed C++, written in VS2003) in turn load 2.0.50727 runtimes (such as
mscorlib and msvcr80).
Could this be the reason for problems or is it expected behaviour that a DLL
built in VS2003 uses the .net 2 and VC80 DLLs if available?
On an aside, how can I find out what the value of $(FrameworkVersion) is,
and is it possible to change it?
Thanks, all
Eric T.
Kevin Yu [MSFT] - 27 Apr 2006 03:32 GMT
Hi Eric,
Do you have .NET framework 2.0 and 1.1 installed on the same machine? Or
you have only installed .NET framework 2.0 on that machine?
If only .NET framework 2.0 is installed, the app will automatically use the
.NET 2.0 CLR to load it.
Kevin Yu
Microsoft Online Community Support
============================================================================
==========================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
============================================================================
==========================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Eric T - 27 Apr 2006 14:02 GMT
I have both installed. VS2003 with .net 1.1 and VS2005 with .net 2.0. The
DLL that causes the loading of the 2.0 runtimes was compiled with VS2003 and
meant to go with 1.1.
Eric
> Hi Eric,
>
[quoted text clipped - 17 lines]
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
Kevin Yu [MSFT] - 28 Apr 2006 08:40 GMT
Hi Eric,
Would you try to add a line of code in your app to print out what version
of runtime the app is using? You can use System.Environment.Version to
display it. HTH.
Kevin Yu
Microsoft Online Community Support
============================================================================
==========================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
============================================================================
==========================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Benedictum - 28 Apr 2006 22:15 GMT
Pardon for butting in. Is there a directive you can place on the app so that
it uses one or the other framework versions?
> Hi Eric,
>
[quoted text clipped - 14 lines]
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)