FileNotFoundException: No files found matching "/scripts/list.js" exist in "D:\Dev\TestProject\wwwroot\"
WebOptimizer.Asset.ExpandGlobs(IAsset asset, IHostingEnvironment env)
Expected result: Processed with no errors. File should be searched in project root.
Root cause: asset.Items collection is not copied into newly created asset.
PS: it works only if script is exlicitly specified without using globbing pattern.
Steps: Add files via globing pattern in
services.AddWebOptimizer
and specify custom file provider viaUseFileProvider/UseContentRoot
:Actual result: An exception is thrown
Expected result: Processed with no errors. File should be searched in project root.
Root cause:
asset.Items
collection is not copied into newly created asset.PS: it works only if script is exlicitly specified without using globbing pattern.