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 / .NET Framework / New Users / March 2006

Tip: Looking for answers? Try searching our database.

Framework Version Directive

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob - 06 Mar 2006 14:25 GMT
Is there a version directive that I can use to determine what version I am
compiling under?

i.e.

#if FRAME_WORK_VERSION < 2

#ENDIF
Mattias Sjögren - 06 Mar 2006 18:06 GMT
>Is there a version directive that I can use to determine what version I am
>compiling under?

Which language? C# doesn't provide anything like that, you'd have to
define the sybol yourself.

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Christopher Reed - 07 Mar 2006 04:08 GMT
Each compiler is independent of each other.  You probably want to create a
set of CMD/BAT files to do this for you, changing the paths of the different
.NET Framework versions.  Note that this is probably only doable for VB and
C# only.
Signature

Christopher A. Reed
"The oxen are slow, but the earth is patient."

> Is there a version directive that I can use to determine what version I am
> compiling under?
[quoted text clipped - 4 lines]
>
> #ENDIF

Rate this thread:







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.