i am writing plugins for a dotnet 3.5 app, and thus my assembly needs to be CLR2. Is there a way that from inside my CLR2 code that i can load and host dotnet 4 and call dotnet 4 code?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
So the sane answer is “You probably can’t call .Net 4.0 directly… but you can interface with it.”
In any of several ways. Including COM, Web Services or something called “Inproc Sxs”:
calling .net 4 from .net 3.5 via self hosted wcf service
Bottom line:
Yes, but you’ll need to wrap your .Net 4.0 functionality in an out-of-process server.