From ec9e1434f4941308c9d483645f397db32fc7ecf7 Mon Sep 17 00:00:00 2001 From: Isaac Llopis Date: Mon, 29 Jun 2020 07:55:08 +0100 Subject: [PATCH] Allowed name to be null in returned Project --- Source/Boxed.DotnetNewTest/TempDirectoryExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Boxed.DotnetNewTest/TempDirectoryExtensions.cs b/Source/Boxed.DotnetNewTest/TempDirectoryExtensions.cs index 161c0150..d3e27522 100644 --- a/Source/Boxed.DotnetNewTest/TempDirectoryExtensions.cs +++ b/Source/Boxed.DotnetNewTest/TempDirectoryExtensions.cs @@ -62,7 +62,7 @@ await ProcessExtensions .ConfigureAwait(false); } - var projectDirectoryPath = Path.Combine(tempDirectory.DirectoryPath, name); + var projectDirectoryPath = name == null ? tempDirectory.DirectoryPath : Path.Combine(tempDirectory.DirectoryPath, name); var publishDirectoryPath = Path.Combine(projectDirectoryPath, "Publish"); return new Project(name, projectDirectoryPath, publishDirectoryPath); }