Closed dmitry-a-morozov closed 6 years ago
It's only issue when consuming project targets netcoreapp2.0. When targeting net461 it compile/runs just fine.
@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
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?