Transshipment Suppliers

I am using MiniCSVTypeProvider provided in powerpack fsharp samples.

Unfortunately, he believes that the values ​​provided are float, and mine are of different (different) formats. So I rewrote the MiniCsvType provider to always provide strings, leaving the parsing work to the caller.

But for some odd reason, after dereferencing the old DLL and including a link to the new DLL, it continued to provide float using the old type provider. I had to change assembly and class names to update VS.

Are there any other ways to undo / reset a former type provider so that VS takes this change into account?

+6
source share
2 answers

A little late, but faced with the same problem, I decided to disable it and reactivate the type provider from the tools "Tools → Options → F # Tools → Type". (I am using VS2013)

+1
source

In general, when developing a type provider, you need to close the VS instance that uses the type provider to update the provider. The general workflow is to have two VS instances: one that works on the code of the type provider itself, which remains open, and another that references / consumes / tests the provider, which you close every time you make changes, Consumer VS often blocks DLLs on disk, and also cannot unload / reload the assembly into its process, so you need to terminate the VS process to iterate through the implementation of your type provider.

+7
source

Source: https://habr.com/ru/post/909473/


All Articles