Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / April 2006

Tip: Looking for answers? Try searching our database.

VS2003 using .net 2.0 binaries

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eric T - 26 Apr 2006 21:27 GMT
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.)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.