我试着移动
http://xml-rpc.net/
到NET标准类库。
这是可行的,我可以在运行Windows 10 IOT的rapsberry PI上使用这个库运行应用程序。
至少我能调试它。当我尝试在没有连接VS的情况下运行应用程序时,它会崩溃。
当我试图在发布模式下编译它时,我会收到一些错误消息:
10> Generating System.Reflection.DispatchProxy proxy code.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.AssemblyBuilder' from assembly 'System.Reflection.Emit' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildAssembly(Type, string, string, AssemblyBuilderAccess)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.AssemblyBuilderAccess' from assembly 'System.Reflection.Emit' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildAssembly(Type, string, string, AssemblyBuilderAccess)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.TypeBuilder' from assembly 'System.Reflection.Emit' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildMethods(TypeBuilder, IEnumerable<XmlRpcProxyGen.MethodData>)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0003: Method 'XmlRpcProxyGen.BuildAssembly(Type, string, string, AssemblyBuilderAccess)' will always throw an exception due to the missing method 'AssemblyBuilder.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess)' in assembly 'System.Reflection.Emit'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.MethodBuilder' from assembly 'System.Reflection.Emit' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildMethod(TypeBuilder, string, string, IReadOnlyList<string>, Type[], bool, Type, bool)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.CustomAttributeBuilder' from assembly 'System.Reflection.Emit.ILGeneration' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildMethod(TypeBuilder, string, string, IReadOnlyList<string>, Type[], bool, Type, bool)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.ILGenerator' from assembly 'System.Reflection.Emit.ILGeneration' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildMethod(TypeBuilder, string, string, IReadOnlyList<string>, Type[], bool, Type, bool)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.LocalBuilder' from assembly 'System.Reflection.Emit.ILGeneration' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildMethod(TypeBuilder, string, string, IReadOnlyList<string>, Type[], bool, Type, bool)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.ParameterBuilder' from assembly 'System.Reflection.Emit.ILGeneration' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildMethod(TypeBuilder, string, string, IReadOnlyList<string>, Type[], bool, Type, bool)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.Label' from assembly 'System.Reflection.Emit.ILGeneration' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildMethod(TypeBuilder, string, string, IReadOnlyList<string>, Type[], bool, Type, bool)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0003: Method 'XmlRpcProxyGen.BuildMethod(TypeBuilder, string, string, IReadOnlyList<string>, Type[], bool, Type, bool)' will always throw an exception due to the missing method 'TypeBuilder.DefineMethod(string, MethodAttributes, Type, Type[])' in assembly 'System.Reflection.Emit'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0003: Method 'XmlRpcProxyGen.BuildBeginMethods(TypeBuilder, IEnumerable<XmlRpcProxyGen.MethodData>)' will always throw an exception due to the missing method 'TypeBuilder.DefineMethod(string, MethodAttributes, Type, Type[])' in assembly 'System.Reflection.Emit'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0003: Method 'XmlRpcProxyGen.BuildEndMethods(TypeBuilder, IEnumerable<XmlRpcProxyGen.MethodData>)' will always throw an exception due to the missing method 'TypeBuilder.DefineMethod(string, MethodAttributes, Type, Type[])' in assembly 'System.Reflection.Emit'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0005: Type 'System.Reflection.Emit.ConstructorBuilder' from assembly 'System.Reflection.Emit' was not included in compilation, but was referenced in method 'XmlRpcProxyGen.BuildConstructor(TypeBuilder, Type, string)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): warning : ILTransform : warning ILT0003: Method 'XmlRpcProxyGen.BuildConstructor(TypeBuilder, Type, string)' will always throw an exception due to the missing method 'TypeBuilder.DefineConstructor(MethodAttributes, CallingConventions, Type[])' in assembly 'System.Reflection.Emit'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
将源文件直接移动到我的物联网应用程序并添加系统。反射Emit nuget包也会带来同样的结果。
我错过什么了吗?
或者如果是系统。反射Emit有一个问题——有人知道XML-RPC库没有XML-RPC那么动态吗。net-但至少支持多呼叫和事件?