Create a solution containing a shared project and two class libraries that reference it. Give each class library a distinct conditional compilation symbol and reference both in #ifs in the shared project. (Or open the attached repro solution.)
Expected: In the shared project, selecting a class library in the navbar activates the corresponding #if.
Actual: #if activation does not change and moving focus back to the text area causes the navbar to revert.
Note: this works correctly in 15.6.1.
Note: This works correctly with linked files - there's a branch here: https://github.com/dotnet/roslyn/blob/ef41d39c55a63d9464cc4eb5344be4d8df6408d8/src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioWorkspaceImpl.cs#L924
SharedProject1.zip
Create a solution containing a shared project and two class libraries that reference it. Give each class library a distinct conditional compilation symbol and reference both in
#ifs in the shared project. (Or open the attached repro solution.)Expected: In the shared project, selecting a class library in the navbar activates the corresponding
#if.Actual:
#ifactivation does not change and moving focus back to the text area causes the navbar to revert.Note: this works correctly in 15.6.1.
Note: This works correctly with linked files - there's a branch here: https://github.com/dotnet/roslyn/blob/ef41d39c55a63d9464cc4eb5344be4d8df6408d8/src/VisualStudio/Core/Def/Implementation/ProjectSystem/VisualStudioWorkspaceImpl.cs#L924
SharedProject1.zip