Merge pull request #10520 from abpframework/maliming/CSharpServiceProxyGenerator

Update CSharpServiceProxyGenerator.cs
pull/10536/head
liangshiwei 4 years ago committed by GitHub
commit 2e75ae1390
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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