Skip to content

Commit f1f0abd

Browse files
committed
delete template files
1 parent 8f60112 commit f1f0abd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/FlubuCore/Commanding/Internal/InternalCommandExecutor.New.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ internal async Task DownloadAndPrepareProject(string templateUri)
161161
var tmp = files[0].Substring(rootDir.Length).TrimStart(Path.DirectorySeparatorChar);
162162
var gitDirName = tmp.Substring(0, tmp.IndexOf(Path.DirectorySeparatorChar));
163163
Directory.Delete(gitDirName, true);
164+
File.Delete("Template.cs");
165+
File.Delete("TemplateBak.cs");
166+
File.Delete("Template.json");
167+
File.Delete("TemplateBak.cs");
164168
FlubuSession.LogInfo($"The template '{Args.MainCommands[1]}' was created successfully.");
165169
}
166170
catch (InvalidDataException)

0 commit comments

Comments
 (0)