Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get Ninject to work in WIndows 8 metro style app

Has anyone managed to get Ninject working in Metro Style app using the Windows 8 Developer preview? If so how?

like image 934
BenBtg Avatar asked Jan 07 '12 18:01

BenBtg


1 Answers

Running Ninject in Metro Style apps requires several changes in the implementation of Ninject. Therefore there is no way to run current builds in metro style apps. If you are willing to do the required chages to Ninject then you have to perform the following steps

  1. Create a new MS library project
  2. Add all files from Ninject
  3. Define NO_LCG NO_ASSEMBLY_SCANNING NO_EXCEPTION_SERIALIZATION
  4. Fix all the problems related to the chages to the new reflection API

Otherwise you have to wait until there is an official preview of Ninject for Metro Style Apps which will be available sometime after the Ninject 3.0 release.

like image 130
Remo Gloor Avatar answered Nov 08 '22 04:11

Remo Gloor