Considering no one else has attempted an answer, I'll make one up, but keep in mind I'm not a frontend web developer.
NuGet packages with content
files do not support projects using PackageReference. SDK style projects only support PackageReference, never packages.config, and .NET Core projects only build with SDK style projects. Hence content
files don't work with .NET Core projects, including ASP.NET Core. NuGet introduced a new contentFiles
folder for PackageReference, but it works differently to content
, and I imagine it doesn't work the way you'll need it to for compiling SASS to CSS.
Given that browsers don't support SASS directly, it means you must have something compiling/transpiling the scss files into css, and that's probably a tool installed via npm. Given that Bootstrap is distributed via npm, it seems that it would be low cost for you to get bootstrap sass via npm as well. Bootstrap's download web page says
Bootstrap’s package.json contains some additional metadata under the following keys:
- sass - path to Bootstrap’s main Sass source file
- style - path to Bootstrap’s non-minified CSS that’s been precompiled using the default settings (no customization)
which is frankly meaningless to me, but at a guess maybe you should install "bootstrap@sass", or something similar. I'm sure you can figure it out quickly with a few web searches. Having said that, there are also "bootstrap-sass" and "bootstrap-scss" npm packages, so perhaps you could use one of them.