Browse Source
Merge pull request #3347 from abpframework/maliming/patch-4
Use Exists property to determine if the file exists.
pull/3475/head
Halil İbrahim Kalkan
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bundling/Volo/Abp/AspNetCore/Mvc/UI/Bundling/TagHelpers/AbpTagHelperResourceService.cs
|
|
@ -63,7 +63,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers |
|
|
foreach (var bundleFile in bundleFiles) |
|
|
foreach (var bundleFile in bundleFiles) |
|
|
{ |
|
|
{ |
|
|
var file = WebContentFileProvider.GetFileInfo(bundleFile); |
|
|
var file = WebContentFileProvider.GetFileInfo(bundleFile); |
|
|
if (file == null) |
|
|
if (!file.Exists) |
|
|
{ |
|
|
{ |
|
|
throw new AbpException($"Could not find the bundle file from {nameof(IWebContentFileProvider)}"); |
|
|
throw new AbpException($"Could not find the bundle file from {nameof(IWebContentFileProvider)}"); |
|
|
} |
|
|
} |
|
|
|