fsprojects / fsprojects/Paket

Latest alpha 042 doesn't seem to recognise net5.0

Open
#3,915 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

Description

Description

6.0.0-alpha042 doesn't recognise net5.0 specification.

$  dotnet paket --version
Paket version 6.0.0-alpha042


$  dotnet --info
.NET SDK (reflecting any global.json):
 Version:   5.0.100-rc.1.20452.10
 Commit:    473d1b592e

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  20.04
 OS Platform: Linux
 RID:         ubuntu.20.04-x64
 Base Path:   /snap/dotnet-sdk/100/sdk/5.0.100-rc.1.20452.10/

Host (useful for support):
  Version: 5.0.0-rc.1.20451.14
  Commit:  38017c3935

.NET SDKs installed:
  5.0.100-rc.1.20452.10 [/snap/dotnet-sdk/100/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 5.0.0-rc.1.20451.17 [/snap/dotnet-sdk/100/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 5.0.0-rc.1.20451.14 [/snap/dotnet-sdk/100/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

Repro steps

Please provide the steps required to reproduce the problem

  1. Step A

$  head paket.*
==> paket.dependencies <==
source https://api.nuget.org/v3/index.json
framework: net5.0
storage: none

nuget Fable.Remoting.Giraffe
nuget Saturn
nuget Expecto

nuget Fable.Core
nuget Fable.Elmish

==> paket.lock <==
STORAGE: NONE
RESTRICTION: == net5.0
NUGET
  remote: https://api.nuget.org/v3/index.json
    Expecto (9.0.2)
      FSharp.Core (>= 4.6)
      Mono.Cecil (>= 0.11.2)
    Fable.Browser.Blob (1.1)
      Fable.Core (>= 3.0)
      FSharp.Core (>= 4.6.2)

  1. Step B

$ dotnet fake build --target run

Expected behavior

net5.0 specification recognised successfully, as per release notes

Actual behavior

$  dotnet fake build --target run
Performance:
 - Cli parsing: 237 milliseconds
 - Packages: 67 milliseconds
 - Script analyzing: 171 milliseconds
 - Runtime: 574 milliseconds
There was a problem while setting up the environment:
-> Error in paket.dependencies line 2
     Could not parse framework 'net5.0'. Try to update or install again or report a paket bug.
Hint: If you just upgraded the fake-runner you can try to remove the .fake directory and try again.

Known workarounds

None that I know of

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the parse failure using the framework: net5.0 entry in paket.dependencies and the dotnet fake build --target run command. Start by tracing Paket's framework parsing from that dependency declaration and compare it with the net5.0 release-note expectation. Done means the command accepts net5.0 without the framework parse error.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.