2014-11-04 41 views
2

我在Windows Phone 8.1(通用)项目中使用F#PCL库。对于FSharp.Core程序集使用MissingManifestResourceException

我已将F#PCL库引用为项目。我还引用了FSharp.Core程序集,因为我需要使用它的一些类型(为了与我的F#PCL进行通信)。我使用对创建新的F#PCL项目时默认使用的相同物理程序集(C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ FSharp.NETCore \ 3.259.3.1 \ FSharp.Core.dll)的引用。

只要我建立在除Release-ARM以外的任何其他配置中,一切都可以正常工作。但是当我切换到Release-ARM配置时(我认为这是由Store提供给用户的,基于从Store直接下载的应用程序的行为),所有的地狱崩溃了。

当我尝试访问List.sortBy功能,我得到以下错误:

Error Code:

-2146233036

Error Message:

The type initializer for 'FastGenericComparerTable`1' threw an exception.

Line Number:

FSharp.Core

Stack Trace: at Microsoft.FSharp.Core.LanguagePrimitives.FastGenericComparerCanBeNullT at Microsoft.FSharp.Primitives.Basics.Array.stableSortWithKeys[T,TKey](T[] array, TKey[] keys) at Microsoft.FSharp.Primitives.Basics.Array.stableSortInPlaceBy[T,TKey](FSharpFunc 2 projection, T[] array) at Microsoft.FSharp.Collections.ListModule.SortBy[T,TKey](FSharpFunc 2 projection, FSharpList 1 list) at TaskCrunch.Data.ChildEntityTransforms.reorderTree[a](FSharpFunc 2 sortFunc, FSharpList 1 xs) at TaskCrunch.Data.ChildEntityTransforms.children(toDo x, FSharpList 1 ys, FSharpList 1 accumulated) at [email protected](FSharpList 1 ys, FSharpList 1 resultSoFar) at TaskCrunch.Universal.ViewModel.ProjectDetailViewModel.<SortTasks>d__5c.MoveNext() ----- INNER EXCEPTION ------ Message: The type initializer for '<StartupCode$FSharp-Core>.$Prim-types' threw an exception. Source: FSharp.Core StackTrace: at [email protected][T](Type matchValue, Unit unitVar) at Microsoft.FSharp.Core.LanguagePrimitives.FastGenericComparerTable 1..cctor() HResult: -2146233036 HelpLink: Unknown

----- INNER EXCEPTION ------ Message: Exception of type 'System.Resources.MissingManifestResourceException' was thrown. Source: mscorlib StackTrace: at System.Resources.ResourceManager.GetString(String name, CultureInfo culture) at .$Prim-types..cctor() HResult: -2146233038 HelpLink: Unknown

奇怪的是,这似乎并没有成为我到FSharp.Core第一个电话,因为我所谓的名单。映射函数在它之前,似乎执行。

我怀疑在构建过程中出现了问题,但我不确定在哪里寻找。我已经尝试从头重新创建F#PCL库无济于事。

+0

那么打开这个bug,看起来很伤心。它发生了两次轰炸,第二次发生故障时它试图告诉你为什么发生第一次例外。先锋们背上有箭。 – 2014-11-04 23:17:41

回答

0

这可能是VS F#便携式配置文件支持中的一个错误。可能是一个编译器错误(某种程度上,这个版本的FSharp.Core没有正确地安装到可移植的配置文件中),或者可能是一个项目系统错误(某种需要的编译输出没有为ARM正确创建)。

我会建议在https://visualfsharp.codeplex.com/

相关问题