Skip to content

When support for .net core? #16

Closed
Closed

Description

@ZeeLyn

When support for .net core?

Activity

  1. enricosada commented on Feb 23, 2017

    @enricosada

    @ww198643 Type provider require .net standard 2.0.

    See visualfsharp roadmap for more info

    Edited, will not work in 2.0 either, see #16 (comment) below

  2. ed-ilyin commented on Jun 27, 2017

    @ed-ilyin

    I'm trying to use this lib in netstandard2.0 preview1 project, but getting error at compile time

    FSC : error FS3031: The type provider 'C:\Users\edil\.nuget\packages\fsharp.data.typeproviders\5.0.0.2\lib\net40\FSharp.Data.TypeProviders.dll' reported an error: Assembly attribute 'TypeProviderAssemblyAttribute' refers to a designer assembly 'FSharp.Data.TypeProviders' which cannot be loaded or doesn't exist. Could not load file or assembly 'FSharp.Data.TypeProviders, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified. [C:\Users\edil\git\MyProject.fsproj]
    
  3. enricosada commented on Jun 27, 2017

    @enricosada

    Type providers doesnt work in 2.0 either.
    VF# team updated the roadmap and excluded type providers for 2.0, see dotnet/fsharp#3069 for more info

  4. larjo commented on Jul 4, 2017

    @larjo

    I understand that I cant use type providers when targeting netstandard2.0.

    But shouldn't they work when I target net461?

    
    > dotnet --version
    1.0.4
    
    > gc .\src\library\library.fsproj | select -index 2
    <TargetFramework>net461</TargetFramework>
    
    > dotnet add .\src\library\library.fsproj package FSharp.Data.TypeProviders
    > dotnet restore
    > dotnet build
    ...
     error FS3031: The type provider 'C:\Users\lbr606\.nuget\packages\fsharp.data.typeproviders\5.0.0.2\lib\net40\FSharp.Data.TypeProviders.dll' reported an error: Assembly attribute 'TypeProviderAssemblyAttribute' refers to a designer assembly 'FSharp.Data.TypeProviders' which cannot be loaded or doesn't exist. Could not load file or assembly 'FSharp.Data.TypeProviders, Culture=neutral, PublicKeyToken=null'.
    
  5. dsyme commented on Jul 4, 2017

    @dsyme
    Contributor
  6. dsyme commented on Jul 4, 2017

    @dsyme
    Contributor

    @larjo The error is different when using .NET SDK 2.0 preview2, see dotnet/fsharp#3303

  7. dsyme commented on Jul 4, 2017

    @dsyme
    Contributor

    @larjo We have looked into this. You can use type providers with the new project file format when targeting net461, you just need to either compile using "msbuild", or apply the second workaround listed in dotnet/fsharp#3303

  8. gfritz commented on Jan 3, 2018

    @gfritz

    I tried the workaround documented in this dotnet/fsharp#3303 (comment) with WsdlService. The approach in that comment still fails for me, however the error is different from the other errors in that issue:

    FSC : error FS2024: Static linking may not be used on an assembly referencing mscorlib (e.g. a .NET Framework assembly) when generating an assembly that references System.Runtime (e.g. a .NET Core or Portable assembly). [C:\git\tp-tests\wsdlserviceapp\wsdlserviceapp.fsproj]
    

    image

    Is FS2024 happening primarily because the Type Providers in FSharp.Data.TypeProviders are not "cross targeting" like in the linked comment? I could not find a way to determine if they were or were not. I have a test repo https://github.com/gfritz/wsdlserviceapp and a README with steps and screenshots.

  9. daz10000 commented on Apr 3, 2018

    @daz10000

    Is there any update on this? - we have been using FSharp.Data extensively with dotnet core (mainly the type providers like CSV and XML provider) and then using the magic workaround dotnet/fsharp#3303 to keep the tooling happy. It all works, but only downside is lots of warnings every time you run the executable. Would be great to get a clean FSharp.Data build on dotnet core ,

    Darren

    :\src\DemGslc\src\DemGslc\DemGslc.fsproj : warning NU1701: Package 'FSharp.Data 2.4.5' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.

  10. dsyme commented on Apr 4, 2018

    @dsyme
    Contributor

    Is there any update on this? - we have been using FSharp.Data extensively with dotnet core (mainly the type providers like CSV and XML provider) and then using the magic workaround dotnet/fsharp#3303 to keep the tooling happy. It all works, but only downside is lots of warnings every time you run the executable. Would be great to get a clean FSharp.Data build on dotnet core ,

    Do you mean http://github.com/fsharp/FSharp.Data, rather than this set of (old) type providers?

  11. daz10000 commented on Apr 4, 2018

    @daz10000

    Ooops - yes ;) didnt notice I was in the wrong project.

  12. dsyme commented on Nov 20, 2021

    @dsyme
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions