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