fsprojects / fsprojects/Paket

Update/Install re-adds content items if they have been modified to EmbeddedResource

Open
#1,584 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

If you have a package with content, and you want that content then to become an embedded resource (you switch it in VS), a paket update or paket install will add the file a second time to the project (i.e. it appears twice in VS).

Just wondering if this is a bug, or if there is some paket.dependencies jigpokery I can do to stop this.

Repro steps

As described above.

  1. add a package that has content.
  2. open solution in VS
  3. change content file to EmbeddedResource in properties pane
  4. run paket update
Expected behavior

I'd expect there to be only 1 file, or there to be a way in paket.dependencies to ensure that the content is embeded, but given that you may only want to do this to certain files, maybe not adding it again would be preferable.

Actual behavior

file appears twice in the project.

Known workarounds

unknown

Related information
  • Operating system = Windows
  • Branch = Paket version 2.58.6.0
  • .NET Runtime 4.5

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 reproducing the issue using the listed Visual Studio steps with Paket 2.58.6.0, then trace the project update/install handling for content and EmbeddedResource items. Done means running paket update or paket install leaves only one project entry for the file, without requiring an unspecified workaround.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.