dotnet / dotnet/project-system

Resource files in shared projects not showing up in Solution explorer when they have a "Link" attribute

Open
#5,925 3 comments 0 reactions 0 assignees View on GitHub
Feature-Shared-Projects Triage-Investigate
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

**Visual Studio Version**: Latest 16.6 dogfood build

**Summary**:

See https://github.com/dotnet/roslyn/blob/9c0370c35ef9a201aabd3e13153116b1f339c90a/src/Analyzers/Core/Analyzers/Analyzers.projitems#L11-L13:

```



```

NOTE: Link attribute was added to the EmbeddedResource to work around https://github.com/microsoft/msbuild/issues/5137.

**Steps to Reproduce**:

1. `git clone https://github.com/dotnet/roslyn.git`

2. `cd roslyn`

3. `git checkout 9c0370c35ef9a201aabd3e13153116b1f339c90a`

4. `restore`

5. `Roslyn.sln`

6. Expand the shared project `Analyzers.shproj` under `Features\Analyzers` folder.

**Expected Behavior**: This shared project contains an embedded resource file, which should show up in the Solution explorer:

![ExpectedSharedProjectResx](https://user-images.githubusercontent.com/10605811/75494907-262f4f80-5972-11ea-980d-9bdd3c566b88.png)

**Actual Behavior**:
Resource file in shared project is not shown in the solution explorer.
![SharedProjectResx](https://user-images.githubusercontent.com/10605811/75494571-6cd07a00-5971-11ea-9aa2-a53c300e4d56.png)

NOTE:

**User Impact**:
Bad experience working with shared projects

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.