find a projects .NET version in Visual Studio

G

Guest

Hi

Is there a way to easily tell the version pf .NET a project is compiled
using in Visual Studio?

I have a solution with a few projects, but I have a feeling some of the
projects are compiling in .net 1.1, while some are compiling in 2.0 - can't
find the info anywhere.

Thanks,

Dan
 
M

Michael Nemtsev

Hello musosdev,

m> Is there a way to easily tell the version pf .NET a project is
m> compiled using in Visual Studio?

Why do u need this?

m> I have a solution with a few projects, but I have a feeling some of
m> the projects are compiling in .net 1.1, while some are compiling in
m> 2.0 - can't find the info anywhere.

Do you have source codes or assemblies?
For source codes your can differ projects by cproj file, and for assemblies
via Assembly.ImageRuntimeVersion

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangel
 
S

Steven Cheng[MSFT]

Hi Dan,

Are some of those projects in your solution originally built with former
version(IDE) of the .net framework? As far as I know, the Visual Studio
2003 and Visual Studio 2005 can not create .NET applications targeting a
single version. Visual Studio 2003 only support developing .NET application
targeting VERSION 1.1 while Visual Studio 2005 only support developing .NET
application targeting version 2.0.

If you do want to check the target version, you can use reflector or ildasm
tool to lookup the referenced system assemblies' version(such as mscorlib,
system.dll. ...) since currently .net framework runtime version is coupled
with framework assemblies's version.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================



This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top