This repository was archived by the owner on Jan 8, 2019. It is now read-only.
  
  
  - 
                Notifications
    
You must be signed in to change notification settings  - Fork 26
 
    This repository was archived by the owner on Jan 8, 2019. It is now read-only.
  
  
Cannot build when referencing 'FSharp.Data' in Arch Linux #123
Copy link
Copy link
Open
Description
How to reproduce:
Prepare
 dotnet new console -lang F#
 dotnet add package FSharp.Data -v 3.0.0
Command that causes the problem
dotnet build
Expected behavior
Build successfully
What happens
Microsoft (R) Build Engine version 15.8.169.62826 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
  Restoring packages for /home/andre/Documents/Projects/MyProject/MyProject.fsproj...
  Restore completed in 201.84 ms for /home/andre/Documents/Projects/MyProject/MyProject.fsproj.
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]
Build FAILED.
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]
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]
    1 Warning(s)
    1 Error(s)
Time Elapsed 00:00:02.68
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]
Additional comments
I've found some related issues in dotnet/cli#3776 and netcorecli-fsc/#16, both created by @svick. It seems it should be working by now.
Metadata
Metadata
Assignees
Labels
No labels