Browse Source

Update CSharpServiceProxyGenerator.cs

pull/10520/head
maliming 5 years ago
parent
commit
ae832a92a3
No known key found for this signature in database GPG Key ID: 96224957E51C89E
  1. 5
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ServiceProxying/CSharp/CSharpServiceProxyGenerator.cs

5
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ServiceProxying/CSharp/CSharpServiceProxyGenerator.cs

@ -395,11 +395,10 @@ namespace Volo.Abp.Cli.ServiceProxying.CSharp
throw new CliUsageException("Specified directory does not exist."); throw new CliUsageException("Specified directory does not exist.");
} }
var projectFiles = Directory.GetFiles(directory, "*HttpApi.Client.csproj"); var projectFiles = Directory.GetFiles(directory, "*.csproj");
if (!projectFiles.Any()) if (!projectFiles.Any())
{ {
throw new CliUsageException( throw new CliUsageException("No project file(csproj) found in the directory.");
"No project file found in the directory. The working directory must have a HttpApi.Client project file.");
} }
} }

Loading…
Cancel
Save