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