From 155b5221af65c742a45638c5869094b73673edcc Mon Sep 17 00:00:00 2001 From: Gaurav Khanna Date: Sun, 20 Dec 2015 07:59:09 -0800 Subject: [PATCH] Fix bug to correctly redefine ILCSdkPath if ILCPath is overridden but ILCSDKPath is not. --- src/Microsoft.DotNet.Tools.Compiler.Native/ArgValues.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Microsoft.DotNet.Tools.Compiler.Native/ArgValues.cs b/src/Microsoft.DotNet.Tools.Compiler.Native/ArgValues.cs index 913eb42d6..cb1ee9283 100644 --- a/src/Microsoft.DotNet.Tools.Compiler.Native/ArgValues.cs +++ b/src/Microsoft.DotNet.Tools.Compiler.Native/ArgValues.cs @@ -56,6 +56,12 @@ namespace Microsoft.DotNet.Tools.Compiler.Native if (!string.IsNullOrEmpty(IlcPath)) { config.IlcPath = IlcPath; + + // If ILCSdkPath is not specified, then default it to be the same as the overridden ILCPath + if (string.IsNullOrEmpty(IlcSdkPath)) + { + IlcSdkPath = IlcPath; + } } if (!string.IsNullOrEmpty(IlcSdkPath))