Open
Description
Functional impact
If libraries.library
is specified without packages.files
, it is expected all files and subdirectories are copied to the destination
. Currently it is not the case, as only files are copied. As a result, all subdirectories of a library have to be listed as library in libman.json
for them to be copied.
Minimal repro steps
Prerequisites: .NET Core SDK, Node.js
- Create a ASP.NET Core Razor page project
- Install Node.js
- Run
npm install bootstrap
- Run
dotnet add package Microsoft.Web.LibraryManager.Build
- Create a file named
libman.json
with the content below:
{
"version": "1.0",
"libraries": [
{
"provider": "filesystem",
"library": "node_modules/bootstrap/dist",
"destination": "wwwroot/lib/bootstrap"
}
]
}
- Run
dotnet build
- Check the content inside wwwroot/lib/bootstrap
Expected result
All files and subdirectories under node_modules/bootstrap/dist are copied to wwwroot/lib/bootstrap
Actual result
Only the .DS_Store file, which is under node_modules/bootstrap/dist, is coped