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 / Extensibility / December 2007

Tip: Looking for answers? Try searching our database.

Targeting .NET 2.0 with VS2008

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Scott - 20 Dec 2007 22:52 GMT
I have a customer that is questioning the .net 2.0 code being generated by
VS2008. So I am looking for information on what VS2008 actually does when the
target is changed.

I would assume it would call the compilers from the appropriate version of
the runtime. Is there a KB or other article that outlines what happens under
the cover when the targets are changed?

Is there a way to create an external command file for a solution/project so
I could actually see what is done to create a DLL or EXE from either C# or VB?
Signature

Scott

Walter Wang [MSFT] - 21 Dec 2007 08:08 GMT
Hi Scott,

To understand how Multi-Targeting in Visual Studio 2008 works and affects
the generated assembly:

1) Starts from .NET Framework 2.0, Visual Studio 2005 is actually using
MSBuild to do the compiling. [1]

2) If you compare the project files targeted for .NET 2.0 and 3.5, you will
see a difference about a property named "TargetFrameworkVersion", which
will cause MSBuild to use assemblies in specified framework version. Please
see following blog from MSBuild team:

#MSBuild Team Blog : Multi-Targeting : How does it work?
http://blogs.msdn.com/msbuild/archive/2006/11/15/multi-targeting-how-does-it
-work.aspx

3) Also, please note that .NET Framework 3.0/3.5 actually doesn't
introduced a new CLR version, they are still built on top of the CLR 2.0,
except that installing 3.0/3.5 will update to .NET Framework 2.0 sp1:

#The Moth: .NET Framework 3.5
http://www.danielmoth.com/Blog/2007/06/net-framework-35.html

4) To use command line tool to build your solution/project, just use
msbuild. The 3.5 version is located at
%windir%\Microsoft.NET\Framework\v3.5; the 2.0 version is located at
%windir\Microsoft.NET\Framework\v2.0.50727.

[1] With one exception, C++ projects are still built with VCBuild:

#Srikanth R : Difference between MSBuild and devenv
http://blogs.msdn.com/srikanthr/archive/2007/05/07/difference-between-msbuil
d-and-devenv.aspx

Hope this helps.

Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
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.
Scott - 28 Dec 2007 14:36 GMT
Thanks for the information. This is what I needed.
Signature

Scott Norberg

> Hi Scott,
>
[quoted text clipped - 43 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.