471,310 Members | 1,057 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

Conditional Define which runtime I'm on?

I want to use some pragma's in C# code written against .NET 2.0.

Somewhat ironically, I find that these Pragma's won't work when I try to
compile the same code against .NET 1.X. That is, when I'm using VS 2003.

Is there some set of conditional defines, or any other technique, I can
use to get code with .NET 2.0 specific syntax to compile under .NET 1.0?

Thanks

- Charlie
Feb 7 '06 #1
0 922

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by terry.jeske | last post: by
1 post views Thread by chris han | last post: by
2 posts views Thread by Sensorflo | last post: by
12 posts views Thread by wanghz | last post: by
5 posts views Thread by Alan Roberts | last post: by
6 posts views Thread by Marc Jennings | last post: by
36 posts views Thread by anon.asdf | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.