Method not found, despite compiling fine
Hello all. I am compiling this library (https://web.archive.org/web/20210419093118/http://xml-rpc.net/faq/xmlrpcnetfaq-2-5-0.html) for use with Fldigi. It compiles completely fine (latest snapshot), but when using the library in a separate project,
dotnet run
throws the error attached in file. I know this function exists, because the official docs say it does. (https://learn.microsoft.com/en-us/dotnet/api/system.reflection.emit.assemblybuilder.definedynamicassembly?source=recommendations&view=net-7.0) Also attached is the full source code with one minor change in XmlRpcProxyGen.cs, in line 105 from AssemblyBuilder assBldr = AppDomain.CurrentDomain.DefineDynamicAssembly(assName, access);
to AssemblyBuilder assBldr = AssemblyBuilder.DefineDynamicAssembly(assName, access);
, as AppDomain.CurrentDomain no longer holds the function.AssemblyBuilder.DefineDynamicAssembly Method (System.Reflection.Emit)
Defines a dynamic assembly.
1 Reply
oh no
its probably the fact that its passing in strings which isnt a valid overload
wait no tf
like all errors, this was solved 5 minutes after posting about it