Using 2 diffrent .Net versions depending on Config

Hi.

I want to use 2 diffrent .Net versions on the same project.

This is because i want to be able to compile my project to PC and to Windows Mobile.

I have seperate the code that is diffrent by creating 4 new project configurations instead of the standard 2 "Release" and "Debug".

PCRelease, PCDebug, WindowsMobileRelease and WindowsMobileDebug

Then i use #if WINDOWSMOBILE do

Problem with this is that i only know how to load 1 .Net version into VS 2005 and i dont know how i could alter the version beeing used depending on my project configuration.

Any suggestion?

Edit: Changed topic

[667 byte] By [Flow84] at [2007-12-24]
# 2
No other way?
Flow84 at 2007-10-8 > top of Msdn Tech,.NET Development,Common Language Runtime...

.NET Development

Site Classified