Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run F# type providers using .Net Core SDK Preview2? #6571

Closed
svick opened this issue Jul 4, 2016 · 6 comments
Closed

How to run F# type providers using .Net Core SDK Preview2? #6571

svick opened this issue Jul 4, 2016 · 6 comments

Comments

@svick
Copy link
Contributor

svick commented Jul 4, 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

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0-preview2-003121)

Product Information:
 Version:            1.0.0-preview2-003121
 Commit SHA-1 hash:  1e9d529bc5

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.10586
 OS Platform: Windows
 RID:         win10-x64

I have also tried it with:

.NET Command Line Tools (1.0.0-preview3-003171)

Product Information:
 Version:            1.0.0-preview3-003171
 Commit SHA-1 hash:  da57475105

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.10586
 OS Platform: Windows
 RID:         win10-x64

Originally reported on SO.

@blackdwarf
Copy link

I thought you are supposed to use the F# compiler for all things F#?

/cc @cartermp @enricosada

@svick
Copy link
Contributor Author

svick commented Jul 21, 2016

@blackdwarf I don't understand. Are you saying I'm doing something wrong in my Steps to reproduce? Or that I should report this at Microsoft/visualfsharp? Or something else?

@blackdwarf
Copy link

@svick I don't know, that's why I asked. I assumed that the F# compiler is a tool, right? dotnet-compile-fsc?

@enricosada
Copy link
Contributor

enricosada commented Jul 21, 2016

@svick the FSharp.Data doesnt support .net core (netstandard1.6) yet. Btw good bug report, thx

You can see in this checklist to where report bugs about f# and .net core: https://github.com/dotnet/netcorecli-fsc/wiki/FAQ#where-to-report-bugs

Or open it in https://github.com/dotnet/netcorecli-fsc , otherwise i'll move this one, np

thx @blackdwarf for ping

@svick
Copy link
Contributor Author

svick commented Jul 22, 2016

@enricosada Moved as dotnet/netcorecli-fsc#16.

@svick svick closed this as completed Jul 22, 2016
@enricosada
Copy link
Contributor

thx @svick !

@msftgits msftgits transferred this issue from dotnet/cli Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants