2 writes to TemplateOutputDir
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
99TemplateOutputDir = subProjectDirectory,
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
56project.TemplateOutputDir = Path.Combine(basePath, project.ProjectName);
23 references to TemplateOutputDir
Templates.Blazor.WebAssembly.Auth.Tests (23)
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
88var subProjectDirectory = Path.Combine(project.TemplateOutputDir, projectDirectory);
src\ProjectTemplates\Shared\Project.cs (22)
56public string TemplateBuildDir => Path.Combine(TemplateOutputDir, "bin", "Debug", TargetFramework, RuntimeIdentifier); 57public string TemplatePublishDir => Path.Combine(TemplateOutputDir, "bin", "Release", TargetFramework, RuntimeIdentifier, "publish"); 108argString += $" -o {TemplateOutputDir}"; 110if (Directory.Exists(TemplateOutputDir)) 112Output.WriteLine($"Template directory already exists, deleting contents of {TemplateOutputDir}"); 113Directory.Delete(TemplateOutputDir, recursive: true); 139using var execution = ProcessEx.Run(Output, TemplateOutputDir, DotNetMuxer.MuxerPathOrDefault(), $"publish {restoreArgs} -c Release /bl {additionalArgs}", packageOptions); 162using var execution = ProcessEx.Run(Output, TemplateOutputDir, DotNetMuxer.MuxerPathOrDefault(), $"build --no-restore -c Debug /bl {additionalArgs}", packageOptions); 191return new AspNetProcess(DevCert, Output, TemplateOutputDir, projectDll, environment, published: false, hasListeningUri: hasListeningUri, logger: logger); 223using var result = ProcessEx.Run(Output, TemplateOutputDir, command, args); 243using var result = ProcessEx.Run(Output, TemplateOutputDir, command, args); 252var fullPath = Path.Combine(TemplateOutputDir, "Data/Migrations"); 281var fullPath = Path.Combine(TemplateOutputDir, path); 296var launchSettingsFiles = Directory.EnumerateFiles(TemplateOutputDir, "launchSettings.json", SearchOption.AllDirectories); 351var projectFile = Directory.EnumerateFiles(TemplateOutputDir, "*proj").FirstOrDefault(); 407return File.ReadAllText(Path.Combine(TemplateOutputDir, path)); 418$" -o {TemplateOutputDir}"); 436Directory.Delete(TemplateOutputDir, true); 443DiagnosticsMessageSink.OnMessage(new DiagnosticMessage($"Failed to delete directory {TemplateOutputDir} because of error {ex.Message}. Will try again {numAttemptsRemaining - 1} more time(s).")); 448DiagnosticsMessageSink.OnMessage(new DiagnosticMessage($"Giving up trying to delete directory {TemplateOutputDir} after {NumAttempts} attempts. Most recent error was: {ex.StackTrace}")); 523var sourceFile = Path.Combine(TemplateOutputDir, "msbuild.binlog"); 530public override string ToString() => $"{ProjectName}: {TemplateOutputDir}";