Xamarin Forms UWP - 错误:ILT0042:当前不支持指针类型数组 [英] Xamarin Forms UWP - Error : ILT0042: Arrays of pointer types are not currently supported

查看:12
本文介绍了Xamarin Forms UWP - 错误:ILT0042:当前不支持指针类型数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到了这个错误,而且……网上什么也没有!它似乎来自 Newtonsoft.Json..

I got this error and.. nothing on the web ! It seems to come from Newtonsoft.Json..

有我的PCL项目

1>  Newtonsoft.Json
1>  Imported XAML Roots from 2 files:
1>  C:PROJECT_PATHPROJECT.UWPobjARMReleaseilcinPROJECT.UWP.xr.xml
1>  C:PROJECT_PATHPROJECT.UWPobjARMReleaseilcinXamarin.Forms.Platform.UAPXamarin.Forms.Platform.UAP.xr.xml
1>C:PROJECT_PATHPROJECT.UWPResources.System.Linq.Expressions.rd.xml(35): warning : ILTransform_0027: Method 'CreateLambda' within 'System.Linq.Expressions.Expression' could not be found.
1>C:PROJECT.UWPResources.System.Linq.Expressions.rd.xml(91): warning : ILTransform_0027: Method 'ParameterIsAssignable' within 'System.Linq.Expressions.Expression' could not be found.
1>C:Program Files (x86)MSBuildMicrosoft.NetNativeARMilcIlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Generation.CompilerHelpers.MemberEquals(System.Reflection.MemberInfo, System.Reflection.MemberInfo)' at IL offset 0x3F.
1>C:Program Files (x86)MSBuildMicrosoft.NetNativeARMilcIlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.ConstructorInfo, System.Reflection.BindingFlags)' at IL offset 0x15.
1>C:Program Files (x86)MSBuildMicrosoft.NetNativeARMilcIlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.ConstructorInfo, System.Reflection.BindingFlags)' at IL offset 0x2E.
1>C:Program Files (x86)MSBuildMicrosoft.NetNativeARMilcIlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.MethodInfo, System.Reflection.BindingFlags)' at IL offset 0x15.
1>C:Program Files (x86)MSBuildMicrosoft.NetNativeARMilcIlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.MethodInfo, System.Reflection.BindingFlags)' at IL offset 0x2E.
1>C:Program Files (x86)MSBuildMicrosoft.NetNativeARMilcIlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.FieldInfo, System.Reflection.BindingFlags)' at IL offset 0x15.
1>C:Program Files (x86)MSBuildMicrosoft.NetNativeARMilcIlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.FieldInfo, System.Reflection.BindingFlags)' at IL offset 0x2E.
1>C:Program Files (x86)MSBuildMicrosoft.NetNativeARMilcIlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.EventInfo, System.Reflection.BindingFlags)' at IL offset 0xB4.
1>C:Program Files (x86)MSBuildMicrosoft.NetNativeARMilcIlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.EventInfo, System.Reflection.BindingFlags)' at IL offset 0xC9.
1>C:Program Files (x86)MSBuildMicrosoft.NetNativeARMilcIlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.PropertyInfo, System.Reflection.BindingFlags)' at IL offset 0x15.
1>C:Program Files (x86)MSBuildMicrosoft.NetNativeARMilcIlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.PropertyInfo, System.Reflection.BindingFlags)' at IL offset 0x2E.
1>C:Program Files (x86)MSBuildMicrosoft.NetNativeARMilcIlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Type, System.Reflection.BindingFlags)' at IL offset 0x20.
1>C:Program Files (x86)MSBuildMicrosoft.NetNativeARMilcIlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Security.Authentication.CipherAlgorithmType Security.Tls.MobileAuthenticatedStream.CipherAlgorithm.get()' at IL offset 0x24.
1>C:Program Files (x86)MSBuildMicrosoft.NetNativeARMilcIlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Security.Authentication.HashAlgorithmType Security.Tls.MobileAuthenticatedStream.HashAlgorithm.get()' at IL offset 0x24.
1>C:Program Files (x86)MSBuildMicrosoft.NetNativeARMilcIlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Security.Authentication.ExchangeAlgorithmType Security.Tls.MobileAuthenticatedStream.KeyExchangeAlgorithm.get()' at IL offset 0x24.
1>C:Program Files (x86)MSBuildMicrosoft.NetNativeARMilcIlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.IntPtr CoreText.CTParagraphStyle.CreateFromSettings(CoreText.CTParagraphStyleSettings)' at IL offset 0xCC.
1>C:Program Files (x86)MSBuildMicrosoft.NetNativeARMilcIlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int32 CoreAnimation.CATransform3D.GetHashCode()' at IL offset 0x22.
1>C:Program Files (x86)MSBuildMicrosoft.NetNativeARMilcIlcInternals.targets(936,5): error : ILT0042: Arrays of pointer types are not currently supported: 'System.Int16*[]'.__Arrays of pointer types are not currently supported: 'System.Single*[]'.__Arrays of pointer types are not currently supported: 'System.Int16*[]'.__Arrays of pointer types are not currently supported: 'System.Int16*[]'.__Arrays of pointer types are not currently supported: 'System.Single*[]'.__Arrays of pointer types are not currently supported: 'System.Single*[]'.__Arrays of pointer types are not currently supported: 'System.Int16*[]'.__Arrays of pointer types are not currently supported: 'System.Single*[]'.__
1>
1>Build FAILED.
1>
1>Time Elapsed 00:01:17.24
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========

有人可以帮助我吗?:/我需要为我的 PCL 项目制作这个 UWP 版本...

Does someone can help me? :/ I need to make this UWP version of my PCL project...

推荐答案

我遇到了同样的问题.我花了几天时间才弄明白这一点.为了解决这个问题,我不得不从我的 UWP.csproj 文件中注释掉这一行.

I had the same problem. It took me days to figure this out. To solve the problem, I had to comment out this line from my UWP.csproj file.

<ItemGroup>
    <Reference Include="Xamarin.iOS">
      <HintPath>................Program Files (x86)Reference AssembliesMicrosoftFrameworkXamarin.iOSv1.0Xamarin.iOS.dll</HintPath>
    </Reference>
</ItemGroup>

我只能假设当我尝试将以下加载页面配方添加到我的应用程序时添加了这一行.有一次,我尝试将它作为客户渲染器添加到我的 UWP 应用程序中,并在这样做时使用 UIKIT 添加,这是 iOS 的东西.我只是猜测,但也许就是这样.https://developer.xamarin.com/recipes/ios/standard_controls/popovers/display_a_loading_message/

I can only assume that this line got added when I tried to add the following loading page recipe to my app. At one point, I tried to add it as a customer renderer to my UWP app and in doing so added using UIKIT, which is an iOS thing. I'm only speculating, but perhaps that is it. https://developer.xamarin.com/recipes/ios/standard_controls/popovers/display_a_loading_message/

我还假设它在 Debug 下工作得很好,但没有在 Release 下构建,因为 .Net Native 工具链选项试图用我的 UWP 应用编译 Xamarin.iOS.dll.

I also assume that it worked just fine under Debug, but didn't Build under Release due to the fact that the .Net Native tool chain option was trying to compile the Xamarin.iOS.dll with my UWP app.

我并不是说这是您的问题,但您的 UWP.csproj 文件中可能有类似的条目导致了该问题.希望这会有所帮助.

I'm not saying that this is your issue, but perhaps there is a similar entry in your UWP.csproj file that is causing the issue. Hope this helps.

这篇关于Xamarin Forms UWP - 错误:ILT0042:当前不支持指针类型数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆