3 writes to TemplateOutputDir
Templates.Mvc.Tests (3)
BlazorTemplateTest.cs (1)
186project.TemplateOutputDir = Path.GetDirectoryName(multiProjectPath);
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
99TemplateOutputDir = subProjectDirectory,
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
56project.TemplateOutputDir = Path.Combine(basePath, project.ProjectName);
29 references to TemplateOutputDir
Templates.Mvc.Tests (29)
BlazorTemplateTest.cs (3)
176var singleProjectPath = Path.Combine(project.TemplateOutputDir, $"{project.ProjectName}.csproj"); 182var multiProjectPath = Path.Combine(project.TemplateOutputDir, project.ProjectName, $"{project.ProjectName}.csproj"); 195var appRazorPath = Path.Combine(project.TemplateOutputDir, "Components", "App.razor");
RazorPagesTemplateTest.cs (2)
61var projectFileContents = ReadFile(project.TemplateOutputDir, $"{project.ProjectName}.csproj"); 155var projectFileContents = ReadFile(project.TemplateOutputDir, $"{project.ProjectName}.csproj");
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
88var subProjectDirectory = Path.Combine(project.TemplateOutputDir, projectDirectory);
src\ProjectTemplates\Shared\Project.cs (23)
56public string TemplateBuildDir => Path.Combine(TemplateOutputDir, "bin", "Debug", TargetFramework, RuntimeIdentifier); 57public string TemplatePublishDir => Path.Combine(TemplateOutputDir, "bin", "Release", TargetFramework, RuntimeIdentifier, "publish"); 114argString += $" -o {TemplateOutputDir}"; 116if (Directory.Exists(TemplateOutputDir)) 118Output.WriteLine($"Template directory already exists, deleting contents of {TemplateOutputDir}"); 119Directory.Delete(TemplateOutputDir, recursive: true); 131using var restoreExecution = ProcessEx.Run(Output, TemplateOutputDir, DotNetMuxer.MuxerPathOrDefault(), argString, environmentVariables); 157using var execution = ProcessEx.Run(Output, TemplateOutputDir, DotNetMuxer.MuxerPathOrDefault(), $"publish {restoreArgs} -c Release /bl {additionalArgs}", packageOptions); 180using var execution = ProcessEx.Run(Output, TemplateOutputDir, DotNetMuxer.MuxerPathOrDefault(), $"build --no-restore -c Debug /bl {additionalArgs}", packageOptions); 209return new AspNetProcess(DevCert, Output, TemplateOutputDir, projectDll, environment, published: false, hasListeningUri: hasListeningUri, logger: logger); 241using var result = ProcessEx.Run(Output, TemplateOutputDir, command, args); 261using var result = ProcessEx.Run(Output, TemplateOutputDir, command, args); 270var fullPath = Path.Combine(TemplateOutputDir, "Data/Migrations"); 299var fullPath = Path.Combine(TemplateOutputDir, path); 314var launchSettingsFiles = Directory.EnumerateFiles(TemplateOutputDir, "launchSettings.json", SearchOption.AllDirectories); 355var projectFile = Directory.EnumerateFiles(TemplateOutputDir, "*proj").FirstOrDefault(); 411return File.ReadAllText(Path.Combine(TemplateOutputDir, path)); 422$" -o {TemplateOutputDir}"); 440Directory.Delete(TemplateOutputDir, true); 447DiagnosticsMessageSink.OnMessage(new DiagnosticMessage($"Failed to delete directory {TemplateOutputDir} because of error {ex.Message}. Will try again {numAttemptsRemaining - 1} more time(s).")); 452DiagnosticsMessageSink.OnMessage(new DiagnosticMessage($"Giving up trying to delete directory {TemplateOutputDir} after {NumAttempts} attempts. Most recent error was: {ex.StackTrace}")); 527var sourceFile = Path.Combine(TemplateOutputDir, "msbuild.binlog"); 534public override string ToString() => $"{ProjectName}: {TemplateOutputDir}";