2 writes to TemplateOutputDir
Templates.Blazor.WebAssembly.Tests (2)
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
99TemplateOutputDir = subProjectDirectory,
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
80project.TemplateOutputDir = Path.Combine(basePath, $"AspNet.{project.ProjectGuid}");
25 references to TemplateOutputDir
Templates.Blazor.WebAssembly.Tests (25)
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
88var subProjectDirectory = Path.Combine(project.TemplateOutputDir, projectDirectory);
src\ProjectTemplates\Shared\Project.cs (24)
56public string TemplateBuildDir => Path.Combine(TemplateOutputDir, "bin", "Debug", TargetFramework, RuntimeIdentifier); 57public string TemplatePublishDir => Path.Combine(TemplateOutputDir, "bin", "Release", TargetFramework, RuntimeIdentifier, "publish"); 126argString += $" -o {TemplateOutputDir}"; 128if (Directory.Exists(TemplateOutputDir)) 130Output.WriteLine($"Template directory already exists, deleting contents of {TemplateOutputDir}"); 131Directory.Delete(TemplateOutputDir, recursive: true); 143using var restoreExecution = ProcessEx.Run(Output, TemplateOutputDir, DotNetMuxer.MuxerPathOrDefault(), argString, environmentVariables); 169using var execution = ProcessEx.Run(Output, TemplateOutputDir, DotNetMuxer.MuxerPathOrDefault(), $"publish {restoreArgs} -c Release /bl {additionalArgs}", packageOptions); 192using var execution = ProcessEx.Run(Output, TemplateOutputDir, DotNetMuxer.MuxerPathOrDefault(), $"build --no-restore -c Debug /bl {additionalArgs}", packageOptions); 221return new AspNetProcess(DevCert, Output, TemplateOutputDir, projectDll, environment, published: false, hasListeningUri: hasListeningUri, logger: logger); 253using var result = ProcessEx.Run(Output, TemplateOutputDir, command, args); 273using var result = ProcessEx.Run(Output, TemplateOutputDir, command, args); 282var fullPath = Path.Combine(TemplateOutputDir, "Data/Migrations"); 311var fullPath = Path.Combine(TemplateOutputDir, path); 326var launchSettingsFiles = Directory.EnumerateFiles(TemplateOutputDir, "launchSettings.json", SearchOption.AllDirectories); 367var launchSettingsPath = Path.Combine(TemplateOutputDir, "Properties", "launchSettings.json"); 403var projectFile = Directory.EnumerateFiles(TemplateOutputDir, "*proj").FirstOrDefault(); 459return File.ReadAllText(Path.Combine(TemplateOutputDir, path)); 470$" -o {TemplateOutputDir}"); 494Directory.Delete(TemplateOutputDir, true); 501DiagnosticsMessageSink.OnMessage(new DiagnosticMessage($"Failed to delete directory {TemplateOutputDir} because of error {ex.Message}. Will try again {numAttemptsRemaining - 1} more time(s).")); 506DiagnosticsMessageSink.OnMessage(new DiagnosticMessage($"Giving up trying to delete directory {TemplateOutputDir} after {NumAttempts} attempts. Most recent error was: {ex.StackTrace}")); 581var sourceFile = Path.Combine(TemplateOutputDir, "msbuild.binlog"); 588public override string ToString() => $"{ProjectName}: {TemplateOutputDir}";