fsprojects / fsprojects/Paket

scripts folder items all duplicated after convert-from-nuget

Open
#3,397 3 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

I did a convert from nuget. My javascript packages were all duplicated. Unfortunately this is an old project and I have about 20 of these JS packages.

Repro steps

Please provide the steps required to reproduce the problem

  1. Create an Web .cspoj.
  2. Using nuget add bootstrap-dialog. a bootstrap-dialog.js will be placed in Scripts folder.
  3. Convert from nuget to paket.

If possible then please create a git repository with a repro sample or attach a zip to the issue.

Expected behavior

There would be a single Scripts/bootstrap-dialog.js file on the disk, and a single reference to it in VS.

Actual behavior

There is a single file on disk, but the VS csproj has two references to it. I confrmed by looking within the csproj file.

Known workarounds

Manually edit the XML to remove the 2nd references. Unfortunately, deleting through VS deletes the file, so I can't do that.

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 convert-from-nuget flow for a Web .cspoj project containing Scripts/bootstrap-dialog.js. Inspect how the conversion updates the VS csproj references, using the reported XML duplication as the reproduction case. Done means the file remains on disk and the csproj contains only one reference to it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.