Browse Source

Use Exists property to determine if the file exists.

Resolve #3341
pull/3347/head
maliming 7 years ago
parent
commit
a8d4e7c229
  1. 2
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bundling/Volo/Abp/AspNetCore/Mvc/UI/Bundling/TagHelpers/AbpTagHelperResourceService.cs

2
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)
{
var file = WebContentFileProvider.GetFileInfo(bundleFile);
if (file == null)
if (!file.Exists)
{
throw new AbpException($"Could not find the bundle file from {nameof(IWebContentFileProvider)}");
}

Loading…
Cancel
Save