Open delebedev opened 4 years ago
So netcoreapp3.1
suggests this is a .net core application, and I suspect that Embeddinator is not pulling in the various netcore facades and dependencies.
You may be able to hack around this by passing the other assemblies to objcgen in the same invocation, but this is a limitation (we don't support netcore directly yet).
@chamons I actually tried it with netstandard2.1
too, got
error EM0013: Can't find the assembly 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51', referenced by 'embeddinator-test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
You may be able to hack around this by passing the other assemblies to objcgen in the same invocation
Would greatly appreciate an example command to to do so
@delebedev I had a similar issue where it couldn't find newtonsoft.json I fixed this by adding:
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
to my csproj file and then rebuilding!
Steps to Reproduce
I've created vanilla netcore app with "hello world" class, built it with Visual Studio and trying to use
objcgen
from terminal:Expected Behavior
Framework is built
Actual Behavior
No framework
Environment
macos 10.15.5 Visual Studio 8.6.5 objcgen 0.4.0