fsprojects / fsprojects/Paket

Add '.NETFramework3.5-CompactFramework' and `net35-cf` framework monikers

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

Nobody has claimed this yet.

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

Description

Description

I'm experiencing an issue with a the Antrl.Runtime package but it seems to only happen in a specific repository. When you run paket restore and the package is not in the cache you get the message:
image

This message is treated as error whereas I would expect it to be a warning. Because this is an error it is causing our CI builds to fail.

Repro steps

Please provide the steps required to reproduce the problem

  1. run paket clear-cache --clear-local
  2. run paket restore

result:
image

I created a small repository to reproduce the issue, but inside that repo paket does behave as expected:
image

Expected behavior

Could not detect any platforms from '.NETFramework3.5-CompactFramework' in Antlr4.Runtime 4.6.4, please tell the package authors
Is logged as a warning to the console

Actual behavior

Could not detect any platforms from '.NETFramework3.5-CompactFramework' in Antlr4.Runtime 4.6.4, please tell the package authors
Is logged as an error to the console

Known workarounds

When the package is in the NuGet package cache, meaning paket does not have to download it, the message does not show. However, since our CI servers are automatically cleaned on a regular basis to save disk space this errors comes back on our servers.

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

Start by tracing the framework-moniker detection and the paket restore path after paket clear-cache --clear-local. Reproduce the cache-miss behavior with the reported .NETFramework3.5-CompactFramework and net35-cf monikers, then verify that the monikers are recognized and the message is treated as a warning rather than an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
build-system, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.