Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Support FSharp.Data on .Net Core #16

Closed
svick opened this issue Jul 22, 2016 · 12 comments
Closed

Support FSharp.Data on .Net Core #16

svick opened this issue Jul 22, 2016 · 12 comments
Labels

Comments

@svick
Copy link

svick commented Jul 22, 2016

Steps to reproduce

  1. Run dotnet new -l fs.
  2. Add dependency to "FSharp.Data": "2.3.1".
  3. dotnet restore, dotnet build

Expected behavior

dotnet build succeeds and I can then go on to use type providers from FSharp.Data.

Actual behavior

dotnet build fails with:

error FS3031: The type provider 'C:\Users\Svick.nuget\packages\FSharp.Data\2.3.1\lib\portable-net45+netcore45\FSharp.Data.dll' reported an error: Assembly attribute 'TypeProviderAssemblyAttribute' refers to a designer assembly 'FSharp.Data.DesignTime' which cannot be loaded or doesn't exist. Could not load file or assembly 'FSharp.Data.DesignTime, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
warning FS3005: Referenced assembly 'C:\Users\Svick.nuget\packages\FSharp.Data\2.3.1\lib\portable-net45+netcore45\FSharp.Data.dll' has assembly level attribute 'Microsoft.FSharp.Core.CompilerServices.TypeProviderAssemblyAttribute' but no public type provider classes were found

Previously reported as https://github.com/dotnet/cli/issues/3776.

@rkeithhill
Copy link

I'm running into this very issue as well - trying to port an F# app onto .NET Core 1.0.

@ghost
Copy link

ghost commented Aug 18, 2016

Update lib to .net core for Harambe

@enricosada
Copy link
Contributor

the type providers are not supported atm in .net core.
more info in the issue discussion dotnet/fsharp#1496 (comment)

@sphvn
Copy link

sphvn commented Oct 19, 2016

Would be very keen for this.

@dsyme dsyme added the external label Nov 3, 2016
@enricosada enricosada added this to the netstandard2.0 milestone Nov 15, 2016
@TheAngryByrd
Copy link

TheAngryByrd commented Apr 12, 2017

I'd like to add, this error even comes up when TargetFramework is set to net462

<Project Sdk="FSharp.NET.Sdk;Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net462</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="Program.fs" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="FSharp.Core" Version="4.1.*" />
    <PackageReference Include="FSharp.NET.Sdk" Version="1.0.*" PrivateAssets="All" />
    <PackageReference Include="FSharp.Data" Version="*"/>
  </ItemGroup>
</Project>

@Kurren123
Copy link

Hear hear. This is stopping us moving over.

@buvinghausen
Copy link

I was about to come post what @TheAngryByrd has posted this is definitely problematic

Same error message from @svick

I can't live without the type providers and I really want to move everything over to .NET Core

@diegobfernandez
Copy link

I'm on the same boat as @TheAngryByrd. I just want to use the new format and target .NET Framework.
This is a little frustrating :/

@enricosada
Copy link
Contributor

Closing as tracked in Microsoft/visualfsharp repo, more info in dotnet/fsharp#3069

What about Type Providers and .NET Core?

In theory, Erasing Type Providers will work on .NET Core 2.0 without any changes. @dsyme and @KevinRansom will be looking at this once the bits for .NET Core 2.0 and F# are stable enough. Generative Type Providers are cut for .NET Core right now. They take a dependency on System.Reflection.Emit, which has been cut for .NET Core 2.0 and .NET Standard 2.0. It's a high priority for the team who owns that library to make it available, though, and we help motivate that work. They will not begin until after .NET Core 2.0 ships, though.

@7sharp9
Copy link

7sharp9 commented Aug 1, 2017

Cant a build for this be made with dotnetcore that simply has no TP's?

@victor-torres
Copy link

@diasbruno

@TheAngryByrd
Copy link

So if you want to get around this error now, there's a workaround dotnet/fsharp#3303

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests