1 write to DirectoryPath
dotnet-svcutil-lib (1)
Shared\MSBuildProj.cs (1)
168DirectoryPath = Path.GetDirectoryName(projectFullPath)
43 references to DirectoryPath
dotnet-svcutil-lib (29)
Bootstrapper\SvcutilBootstrapper.cs (3)
88result = await ProcessRunner.RunAsync("dotnet", $"run \"{paramsFilePath}\"", this.MSBuildProj.DirectoryPath, redirectOutput, logger, cancellationToken).ConfigureAwait(false); 170string programFilePath = Path.Combine(this.MSBuildProj.DirectoryPath, "Program.cs"); 177var paramsFilePath = Path.Combine(this.MSBuildProj.DirectoryPath, s_bootstrapperParamsFileName);
CommandProcessorOptions.cs (8)
214await ProcessOutputDirOptionAsync(this.Project?.DirectoryPath, cancellationToken).ConfigureAwait(false); 386var defaultDir = this.Project?.DirectoryPath ?? Directory.GetCurrentDirectory(); 432var defaultDir = workingDirectory ?? this.Project?.DirectoryPath ?? Directory.GetCurrentDirectory(); 452!PathHelper.IsUnderDirectory(outputFile, new DirectoryInfo(this.Project.DirectoryPath), out filePath, out relPath)) 454this.AddWarning(string.Format(CultureInfo.CurrentCulture, SR.WrnSpecifiedFilePathNotUndeProjectDirFormat, Switches.OutputFile.Name, outputFile, this.Project.DirectoryPath)); 469var projectDir = this.Project?.DirectoryPath; 651if (this.Project != null && PathHelper.GetRelativePath(this.OutputDir.FullName, new DirectoryInfo(this.Project.DirectoryPath), out var relPath)) 1006var workingDirectory = this.Project?.DirectoryPath ?? Directory.GetCurrentDirectory();
Shared\MSBuildProj.cs (17)
67public string FullPath { get { return Path.Combine(DirectoryPath, FileName); } } 198targetFramework = GetValueFromDirBuildProps(targetFramework, msbuildProj.DirectoryPath); 316fullPath = new FileInfo(Path.Combine(msbuildProj.DirectoryPath, binReference)).FullName; 340else if (Directory.Exists(Path.Combine(msbuildProj.DirectoryPath, fullPath))) 342fullPath = Path.Combine(msbuildProj.DirectoryPath, fullPath, binReference); 355if (!Directory.Exists(msbuildProj.DirectoryPath)) 357Directory.CreateDirectory(msbuildProj.DirectoryPath); 361var sdkVersion = await ProjectPropertyResolver.GetSdkVersionAsync(msbuildProj.DirectoryPath, logger, cancellationToken).ConfigureAwait(false); 695if (!Directory.Exists(this.DirectoryPath)) 697Directory.CreateDirectory(this.DirectoryPath); 722await ProcessRunner.TryRunAsync("dotnet", restoreParams + " --no-dependencies", this.DirectoryPath, logger, cancellationToken).ConfigureAwait(false); 723var result = await ProcessRunner.TryRunAsync("dotnet", restoreParams, this.DirectoryPath, logger, cancellationToken).ConfigureAwait(false); 745return await ProcessRunner.RunAsync("dotnet", buildParams, this.DirectoryPath, logger, cancellationToken).ConfigureAwait(false); 797var assetsFile = new FileInfo(Path.Combine(this.DirectoryPath, "obj", "project.assets.json")).FullName; 876outputPath = Path.Combine(this.DirectoryPath, outputPath.Trim(new char[] { '\"' })); 1052if (_ownsDirectory && Directory.Exists(this.DirectoryPath) && !DebugUtils.KeepTemporaryDirs) 1054try { Directory.Delete(this.DirectoryPath, recursive: true); } catch { }
Tool.cs (1)
268PathHelper.IsUnderDirectory(options.OutputFile.FullName, new DirectoryInfo(options.Project.DirectoryPath), out var filePath, out var relPath);
dotnet-svcutil-lib.Tests (14)
E2ETests.cs (2)
56ValidateTest(options, this_TestCaseProject.DirectoryPath, processResult.ExitCode, processResult.OutputText, expectSuccess); 374File.Copy(f, Path.Combine(this_TestCaseProject.DirectoryPath, Path.GetFileName(f)));
GlobalToolTests.cs (1)
25ValidateTest(options, this_TestCaseProject.DirectoryPath, processResult.ExitCode, processResult.OutputText, expectSuccess);
ProjectUtils.cs (5)
95result = ProcessRunner.RunAsync("dotnet-svcutil", options, project.DirectoryPath, redirectOutput: true, throwOnError: false, environmentVariables: envVars, logger: logger, cancellationToken: CancellationToken.None).Result; 156result = ProcessRunner.RunAsync("dotnet", $"run", project.DirectoryPath, redirectOutput: true, throwOnError: false, environmentVariables: envVars, logger: logger, cancellationToken: CancellationToken.None).Result; 164var errMsg = string.Format(E2ETest.g_ToReproduceProblemMessageFormat, project.DirectoryPath, options); 177var outputDir = Path.Combine(project.DirectoryPath, referenceFolderName); 185var referenceNamespace = PathHelper.GetRelativePath(referenceFolderName, project.DirectoryPath).Replace("\\", ".").Replace("/", ".").Replace(" ", "_");
TestInit.cs (2)
113var srcProgramPath = Directory.GetFiles(project.DirectoryPath, "*.cs", SearchOption.TopDirectoryOnly).First(); 524WriteLog("Working dir: " + this_TestCaseProject?.DirectoryPath);
UnitTest.cs (4)
23using (var cds = new CurrentDirectorySetter(this_TestCaseProject.DirectoryPath)) 25Directory.SetCurrentDirectory(this_TestCaseProject.DirectoryPath); 40ValidateTest(options, this_TestCaseProject.DirectoryPath, exitCode, outputText, expectSuccess); 341ValidateTest(options.ToString(), this_TestCaseProject.DirectoryPath, 0, string.Empty, true);