fsprojects / fsprojects/Paket

generate-load-script required #r are not generated

Open
#3,287 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

#r directives are not added for some packages

Repro steps

paket.dependencies

source https://www.nuget.org/api/v2
framework: >= net461
nuget Microsoft.Extensions.Logging

.paket\paket.exe init
.paket\paket.exe install
cd .paket\load
..\paket.exe generate-load-scripts

Expected behavior

Microsoft.Extensions.Logging.fsx
Should contains reference to Microsoft.Extensions.Logging.dll

Actual behavior

Only #load directives for dependencies included

#load "Microsoft.Extensions.Configuration.Binder.fsx" 
#load "Microsoft.Extensions.Options.fsx" 
Known workarounds

Add #r directives in application script

Example

TespPaketLoadScript.zip

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 issue with the shown paket.dependencies and the generate-load-scripts command, then inspect the generated .paket/load/Microsoft.Extensions.Logging.fsx file. Compare its directives with the expected Microsoft.Extensions.Logging.dll reference; done means required #r directives are generated while dependency #load directives remain present.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
cli
Issue type
Bug
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.