Skip to content

Fix VS complaining about missing projects in slns - #68488

Merged
ViktorHofer merged 9 commits into
dotnet:mainfrom
ViktorHofer:ExtensionsAutoReferences
Apr 25, 2022
Merged

ViktorHofer merged 9 commits into
dotnet:mainfrom
ViktorHofer:ExtensionsAutoReferences

Conversation

@ViktorHofer

@ViktorHofer ViktorHofer commented Apr 25, 2022 •

Copy link
Copy Markdown
Member

Contributes to #65552

These changes contribute to fixing the broken Visual Studio experience when interacting with out-of-band projects, like Microsoft.Extensions.* in solution files.

The changes are grouped by commits:

  1. Relevant infrastructure changes to avoid references to inbox only libraries.
  2. Update Microsoft.Extensions.* ref projects
  3. Update Microsoft.Extensions.* src projects (just cleaning-up the property that doesn't need to be set anymore)
  4. Update other out-of-band projects that are referenced by Microsoft.Extensions* projects. I plan to submit an extra PR for the remaining ones that aren't part of the Microsoft.Extensions.* graph as I wanted to keep that out of this PR to keep the change minimal.
  5. Update two source files for which an analyzer complained about the missing usage of Span now that System.Memory.dll reaches the compiler.

cc @ericstj as we discussed this in our 1:1 last Thursday.

@ghost

ghost commented Apr 25, 2022

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

Issue Details

Contributes to #65552

These changes fix the broken Visual Studio experience when interacting with out-of-band projects, like Microsoft.Extensions.* in solution files.

The changes are grouped by commits:

  1. Relevant infrastructure changes to avoid references to inbox only libraries.
  2. Update Microsoft.Extensions.* ref projects
  3. Update Microsoft.Extensions.* src projects (just cleaning-up the property that doesn't need to be set anymore)
  4. Update other out-of-band projects that are referenced by Microsoft.Extensions* projects. I plan to submit an extra PR for the remaining ones that aren't part of the Microsoft.Extensions.* graph as I wanted to keep that out of this PR to keep the change minimal.
  5. Update two source files for which an analyzer complained about the missing usage of Span now that System.Memory.dll reaches the compiler.

cc @ericstj as we discussed this in our 1:1 last Thursday.

Author: ViktorHofer
Assignees: ViktorHofer
Labels:

area-Infrastructure

Milestone: -

Comment thread eng/targetingpacks.targets Resolved
Comment thread eng/targetingpacks.targets Resolved

@eerhardt eerhardt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for this cleanup!

@ViktorHofer
ViktorHofer merged commit 09dc0fe into dotnet:main Apr 25, 2022
@ViktorHofer
ViktorHofer deleted the ExtensionsAutoReferences branch April 25, 2022 20:06

@ericstj ericstj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. Seems like we should have docs somewhere that describe how to maintain references in project files based on various criteria. Do we need to update those?

@ViktorHofer

Copy link
Copy Markdown
Member Author

We have project docs which are probably the right place to encode rules for references. I will submit a PR to update them.

@ghost ghost locked as resolved and limited conversation to collaborators May 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants