|
|
|
@ -99,17 +99,14 @@ namespace Volo.Abp.AspNetCore.VirtualFileSystem |
|
|
|
_virtualFileProvider |
|
|
|
}; |
|
|
|
|
|
|
|
if (_hostingEnvironment.IsDevelopment() && |
|
|
|
if (_hostingEnvironment.IsDevelopment() && |
|
|
|
_hostingEnvironment.WebRootFileProvider is CompositeFileProvider compositeFileProvider) |
|
|
|
{ |
|
|
|
var staticWebAssetsFileProvider = compositeFileProvider |
|
|
|
var staticWebAssetsFileProviders = compositeFileProvider |
|
|
|
.FileProviders |
|
|
|
.FirstOrDefault(f => f.GetType().Name.Equals("StaticWebAssetsFileProvider")); |
|
|
|
.Where(f => f.GetType().Name.Equals("StaticWebAssetsFileProvider")).ToList(); |
|
|
|
|
|
|
|
if (staticWebAssetsFileProvider != null) |
|
|
|
{ |
|
|
|
fileProviders.Add(staticWebAssetsFileProvider); |
|
|
|
} |
|
|
|
fileProviders.AddRange(staticWebAssetsFileProviders); |
|
|
|
} |
|
|
|
|
|
|
|
return new CompositeFileProvider( |
|
|
|
@ -127,4 +124,4 @@ namespace Volo.Abp.AspNetCore.VirtualFileSystem |
|
|
|
return Options.AllowedExtraWebContentFileExtensions.Any(e => path.EndsWith(e, StringComparison.OrdinalIgnoreCase)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|