Add validation to test that OOB packages have no SharedFx-only references #50402
Labels
area-infrastructure
Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Milestone
We had a situation in 8.0 where
Microsoft.Extensions.Caching.StackExchangeRedis
(which is an OOB package) added a dependency onMicrosoft.AspNetCore.OutputCaching
(which is SharedFx-only), which causedStackExchangeRedis
to have a FrameworkReference on AspNetCore.App. This means devs usingStackExchangeRedis
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 inResolveReferences.targets
, that prevents this from happening again, as it's a very easy mistake to make.The text was updated successfully, but these errors were encountered: