Why can't I create a Type Provider as a * .exe file with [<TypeProviderAssembly()>] and [<EntryPoint>] inside?
When I try to reference such TP using #r @"d:\TP\bin\Debug\MyTypeProvider.exe" , I see the following:
test.fsx(3,1): error FS3031: The type provider 'd:\TP\bin\Debug\MyTypeProvider.exe' reported an error: Assembly attribute 'TypeProviderAssemblyAttribute' refers to a designer assembly 'MyTypeProvider' which cannot be loaded or doesn't exist. Could not load file or assembly 'file:///d:\TP\bin\Debug\MyTypeProvider.dll' or one of its dependencies. The system cannot find the file specified.
I need to have type inference output mode in a separate process, because it must be 64bit (unlike the 32bit VS process). But I want to pack all things into one file, link to it from VS and run as an external process.
source share