C# 用F#FAKE测试PCL
我有一个包含PCL类库项目和测试库(MSTest)的解决方案。PCL使用C# 用F#FAKE测试PCL,c#,mstest,portable-class-library,f#-fake,C#,Mstest,Portable Class Library,F# Fake,我有一个包含PCL类库项目和测试库(MSTest)的解决方案。PCL使用Microsoft.Net.Http和Microsoft.Bcl.Compression进行gzip下载。PCL和测试项目都使用Nuget引用前面提到的LIB 当我在VisualStudio中运行测试时,测试工作正常并通过。当我从F#FAKE运行测试时 所有的测试都以失败告终 Test method XXX.AvailableLanguagesShoudlExist threw exception: System.Miss
Microsoft.Net.Http
和Microsoft.Bcl.Compression
进行gzip下载。PCL和测试项目都使用Nuget引用前面提到的LIB
当我在VisualStudio中运行测试时,测试工作正常并通过。当我从F#FAKE运行测试时
所有的测试都以失败告终
Test method XXX.AvailableLanguagesShoudlExist threw exception:
System.MissingMethodException: Method not found: 'Void
System.Net.Http.HttpClientHandler.set_AutomaticDecompression(System.Net.DecompressionMethods)'.
这里的问题可能是你的Mstest.exe使用了错误的F#或FSharp.Core.dll版本-我想我们需要更多的细节来解决这个问题
- 请确保Visual Studio生成过程和伪生成过程使用相同的版本李>
- 也许你需要使用绑定重定向
Test method XXX.AvailableLanguagesShoudlExist threw exception:
System.MissingMethodException: Method not found: 'Void
System.Net.Http.HttpClientHandler.set_AutomaticDecompression(System.Net.DecompressionMethods)'.