From 873bb31cfa2fb2d87a3372ff8ab060c93c0f0e5e Mon Sep 17 00:00:00 2001 From: Krzysztof Wicher Date: Wed, 22 Feb 2017 10:52:23 -0800 Subject: [PATCH] Move CommandCreationException to root --- src/dotnet/CommandCreationException.cs | 16 ++++++++++++++++ src/dotnet/commands/dotnet-build/Program.cs | 10 ---------- 2 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 src/dotnet/CommandCreationException.cs diff --git a/src/dotnet/CommandCreationException.cs b/src/dotnet/CommandCreationException.cs new file mode 100644 index 000000000..2e437dfbb --- /dev/null +++ b/src/dotnet/CommandCreationException.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Microsoft.DotNet.Cli +{ + internal class CommandCreationException : Exception + { + public int ExitCode { get; private set; } + + public CommandCreationException(int exitCode) + { + ExitCode = exitCode; + } + } +} diff --git a/src/dotnet/commands/dotnet-build/Program.cs b/src/dotnet/commands/dotnet-build/Program.cs index b29348757..abd9b2675 100644 --- a/src/dotnet/commands/dotnet-build/Program.cs +++ b/src/dotnet/commands/dotnet-build/Program.cs @@ -142,15 +142,5 @@ namespace Microsoft.DotNet.Tools.Build { return GetProcessStartInfo().Execute(); } - - private class CommandCreationException : Exception - { - public int ExitCode { get; private set; } - - public CommandCreationException(int exitCode) - { - ExitCode = exitCode; - } - } } }