I have a project that targets two different operating systems/frameworks:
net461
on Windows and netcoreapp2.0
on OSX
I spent a fair amount of time trying your project on OSX in both Visual Studio for Mac and VS Code. I'll try to stick with factual observations without getting into "why don't you do X instead".
runtimes/{rid}/lib/{tfm}/*.dll
paths look oktarget="lib/{tfm}/..."
assemblies are automatically referenced, runtimes/...
are notnetstandard
seems like it would make your package work in both netcoreapp
and netstandard
projects (e.g. use target="lib/netstandard1.6/..."
). Compare with thisruntimes/
seems to be intended for platform-dependent assemblies you'll load at runtime. For example, 32/64-bit native assemblies in runtimes/win-x64/native/
and runtimes/win-x86/native/
) loaded with AssemblyLoadContext (another post by McMaster)target="ref/..."
, but you can add Explicit Assembly
block)dotnet publish
they'll be included: