1
votes

I have a c# application / solution ( only few classes and files) which is NET 3.5. So under target framework you see 3.5.

But 1 reference (System.Xaml) is from NET 4.0.

And i am not allowed to switch the whole solution to NET 4.0. How can i use System.Xaml (4.0) within a solution targeting 3.5?

edit: Is it possible to have within 1 solution 2 projects, where one targets NET 3.5 and the other targets 4.0. the point is that within the 3.5 project some other application is "started" which accepts only 3.5

1
is it actually using new functionality from the 4.0 framework? otherwise -> remove 4.0 reference, add 3.5 Referencefixagon
System.Xaml is only in 4.0 and 4.5 NET FrameworkGero

1 Answers

7
votes

You can't. It operates on a newer CLR.