Closed JohnLeyva closed 2 years ago
dotnet avro create
doesn’t attempt to load any assemblies that aren’t specified with --assembly
. To get this to work, you should be able to explicitly pull in System.ServiceModel.Primitives with another --assembly
:
dotnet avro create --type $type --assembly $dll --assembly System.ServiceModel.Primitives.dll
When using
dotnet avro create --type $type --assembly $dll
For a type like the following
I get
Could not load file or assembly
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'System.ServiceModel.Primitives, Version=4.9.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
This happens even if I copy the assembly System.ServiceModel.Primitives.dll next to $dll
dotnet avro create works with other types that do not use MessageContractAttribute.