需要有关Microsoft.FSharp.Data.TypeProviders的澄清 [英] Need clarification regarding Microsoft.FSharp.Data.TypeProviders

查看:90
本文介绍了需要有关Microsoft.FSharp.Data.TypeProviders的澄清的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个使用Microsoft.FSharp.Data.TypeProviders的F#3.1构建的项目.现在,我们正在尝试使用VS2015构建该项目,而F#的这一部分存在问题.例如,当我尝试使用Nuget安装它时,它需要F#3.1.我使用了本指南,它看起来已经过时了.

We have a project build with F# 3.1 using Microsoft.FSharp.Data.TypeProviders. Now we are trying to build this project with VS2015 and we have the problems with this part of F#. For example, when I am trying to install it using Nuget it requires F# 3.1. I use this guide and it looks outdated.

因此,我很乐意回答我的问题:

So I will be thankful for answers on my questions:

  1. Microsoft.FSharp.Data.TypeProviders属于F#语言的哪一部分?它是F#核心库还是外部库之一?谁负责这个图书馆?在哪里可以找到F#生态系统这一部分的错误跟踪器?

  1. What part of F# language Microsoft.FSharp.Data.TypeProviders belongs to? It is F# core library or it is one of external libraries? Who is responsible for this library? Where can I find the bug tracker for this part of F# ecosystem?

有人在尝试使用本教程在VS2015中构建F#应用程序?你有像我这样的问题吗?还是一切正常?

Is there anybody who trying to use this tutorial to build F# application in VS2015? Do you have a problems like me? Or all is working fine?

Microsoft.FSharp.TypeProviders的当前状态是什么?它已经过时了吗,我所需要的只是等待一段时间,直到该库将被F#4.0和VS2015所采用.还是我需要切换到其他数据库访问库?

What is the current state of Microsoft.FSharp.TypeProviders? Is it outdated and all what I need is to wait some time when the library will be adopted to F# 4.0 and VS2015. Or do I need to switch to other DB-access library?

以下是重现错误的完整说明:

  • 新项目-F#-控制台应用程序(net 4.6)
  • NuGet-安装Data.TypeProviders. packages.config:

<?xml version="1.0" encoding="utf-8"?>
  <packages>
   <package id="FSharp.Core.3" version="0.0.2" targetFramework="net46" />
   <package id="FSharp.Data.TypeProviders" version="0.0.1" targetFramework="net46" />
  </packages>

  • 要在program.fs中添加以下行:

  • To program.fs add the lines:

    module Test
       open Microsoft.FSharp.Data.TypeProviders
       type internal DB = SqlDataConnection<"Data Source=MyServer;Initial Catalog=MyDB;Integrated Security=SSPI;">
    

  • 这是一条错误消息:

    找不到.NET SDK 4.0或4.5工具

    The .NET SDK 4.0 or 4.5 tools can not be found

    推荐答案

    更多历史背景:

    1.Microsoft.FSharp.Data.TypeProviders属于F#语言的哪一部分?它是F#核心库还是外部库之一?谁负责这个图书馆?在哪里可以找到F#生态系统这一部分的错误跟踪器?

    1.What part of F# language Microsoft.FSharp.Data.TypeProviders belongs to? It is F# core library or it is one of external libraries? Who is responsible for this library? Where can I find the bug tracker for this part of F# ecosystem?

    它不是核心运行时的一部分,即您可以成为一个快乐而高效的F#开发人员,而无需与之交互.它是由Microsoft创建的,并随F#3.0/VS 2012一起提供,是一组用于常规Msft数据堆栈的内置类型的提供程序.在同一发行版中添加了作为语言功能的类型提供程序,因此该库有点展示了可以完成的工作. FS.D.TP目前未积极维护. VS 2013和VS 2015仍随附原始版本4.3.0.0,但自VS 2012版本以来未进行任何更改.可以在此处获得该资源,欢迎您使用在该存储库中也存在文件错误.

    It's not part of the core runtime, i.e. you can be a happy and productive F# dev without ever interacting with it. It was created by Microsoft and shipped with F# 3.0/VS 2012 as a set of in-the-box type providers for common Msft data stacks. Type providers as a language feature were added in the same release, so this library was a bit of a showcase of what could be done. FS.D.TP is not actively maintained at the moment. Original version 4.3.0.0 is still shipped in the box with VS 2013 and VS 2015, but no changes have been made since the VS 2012 release. Source is available here and you are welcome to file bugs in that repo, too.

    原则上,该库将作为社区项目接管,并从此处作为nuget软件包进行维护/更新.并没有真正阻止这种情况的发生.但是,对于许多企业客户而言,将带有Msft签名和支持的库放在盒子中仍然很重要.因此,它处于包装盒中但未更新的这种不确定状态.

    In principle the library be taken over as a community project and maintained/updated from there as a nuget package. Nothing is really preventing this. However having the library in the box with Msft signature and support is very important to a lot of enterprise customers still. So it persists in this sort of limbo state where it's in the box but not updated.

    3.Microsoft.FSharp.TypeProviders的当前状态是什么?它已经过时了吗,我所需要的只是等待一段时间,直到该库将被F#4.0和VS2015所采用.还是我需要切换到其他数据库访问库?

    3.What is the current state of Microsoft.FSharp.TypeProviders? Is it outdated and all what I need is to wait some time when the library will be adopted to F# 4.0 and VS2015. Or do I need to switch to other DB-access library?

    上面已经回答了其中一些问题.如果您具有所有必需的依赖关系,则该库在F#3.1或F#4.0中仍然应该可以完美地运行.特别是,您需要安装.NET 4.0或4.5 SDK(可以获取Win8/.NET 4.5 SDK 此处),因为TP依赖于各种附带的可执行代码生成工具(sqlmetal.exe,svutil.exe).

    Some of this is answered above. The library should still be perfectly functional with F# 3.1 or F# 4.0, provided you have all of the required dependencies. In particular, you need the .NET 4.0 or 4.5 SDK installed (you can get Win8/.NET 4.5 SDK here) because the TPs rely on various executable codegen tools (sqlmetal.exe, svutil.exe) that come along therewith.

    这篇关于需要有关Microsoft.FSharp.Data.TypeProviders的澄清的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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