Tôi gặp khó khăn khi IronPython chạy trong ứng dụng Xamarin.Android. Xamarin nói rằng họ có hỗ trợ limited DLR.IronPython trên Xamarin
Tôi đã cài đặt phiên bản Iron Python mới nhất trên PC của mình. Trong dự án Xamarin.Android của tôi trong Xamarin Studio, tôi đã thêm tham chiếu đến < Cài đặt IPY Dir > \ Platforms \ Android * .dll.
Khi tôi biên dịch, tôi nhận được ...
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2,2): Error: Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Microsoft.Scripting, Version=1.1.0.20, Culture=neutral, PublicKeyToken=7f709c5b713576e1'. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'Microsoft.Scripting.dll'
at Monodroid.Tuner.MonoDroidResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(List`1 assemblies, AssemblyDefinition assembly)
at Xamarin.Android.Tasks.ResolveAssemblies.Execute() (IPYScripter)
Nếu Xamarin.Android đã hỗ trợ Sắt Python, làm thế nào để đi về việc thực hiện nó? Mục tiêu cho ứng dụng của tôi là để người dùng có thể tạo và chạy các tập lệnh IPY.
Assemblies xây dựng chống Mono cho Android không tương thích với Xamarin.Android vì thay đổi tên lắp ráp mạnh: http: //forums.xamarin.com/discussion/1476/changes-to-assembly-strongnames-in-xamarin-android-4-6-0 – Cheesebaron
Trên hết, hỗ trợ Android của IronPython rất thử nghiệm. Nó cần khá nhiều công việc để thực sự hữu ích. –
@Cheesebaron Được rồi, vì vậy mà ngụ ý rằng tôi sẽ có thể xây dựng IronPython chống lại các nhị phân Xamarin.Android, phải không? Tôi đã thử điều đó, nhưng tôi chưa bao giờ thực sự xây dựng một dự án phức tạp như vậy trước đây. Bất kỳ lời khuyên/hướng dẫn để làm điều đó? – msm8bball