I'm trying to add a feature to a type provider I'm working on to allow the user to specify a type. with Since type providers cannot provide generic methods, it seems the only way to do it is to reference the assembly that has the type.
I've tried to make a proof of concept for this using a type from the Owin library, but I'm running into an issue when trying to use the provided type:
It says it cannot find the file, even though it obviously exists, or else the CSharpCodeProvider
that I'm using would give an error (which it has done before for incorrect file paths). I've tried reproducing this problem in a seperate non-type-providing project, but it works there.
The code for this project is here (input-type branch): https://github.com/isaksky/routeprovider/tree/input-type
You can see the problem by opening the main RouteProvider Solution, and debugging doing the DebugOwin sample (it will open a new instance of visual studio for a sample solution that uses the RouteProvider).