-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
dotnet/fsharp
#18000Labels
Description
The .NET installation comes with a bundled FSharp.Core package that lives at: ./sdk/<version>/FSharp/library-packs/FSharp.Core.<version>.nupkg.
This package is NOT found when a user specifies RestoreAdditionalProjectSources.
This behavior results in restore errors with source-built SDKs (for versions that are not yet published on nuget.org), and causes the SDK to use binary assets from nuget.org instead of source-built assets bundled with the SDK.
Reproducer (with source-built SDK for upcoming 9.0.100):
rm -rf ~/.nuget
dotnet new console --no-restore -o console --language f#
cd console
dotnet restore console.fsproj /p:RestoreAdditionalProjectSources=file:///tmp
Error:
/tmp/console/console.fsproj : error NU1102:
Unable to find package FSharp.Core with version (>= 9.0.100)
- Found 99 version(s) in nuget.org [ Nearest version: 9.0.100-beta.24466.6 ]
- Found 0 version(s) in /tmp
Expected behavior:
The library-packs folder under /sdk/<version>/FSharp/library-packs/ should be used also when RestoreAdditionalProjectSources is set.
cc @baronfel @MichaelSimons @omajid @Swapnali911 @Vishwanatha-HD