Publishing a Razor Class Library (or Class Library) can include extraneous static content #42374
Labels
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
feature-static-web-assets
✔️ Resolution: Answered
Resolved because the question asked by the original author has been answered.
question
Status: Resolved
Milestone
Describe the bug:
An RCL (or a plain 'class library') with a wwwroot folder that has a nuget dependency of a library with static assets duplicates the publish of those assets
Version used:
e.g. VS2022 17.3.0 Preview 2
To reproduce:
Steps to reproduce the behavior:
and the next developer could have references like
Expected behavior:
I don't expect that referencing a nuget package with static assets in an RCL will cause those assets to be published.
Actual behavior:
See point 7 above
Edit:
Additional context:
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: