Skip to content

Project NavBar not working for Shared Projects in 15.7 #3467

@amcasey

Description

@amcasey

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

Metadata

Metadata

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions