I just updated Ninject from v3 to v3.0.1.10 using NuGet, and it broke my code. I can't find IKernel.Get, or related methods I depended on anywhere in the new library. I've scoured the Ninject website and blogs and came up short, I couldn't find a detailed changelog. I noticed there is a Resolve IEnumerable method... is this the only way to retrieve objects now? What happened to the Generics, and single-instance Resolve/Get methods?
Nah, select isnt broken.
Most things in Ninject are extension methods. Are you using Ninject;
?
When you use Ctrl-Alt-O
to look at your full compile errors, are you sure you're not getting an earlier error preventing the Ninject assembly from being loaded properly?
Turns out to be related to my using ReSharper, and NOT Ninject. Sometimes ReSharper will miss methods, properties, etc... in scanning a solution, and deleting the cache is the only way to get ReSharper to scan again.
Resharper: Cannot resolve symbol 'Eval' in VS2010 SP1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With