Can .NET 4 applications use libraries targeted at .NET 4 Client Profile?
-
14-04-2021 - |
문제
I don't know of any reason why this wouldn't be possible, but I'd like to make sure there aren't any potential pitfalls or gotchas here.
Can a .NET 4 application depend on a class library that's targeted at .NET 4 Client Profile? Are there any potential problems that could arise?
해결책
The client profile is a subset of the full .NET Framework. Thus everything in the client profile is included in the full framework, so whether it's a client or web application you're building, you shouldn't run into any problems.
다른 팁
I've never had any issues targeting a .NET 4.0 Client Profile library from a .NET 4.0 web app.
the client profile doesn't include "server" type libraries. most notable is the asp.net framework. so a dll targeting the client profile can run on full .net 4.0 but a dll targeting .net 4.0 cannot run on a computer only containing the client profile.