Item nested under wrong parent when the extension rule is enabled

#94 · open · 0 comments

View on GitHub ↗

icnocop

### Installed product versions - Visual Studio 2017 Enterprise 15.9.17 - This extension: 2.6.85 ### Description When trying to nest a file with the same name as existing files in the solution but in different folders, the item is nested under the wrong parent. ### Steps to recreate 1. Download and extract [ClassLibrary1.zip](https://github.com/madskristensen/FileNesting/files/3745445/ClassLibrary1.zip) 2. Open ClassLibrary1.sln in Visual Studio 2017 3. Right-click "ClassLibrary1" in "Solution Explorer" and select File Nesting > Enable automatic nesting. 4. Set Tools > Options... > File Nesting > Nesting Rules > Enable extension rule > True 5. Click on "Show All Files" in "Solution Explorer" 6. Right-click "Folder1\Feature1.feature.cs" > Include In Project 7. Right-click "Folder2\Feature1.feature.cs" > Include In Project ### Current behavior "Folder2\Feature1.feature.cs" is nested under "Folder1\Feature1.feature" ### Expected behavior I expected "Folder2\Feature1.feature.cs" to be nested under "Folder2\Feature1.feature"

Comments