Browse Source
fix(CLI): directory separator for bundle command is not os specific
pull/10992/head
berkansasmaz
4 years ago
No known key found for this signature in database
GPG Key ID: 884D815C3F32BE00
1 changed files with
1 additions and
1 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlerBase.cs
|
|
|
@ -85,7 +85,7 @@ namespace Volo.Abp.Cli.Bundling |
|
|
|
{ |
|
|
|
var pathFragments = definition.Source.Split('/').ToList(); |
|
|
|
var basePath = $"{pathFragments[0]}/{pathFragments[1]}"; |
|
|
|
var path = contentRoots.FirstOrDefault(x => x.IndexOf($"\\{pathFragments[1]}\\", StringComparison.OrdinalIgnoreCase) > 0); |
|
|
|
var path = contentRoots.FirstOrDefault(x => x.IndexOf(Path.DirectorySeparatorChar + pathFragments[1] + Path.DirectorySeparatorChar, StringComparison.OrdinalIgnoreCase) > 0); |
|
|
|
if (path == null) |
|
|
|
{ |
|
|
|
throw new AbpException("Not found: " + definition.Source); |
|
|
|
|