microsoft / microsoft/vscode-dotnettools

[NETSDKE2E] Moving a file to another project deletes the file

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

Nobody has claimed this yet.

area-solution bug
Dominant language
No language data
Stars
321
Forks
54
Avg merge
2d 19h
Merged PRs (30d)
2

Description

Describe the Issue

Only seems to repro if a repo is open, and the first move of the session. If you restore the file in source control, then move again, it will move properly.

Steps To Reproduce
  1. Open a repo with multiple projects, wait for load
  2. Using Solution Explorer, move a file from one project to another
  3. Dialog asks if you want to move, select yes

Actual:
The first time the file is moved, it is only deleted.

Expected Behavior

The file is moved.

Environment Information

Windows x64
VS Code: 1.106.3
C#: 2.100.11
C# DK: 1.80.7

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 at the Solution Explorer file-move flow and reproduce the first move in a repository with multiple projects using the listed Windows and extension versions. Done means the initial move transfers the file to the target project rather than only deleting it, while a restored file can still be moved again.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.