Build Xamarin Forms UWP-错误:ILT0042:当前不支持指针类型的数组

Build Xamarin Forms UWP-错误:ILT0042:当前不支持指针类型的数组,build,xamarin.forms,uwp,release,Build,Xamarin.forms,Uwp,Release,我犯了这个错误,然后。。网上什么都没有!它似乎来自 有我的PCL项目的输出 1> Newtonsoft.Json 1> Imported XAML Roots from 2 files: 1> C:\PROJECT_PATH\PROJECT.UWP\obj\ARM\Release\ilc\in\PROJECT.UWP.xr.xml 1> C:\PROJECT_PATH\PROJECT.UWP\obj\ARM\Release\ilc\in\Xamarin.Forms

我犯了这个错误,然后。。网上什么都没有!它似乎来自

有我的PCL项目的
输出

1>  Newtonsoft.Json
1>  Imported XAML Roots from 2 files:
1>  C:\PROJECT_PATH\PROJECT.UWP\obj\ARM\Release\ilc\in\PROJECT.UWP.xr.xml
1>  C:\PROJECT_PATH\PROJECT.UWP\obj\ARM\Release\ilc\in\Xamarin.Forms.Platform.UAP\Xamarin.Forms.Platform.UAP.xr.xml
1>C:\PROJECT_PATH\PROJECT.UWP\Resources.System.Linq.Expressions.rd.xml(35): warning : ILTransform_0027: Method 'CreateLambda' within 'System.Linq.Expressions.Expression' could not be found.
1>C:\PROJECT.UWP\Resources.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)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.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)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.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)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.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)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.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)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.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)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.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)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.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)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.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)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.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)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.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)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.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)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.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)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.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)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.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)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.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)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.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)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.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)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.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版本…

确保您已将所有软件包更新到最新版本,您有Visual Studio 2015 Update 3和最新的Xamarin稳定版本


一些开发人员提到,如果不使用Visual Studio的英文版本,构建发布应用程序包可能会导致问题-如果不使用,请在
Tools->Options->International Settings
中进行设置,确保已将所有包更新为最新版本,您拥有Visual Studio 2015 Update 3和最新的Xamarin稳定版本


一些开发人员提到,如果不使用Visual Studio的英文版本,构建发布应用程序包可能会导致问题-如果不使用,请在
Tools->Options->International Settings
中进行设置,我也遇到了同样的问题。我花了好几天才弄明白。为了解决这个问题,我不得不从我的UWP.csproj文件中注释掉这一行

<ItemGroup>
    <Reference Include="Xamarin.iOS">
      <HintPath>..\..\..\..\..\..\..\..\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Xamarin.iOS.dll</HintPath>
    </Reference>
</ItemGroup>

..\..\..\..\..\..\..\..\..\..\程序文件(x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Xamarin.iOS.dll
我只能假设这一行是在我尝试将以下加载页面配方添加到我的应用程序时添加的。有一次,我尝试将其作为客户渲染器添加到我的UWP应用程序中,并使用iOS的UIKIT添加。我只是在猜测,但也许就是这样。

我还假设它在调试时工作正常,但在发布时没有生成,因为.Net本机工具链选项试图用我的UWP应用程序编译Xamarin.iOS.dll


我并不是说这是你的问题,但也许在你的UWP.csproj文件中有一个类似的条目导致了这个问题。希望这有帮助。

我也有同样的问题。我花了好几天才弄明白。为了解决这个问题,我不得不从我的UWP.csproj文件中注释掉这一行

<ItemGroup>
    <Reference Include="Xamarin.iOS">
      <HintPath>..\..\..\..\..\..\..\..\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Xamarin.iOS.dll</HintPath>
    </Reference>
</ItemGroup>

..\..\..\..\..\..\..\..\..\..\程序文件(x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Xamarin.iOS.dll
我只能假设这一行是在我尝试将以下加载页面配方添加到我的应用程序时添加的。有一次,我尝试将其作为客户渲染器添加到我的UWP应用程序中,并使用iOS的UIKIT添加。我只是在猜测,但也许就是这样。

我还假设它在调试时工作正常,但在发布时没有生成,因为.Net本机工具链选项试图用我的UWP应用程序编译Xamarin.iOS.dll


我并不是说这是你的问题,但也许在你的UWP.csproj文件中有一个类似的条目导致了这个问题。希望这能有所帮助。

嗨,好吧,我现在就试试,不过,我的电脑或visual studio 2015都是英文版的。:)感谢嗨,好的,我现在就来试试,不过,我的电脑或visual studio 2015都是英文版的。:)感谢嗨,Emixam,这个PCL是由Xamarin默认项目模板创建的吗?看来我无法使用Newtonsoft.Json V9.0.1重现您的问题。你能创建一个简单的演示来重新制作这个问题吗?好的,我会试着给你一个编辑;)@Emixam23你什么时候开始看到这个错误的?昨天。。。你知道吗,我通过重新创建这个项目得到了这个机会。。但是现在,该版本正在运行,但是映像(嵌入式资源)不工作。@Emixam23那么对于原始问题,您解决了吗?图像(嵌入式资源)不工作的含义是什么?你能分享你的简单演示吗?嗨,Emixam,这个PCL是由Xamarin默认项目模板创建的吗?看来我无法使用Newtonsoft.Json V9.0.1重现您的问题。你能创建一个简单的演示来重新制作这个问题吗?好的,我会试着给你一个编辑;)@Emixam23你什么时候开始看到这个错误的?昨天。。。你知道吗,我通过重新创建这个项目得到了这个机会。。但是现在,该版本正在运行,但是映像(嵌入式资源)不工作。@Emixam23那么对于原始问题,您解决了吗?图像(嵌入式资源)不工作的含义是什么?你能分享一下你的简单演示吗?