File tree 1 file changed +3
-1
lines changed 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,9 @@ public static string New(string template, string workingDirectory)
59
59
// Clear all packages sources by default. May be overridden by NuGetPackageSource parameter.
60
60
File . WriteAllText ( Path . Combine ( workingDirectory , "NuGet.config" ) , _clearPackageSourcesNuGetConfig ) ;
61
61
62
- return RunDotNet ( $ "new { template } --name { template } --output . --no-restore", workingDirectory ) ;
62
+ // Pass "--debug:ephemeral-hive" to build template contents in-memory, rather than using the default
63
+ // "%UserProfile%\.templateengine" cache, which may be out-of-date when testing newer builds with the same version.
64
+ return RunDotNet ( $ "new { template } --name { template } --output . --no-restore --debug:ephemeral-hive", workingDirectory ) ;
63
65
}
64
66
65
67
public static string Restore ( string workingDirectory , NuGetPackageSource packageSource , RuntimeIdentifier runtimeIdentifier )
You can’t perform that action at this time.
0 commit comments