FS#60718 - [dotnet-host] Cannot build when referencing 'FSharp.Data'
Attached to Project:
Community Packages
Opened by Sebastian Schloßer (Sebastian256) - Tuesday, 06 November 2018, 18:42 GMT
Last edited by Maxime Gauduin (Alucryd) - Monday, 03 February 2020, 17:12 GMT
Opened by Sebastian Schloßer (Sebastian256) - Tuesday, 06 November 2018, 18:42 GMT
Last edited by Maxime Gauduin (Alucryd) - Monday, 03 February 2020, 17:12 GMT
|
Details
I tried to build a small F# project that makes use of
FSharp.Data.
dotnet build fails with the following error: ``` error FS3031 : The type provider '~/.nuget/packages/fsharp.data/3.0.0/lib/netstandard2.0/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.Core, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. [/path/to/foo.fsproj] FSC : warning FS3005: Referenced assembly '~/.nuget/packages/fsharp.data/3.0.0/lib/netstandard2.0/FSharp.Data.dll' has assembly level attribute 'Microsoft.FSharp.Core.CompilerServices.TypeProviderAssemblyAttribute' but no public type provider classes were found [/path/to/foo.fsproj] The build failed. Please fix the build errors and run again. ``` However, the same project compiles fine on other Linux distributions and using the official fsharp:dotnet docker container. Digging around I found a bug on GitHub (reported by another Arch user) containing minimal steps to reproduce the problem: https://github.com/dotnet/netcorecli-fsc/issues/123 |
This task depends upon
Closed by Maxime Gauduin (Alucryd)
Monday, 03 February 2020, 17:12 GMT
Reason for closing: Fixed
Additional comments about closing: 3.1.0.sdk100-2
Monday, 03 February 2020, 17:12 GMT
Reason for closing: Fixed
Additional comments about closing: 3.1.0.sdk100-2
STEPS TO REPRODUCE:
--------------------------------------------
dotnet new console -lang F#
dotnet add package FSharp.Data -v 3.0.0
dotnet build
--------------------------------------------
ERROR:
--------------------------------------------
error FS3031 : The type provider '/home/andre/.nuget/packages/fsharp.data/3.0.0/lib/netstandard2.0/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.Core, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. [/home/andre/Documents/Projects/MyProject/MyProject.fsproj]
FSC : warning FS3005: Referenced assembly '/home/andre/.nuget/packages/fsharp.data/3.0.0/lib/netstandard2.0/FSharp.Data.dll' has assembly level attribute 'Microsoft.FSharp.Core.CompilerServices.TypeProviderAssemblyAttribute' but no public type provider classes were found [/home/andre/Documents/Projects/MyProject/MyProject.fsproj]
--------------------------------------------
ENVIRONMENT:
--------------------------------------------
$ uname -a
Linux AndreBook 4.18.9-arch1-1-ARCH #1 SMP PREEMPT Wed Sep 19 21:19:17 UTC 2018 x86_64 GNU/Linux
$ dotnet --list-sdks
2.1.403 [/opt/dotnet/sdk]
$ dotnet --list-runtimes
Microsoft.NETCore.App 2.1.5 [/opt/dotnet/shared/Microsoft.NETCore.App]
--------------------------------------------
Let's wait for Microsoft to chime in on github, all those it works on "distro X" or on "cloud z" comments over there aren't exactly helpful as these are probably all using binary blobs...