Browse Source

Merge pull request #12629 from abpframework/fix/schematic-version-warning

fix angular service schematic version warning
pull/12630/head
Yunus Emre Kalkan 4 years ago
committed by GitHub
parent
commit
f06f07e9e9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ServiceProxying/Angular/AngularServiceProxyGenerator.cs

4
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ServiceProxying/Angular/AngularServiceProxyGenerator.cs

@ -100,8 +100,8 @@ public class AngularServiceProxyGenerator : ServiceProxyGeneratorBase<AngularSer
); );
} }
var parseError = SemanticVersion.TryParse(schematicsVersion.TrimStart('~', '^', 'v'), out var semanticSchematicsVersion); var parsed = SemanticVersion.TryParse(schematicsVersion.TrimStart('~', '^', 'v'), out var semanticSchematicsVersion);
if (parseError) if (!parsed)
{ {
Logger.LogWarning("Couldn't determinate version of \"@abp/ng.schematics\" package."); Logger.LogWarning("Couldn't determinate version of \"@abp/ng.schematics\" package.");
return; return;

Loading…
Cancel
Save