diff --git a/src/Microsoft.DotNet.Tools.Compiler.Native/DirectoryExtensions.cs b/src/Microsoft.DotNet.Tools.Compiler.Native/DirectoryExtensions.cs index a06aa22be..fab09bdf0 100644 --- a/src/Microsoft.DotNet.Tools.Compiler.Native/DirectoryExtensions.cs +++ b/src/Microsoft.DotNet.Tools.Compiler.Native/DirectoryExtensions.cs @@ -29,6 +29,10 @@ namespace Microsoft.DotNet.Tools.Compiler.Native Console.WriteLine(e.Message); } } + else + { + Directory.CreateDirectory(path); + } } } } diff --git a/src/Microsoft.DotNet.Tools.Compiler.Native/IntermediateCompilation/Windows/WindowsLinkStep.cs b/src/Microsoft.DotNet.Tools.Compiler.Native/IntermediateCompilation/Windows/WindowsLinkStep.cs index bbb6a6243..56a798567 100644 --- a/src/Microsoft.DotNet.Tools.Compiler.Native/IntermediateCompilation/Windows/WindowsLinkStep.cs +++ b/src/Microsoft.DotNet.Tools.Compiler.Native/IntermediateCompilation/Windows/WindowsLinkStep.cs @@ -48,8 +48,8 @@ namespace Microsoft.DotNet.Tools.Compiler.Native private static readonly Dictionary ConfigurationLinkLibMap = new Dictionary() { - { BuildConfiguration.debug , new string[] { "msvcrtd" } }, - { BuildConfiguration.release , new string[] { "msvcrt" } } + { BuildConfiguration.debug , new string[] { "msvcrtd.lib" } }, + { BuildConfiguration.release , new string[] { "msvcrt.lib" } } }; private string ArgStr { get; set; }