dotnet / dotnet/project-system

VS can not close a tab for a file which does not exist

Open
#8,401 1 comment 0 reactions 0 assignees View on GitHub
Triage-Approved
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

_This issue has a corresponding [ticket on Developer Community](https://developercommunity.visualstudio.com/t/VS-can-not-close-a-tab-for-a-file-which-/10118248). Please vote and comment there to make sure your voice is heard._

---

1) Open a Resources.resx file in a .NET solution
2) Close VS
3) Delete that file (or: move that project to another directory and adjust the project path in the sln file)
4) Open VS
5) It will try to open that file in a tab
6) It shows an error in that tab (file not found)
7) Try to close that tab (Ctrl+F4 / clicking X / middle clicking the tab) - not possible. A popup appears:

> The operation could not be completed. Falscher Parameter.

It is not possible to close that tab.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.