Single file EmguCV executable works in .NET 6 preview 2. But not EmguTF...
JohnTenney opened this issue · comments
The following command builds a MyProj.exe file that runs in .NET 6 preview 2, as long as I exercise EmguCV but NOT EmguTF:
dotnet publish MyProj.csproj -c Release -f net6.0-windows -r win10-x64 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true
However, when I try to run TensorFlow code, I get errors like:
Application Exception The type initializer for 'Emgu.TF.TfInvoke' threw an exception. CodeBase is not supported on assemblies loaded from a single-file bundle.
at Emgu.TF.TfInvoke.tfeNewGraph()
at Emgu.TF.Graph..ctor()
..etc...
So it looks like you addressed this issue in EmguCV but not EmguTF?
The "CodeBase" usage has been removed by this commit:
7d53f23
The commit is included in the 2.4.1 release.
Just tested it--works great!