Search code examples
visual-studiof#type-providers

reloading type providers


I am using the MiniCSVTypeProvider provided in the fsharp powerpack samples.

Unfortunately, it thinks the values provided are float, while mine are of various (varying) formats. I therefore rewrote the MiniCsvType provider to always provide strings instead, leaving the parsing work to the caller.

But for some odd reason, after dereferencing the old DLL and including a reference to the new DLL, it kept providing float, using the old type provider. I had to change the names of assembly and classes to have VS refresh it.

Is there any other ways to revoke/reset a former type provider so that VS takes the change into account?


Solution

  • A bit late, but encountering the same problem, I solved it by deactivating and reactivating the type provider from Tools -> Options -> F# Tools -> Type providers. (I am using VS2013)