3 writes to TemplateOutputDir
Templates.Mvc.Tests (3)
BlazorTemplateTest.cs (1)
186
project.
TemplateOutputDir
= Path.GetDirectoryName(multiProjectPath);
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
99
TemplateOutputDir
= subProjectDirectory,
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
56
project.
TemplateOutputDir
= Path.Combine(basePath, project.ProjectName);
29 references to TemplateOutputDir
Templates.Mvc.Tests (29)
BlazorTemplateTest.cs (3)
176
var singleProjectPath = Path.Combine(project.
TemplateOutputDir
, $"{project.ProjectName}.csproj");
182
var multiProjectPath = Path.Combine(project.
TemplateOutputDir
, project.ProjectName, $"{project.ProjectName}.csproj");
195
var appRazorPath = Path.Combine(project.
TemplateOutputDir
, "Components", "App.razor");
RazorPagesTemplateTest.cs (2)
61
var projectFileContents = ReadFile(project.
TemplateOutputDir
, $"{project.ProjectName}.csproj");
155
var projectFileContents = ReadFile(project.
TemplateOutputDir
, $"{project.ProjectName}.csproj");
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
}";