Cannot delete a selection of project items containing a mix of links and actual files
Microsoft Visual Studio Enterprise 2017 Preview 7 (15.3.0-pre.7.0+26730.0)
Repro steps:
- Create a new class library project. Class1.cs file will be created automatically.
- Add an existing file into the project as a link (Add as Link button in the Open File dialog box)
- Select both items in Solution Explorer (Class1.cs and the newly added linked item).
- Press Delete key on the keyboard: nothing happens.
- Right click on the selected items: there is no Delete/Remove command in the popup menu.
Thanks @mizbrodin, I've filed this against a team internally that owns this code.
Microsofties, internal link: https://devdiv.visualstudio.com/DevDiv/_workItems?id=487921&fullScreen=false&_a=edit.
Closing in lieu of the above bug.
it is the side effect that VS uses "remove" command for linked items because we don't delete physical files, and "delete" command for normal items. When mixed items are selected, none of them can apply to all items. The behavior applies to traditional projects as well.
We will consider it in a future release..