fsprojects / FSharp.TypeProviders.SDK

The SDK for creating F# type providers
https://fsprojects.github.io/FSharp.TypeProviders.SDK/
MIT License
298 stars 94 forks source link

Simple RdfProvider breaks on System.Private.CoreLib #391

Open bdkoepke opened 1 year ago

bdkoepke commented 1 year ago

Description

DesignTime the RdfProvider I built here (https://github.com/bdkoepke/RdfProvider) resolves the types, but then fails with the following message during compile time for the tests

error FS1108: The type 'Int32' is required here and is unavailable. You must add a reference to assembly 'System.Private.CoreLib, Version=6.0.0.0, Cultur e=neutral, PublicKeyToken=7cec85d7bea7798e'

Repro steps

git clone https://github.com/bdkoepke/RdfProvider.git cd RdfProvider dotnet build RdfProvider.sln dotnet build RdfProvider.TestsAndDocs.sln

Expected behavior

Builds and runs the tests.

Actual behavior

Crashes with the following error:

C:\Users\brandon\src\RdfProvider\tests\RdfProvider.Tests\RdfProvider.Tests.fs(8,21): error FS1108: The type 'Int32' is required here and is unavailable. You must add a reference to assembly 'System.Private.CoreLib, Version=6.0.0.0, Cultur e=neutral, PublicKeyToken=7cec85d7bea7798e'. [C:\Users\brandon\src\RdfProvider\tests\RdfProvider.Tests\RdfProvider.Test s.fsproj]

Known workarounds

None

Related information