Skip to content

Add validation to test that OOB packages have no SharedFx-only references #50402

Open
@wtgodbe

Description

@wtgodbe

We had a situation in 8.0 where Microsoft.Extensions.Caching.StackExchangeRedis (which is an OOB package) added a dependency on Microsoft.AspNetCore.OutputCaching (which is SharedFx-only), which caused StackExchangeRedis to have a FrameworkReference on AspNetCore.App. This means devs using StackExchangeRedis would need to have Asp.Net installed on their machine in order to use the package, which goes against the principle of an OOB package (they should be useable by non-asp.net devs). We should add validation, maybe in ResolveReferences.targets, that prevents this from happening again, as it's a very easy mistake to make.

Metadata

Metadata

Assignees

Labels

area-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions