Fail gracefully when multiple projects exist

Fixes #6267
This commit is contained in:
Mikkel Nylander Bundgaard 2017-05-05 23:07:46 +02:00
parent 85b6b74bd5
commit de10e0dd54

View file

@ -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));
}