Using multiple frames in a solution?

Possible duplicate:
Using multiple frameworks in a solution?

I have a .net solution that contains several projects.
is it ok if i set the project scope to 4.0 and the other to 3.5?
please do not reply to something like: "why do you want to do this?" I just have a case that requires me to do this ...

+1
source share
3 answers

You can do this (with some limitations), but what you cannot do is run different versions of the framework in the same process. Thus, a web project targeting 3.5 and executable targeting 4.0 is fine. You can also compile assemblies oriented to 3.5 and then use them in project 4.0, but you should be aware that they will all run under the same version when actually executed (or not load if you use the manifest to explicitly require specific version).

+2
source

I think the only scenario is when you use project 3.5 in project 4.0, but you cannot use project 4.0 in project 3.5.

0
source

Yes, you can have different versions of the frameworks for different projects within the solution, but if you start linking them together so that their result is used by others, then you need to make sure they are compatible again.

Aside, if you need to create projects in C ++ / CLI for .NET2 with VS2010, you need to manually edit the project file.

0
source

Source: https://habr.com/ru/post/1343924/


All Articles