Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ninject .net 4.0

Can you use Ninject 2.0 with VS2010 RC1?

like image 300
mgamer Avatar asked Mar 14 '10 16:03

mgamer


2 Answers

I had similar issue... try targetting the full .NET 4 Framework, not the Client Profile.

From my understanding System.Web is in .NET 4, but not the .NET 4 Client Profile. So for your assemblies, in which you are taking advantage of full Ninject compiled against 3.5 sp1, you will need to ensure they are not targeting the .NET 4 Client Profile but the full .NET 4 profile in order for the dependency on System.Web to be satisfied.

like image 154
holsee Avatar answered Oct 04 '22 20:10

holsee


Even if it is compiled for .NET 3.5, the assembly should be able to run in .NET 4. Here's a nice picture.

like image 26
Darin Dimitrov Avatar answered Oct 04 '22 20:10

Darin Dimitrov