pre释放Collections.Immutable [英] pre-release Collections.Immutable

查看:106
本文介绍了pre释放Collections.Immutable的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人成功地打开了pre-发布 System.Collections.Immutable 从的NuGet在F#?

Has anyone succeeded in opening the pre-release System.Collections.Immutable from NuGet in F#?

我得到这个错误:

类型IEnumerable`1这里需要和不可用。您必须添加一个引用程序集System.Runtime,版本= 4.0.0.0,文化=中性公钥= b03f5f7f11d50a3a'。

The type 'IEnumerable`1' is required here and is unavailable. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

尽管我的项目是.NET 4.5

Even though my project is .NET 4.5

试过明确地打开System.Runtime,并没有擦出火花。我引用 .NETCore \ V4.5 \ System.Runtime.dll

Tried explicitly opening System.Runtime and that did not work either. I am referencing .NETCore\v4.5\System.Runtime.dll

推荐答案

这是一个已知的问题,相关团队在微软正在调查。在此期间,这里的解决方法步骤:

This is a known issue that the relevant teams at Microsoft are investigating. In the meantime, here are the workaround steps:

  1. 创建一个F#应用程序项目面向.NET框架4.5
  2. 安装-包Microsoft.Bcl.Immutable - pre
  3. 添加引用为%ProgramFiles%\参考大会\微软\ Framework.NETFramework \ V4.5 \外立面\ System.Runtime.dll
  4. 添加引用,从框架的System.ComponenModel.Composition.dll组装。
  1. Create an F# Application project that targets .NET Framework 4.5
  2. Install-Package Microsoft.Bcl.Immutable -pre
  3. Add a reference to "%ProgramFiles%\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5\Facades\System.Runtime.dll"
  4. Add a reference to the System.ComponenModel.Composition.dll assembly from the Framework.

在此之后,早期的测试表明,F#工程与不变集合就好了。

After that, early testing suggests F# works with the immutable collections just fine.

这篇关于pre释放Collections.Immutable的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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