From de10e0dd54de75bc2e071d0c827e2bc6cd0ef865 Mon Sep 17 00:00:00 2001 From: Mikkel Nylander Bundgaard Date: Fri, 5 May 2017 23:07:46 +0200 Subject: [PATCH] Fail gracefully when multiple projects exist Fixes #6267 --- .../CommandResolution/ProjectFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.DotNet.Cli.Utils/CommandResolution/ProjectFactory.cs b/src/Microsoft.DotNet.Cli.Utils/CommandResolution/ProjectFactory.cs index 73e1971a3..31dd409ac 100644 --- a/src/Microsoft.DotNet.Cli.Utils/CommandResolution/ProjectFactory.cs +++ b/src/Microsoft.DotNet.Cli.Utils/CommandResolution/ProjectFactory.cs @@ -80,7 +80,7 @@ namespace Microsoft.DotNet.Cli.Utils } else if (projectFiles.Count() > 1) { - throw new InvalidOperationException(string.Format( + throw new GracefulException(string.Format( LocalizableStrings.MultipleProjectFilesFound, projectDirectory)); }