fsprojects / FSharp.TypeProviders.SDK

The SDK for creating F# type providers
https://fsprojects.github.io/FSharp.TypeProviders.SDK/
MIT License
300 stars 94 forks source link

nestandard Nuget package for a type provider with design-time/run-time separation #199

Closed dmitry-a-morozov closed 6 years ago

dmitry-a-morozov commented 6 years ago

I have a type provider targeting netstandard2.0 with design-time/run-time component separation. Nuget package contains in lib/netstandard2.0 runtime component + design-time component and it's dependencies. When the nuget package referenced in consuming project I get strange errors about missing dependencies. If I substitute nuget package reference with direct run-time component assembly reference everything works fine. How do I make it work properly with nuget package?

dmitry-a-morozov commented 6 years ago

It's only issue when consuming project targets netcoreapp2.0. When targeting net461 it compile/runs just fine.

dmitry-a-morozov commented 6 years ago

@dsyme I found a root cause. This was caused by my weird setup where I have in netstandard2.0 folder run-time component compiled for netstandard2.0 and design-time compiled for net461