fsprojects / fsprojects/Paket

how to force the target framework to be used for a nuget dependency?

Open
#2,180 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

We have to work with Hyak.Common package, version 1.1.1 which targets three frameworks: ".NETFramework4.5", ".NETStandard1.1" and ".NETStandard1.5". I figured we specifically need to import ".NETStandard1.1" flavor, so in paket.dependencies I expressed it as

nuget Hyak.Common framework: netstandard11

Still for some reason Paket still takes target framework ".NETFramework4.5" and we get wrong binaries and wrong dependencies. What is the right way to enforce target framework ".NETStandard1.1" for particular package?

Paket 3.36.1

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 with the paket.dependencies entry shown in the issue and reproduce it using Hyak.Common 1.1.1 with Paket 3.36.1. Read the dependency framework-selection documentation and inspect the resulting resolved dependencies and binaries. Done means the supported way to select the .NETStandard1.1 target is clearly documented or the issue is answered.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, tooling
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.