Update/Install re-adds content items if they have been modified to EmbeddedResource
Nobody has claimed this yet.
- 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.
- add a package that has content.
- open solution in VS
- change content file to EmbeddedResource in properties pane
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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