PC Review


Reply
Thread Tools Rate Thread

Re: detecting framework level at compile-time?

 
 
Michael Nemtsev
Guest
Posts: n/a
 
      22nd Jan 2007
Hello Mark,

Discussed number of times
http://groups.google.com/group/micro...f66c2a86207157

There is no build symbols for this
use either runtime time Environment.Version method, or Project Properties/Build
settings

---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour

"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) Michelangelo

M> Hi...
M>
M> How would one figure out which framework level a build was in? I've
M> got to produce some projects that will be compiled for use in both
M> 1.1 and 2.0 and I'd like to conditionally compile in some features
M> for the 2.0 build that wouldn't be available in the 1.1, but I'm not
M> sure if there's a standard way to do it.
M>
M> I can add my own precompiler constant to the project and say
M> #ifdef FRAME20
M> #endif
M> but I was wondering if there might already be a more common solution
M> to the question.
M>
M> Thanks
M> -Mark


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Detecting Trust Level Will Microsoft ASP .NET 2 19th Feb 2007 05:07 PM
RE: detecting framework level at compile-time? Jeffrey Tan[MSFT] Microsoft Dot NET 0 23rd Jan 2007 07:11 AM
VBAProject name compile error, not defined at compile time Matthew Dodds Microsoft Excel Programming 1 13th Dec 2005 08:17 PM
Detecting Security Level =?Utf-8?B?a2R3?= Microsoft Excel Programming 2 29th Jan 2005 12:29 AM
Re: Detecting Macro Security Level Ed Ferrero Microsoft Excel Programming 0 15th Jun 2004 02:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:40 PM.