C# XML-RPC.net标准

C# XML-RPC.net标准,c#,windows-10-iot-core,reflection.emit,C#,Windows 10 Iot Core,Reflection.emit,我尝试移植到.NET标准类库。 这是可行的,我可以在运行Windows 10 IOT的rapsberry PI上使用此库运行应用程序。 至少我可以调试它。当我尝试在没有连接VS的情况下运行应用程序时,它会崩溃 当我尝试在发布模式下编译它时,会收到许多错误消息: 10> Generating System.Reflection.DispatchProxy proxy code. 10>C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPack

我尝试移植到.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.
10>生成System.Reflection.DispatchProxy代理代码。
10> C:\Program Files(x86)\Microsoft SDK\UWPNuGetPackages\Microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5):警告:ILTransform:警告ILT0005:编译中不包括程序集“System.Reflection.Emit”的类型“System.Reflection.AssemblyBuilder”,但在方法“xmlrpcproxion.BuildAssembly(类型、字符串、字符串、AssemblyBuilderAccess)”中被引用。可能缺少程序集,或者依赖于较新的Windows SDK版本。
10> C:\Program Files(x86)\Microsoft SDK\UWPNuGetPackages\Microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5):警告:ILTransform:警告ILT0005:从程序集“System.Reflection.Emit.AssemblyBuilderAccess”键入“System.Reflection.Emit”,但在方法“xmlrpcproxion.BuildAssembly(类型、字符串、字符串、AssemblyBuilderAccess)”中被引用。可能缺少程序集,或者依赖于较新的Windows SDK版本。
10> C:\Program Files(x86)\Microsoft SDK\UWPNuGetPackages\Microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5):警告:ILTransform:warning ILT0005:Type“System.Reflection.Emit.TypeBuilder”from assembly“System.Reflection.Emit”未包含在编译中,但在方法“XMLRPCProxion.BuildMethods”中引用(TypeBuilder,IEnumerable)”。可能缺少程序集,或者依赖于较新的Windows SDK版本。
10> C:\Program Files(x86)\Microsoft SDK\UWPNuGetPackages\Microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5):警告:ILTransform:警告ILT0003:方法“XMLRPCProxy.BuildAssembly”(类型、字符串、字符串、AssemblyBuilderAccess)'将始终引发异常,因为程序集'System.Reflection.Emit'中缺少方法'AssemblyBuilder.DefinedDynamicAssembly(AssemblyName,AssemblyBuilderAccess')。可能缺少程序集,或者依赖于较新的Windows SDK版本。
10> C:\Program Files(x86)\Microsoft SDK\UWPNuGetPackages\Microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5):警告:ILTransform:warning ILT0005:Type'System.Reflection.Emit.MethodBuilder'from assembly'System.Reflection.Emit'未包含在编译中,但在方法'XMLRPCProxion.BuildMethod'中引用(TypeBuilder,string,string,IReadOnlyList,Type[],bool,Type,bool)”。可能缺少程序集,或者依赖于较新的Windows SDK版本。
10> C:\Program Files(x86)\Microsoft SDK\UWPNuGetPackages\Microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5):警告:ILTransform:警告ILT0005:类型“System.Reflection.Emit.CustomAttributeBuilder”“from assembly”“System.Reflection.Emit.ILGeneration”未包含在编译中,但在方法“XMLRPCProxion.BuildMethod”中被引用(TypeBuilder,string,string,IReadOnlyList,Type[],bool,Type,bool)“。可能缺少程序集,或者依赖于较新的Windows SDK版本。
10> C:\Program Files(x86)\Microsoft SDK\UWPNuGetPackages\Microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5):警告:ILTransform:警告ILT0005:类型“System.Reflection.Emit.ILGenerator”“from assembly”“System.Reflection.Emit.ILGeneration”未包含在编译中,但在方法“XMLRPCProxion.BuildMethod”中被引用(TypeBuilder,string,string,IReadOnlyList,Type[],bool,Type,bool)“。可能缺少程序集,或者依赖于较新的Windows SDK版本。
10> C:\Program Files(x86)\Microsoft SDK\UWPNuGetPackages\Microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5):警告:ILTransform:警告ILT0005:编译中未包含“System.Reflection.Emit.LocalBuilder”程序集“System.Reflection.Emit.ILGeneration”中的类型“System.Reflection.Emit.LocalBuilder”,但在方法“XMLRPCProxion.BuildMethod”中引用了该类型(TypeBuilder,string,string,IReadOnlyList,Type[],bool,Type,bool)“。可能缺少程序集,或者依赖于较新的Windows SDK版本。
10> C:\Program Files(x86)\Microsoft SDK\UWPNuGetPackages\Microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5):警告:ILTransform:warning ILT0005:Type“System.Reflection.Emit.ParameterBuilder”from assembly“System.Reflection.Emit.ILGeneration”未包含在编译中,但在方法“XMLRPCProxion.BuildMethod”中被引用(TypeBuilder,string,string,IReadOnlyList,Type[],bool,Type,bool)“。可能缺少程序集,或者依赖于较新的Windows SDK版本。
10> C:\Program Files(x86)\Microsoft SDK\UWPNuGetPackages\Microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5):警告:ILTransform:warning ILT0005:Type“System.Reflection.Emit.Label”“from assembly”System.Reflection.Emit.ILGeneration“未包含在编译中,但在方法“XMLRPCProxion.BuildMethod”中被引用(TypeBuilder,string,string,IReadOnlyList,Type[],bool,Type,bool)“。可能缺少程序集,或者依赖于较新的Windows SDK版本。
10> C:\Program Files(x86)\Microsoft SDK\UWPNuGetPackages\Microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5):警告:ILTransform:警告ILT0003:Method'XmlrpcProxy.BuildMethod(TypeBuilder,string,string,IReadOnlyList,Type[],bool,Type,bool)'将始终引发异常,因为程序集'System.Reflect'中缺少方法'TypeBuilder.DefineMethod(string,MethodAttributes,Type,Type[])