1 write to DirectoryPath
dotnet-svcutil-lib (1)
Shared\MSBuildProj.cs (1)
168DirectoryPath = Path.GetDirectoryName(projectFullPath)
29 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)
213await ProcessOutputDirOptionAsync(this.Project?.DirectoryPath, cancellationToken).ConfigureAwait(false); 385var defaultDir = this.Project?.DirectoryPath ?? Directory.GetCurrentDirectory(); 431var defaultDir = workingDirectory ?? this.Project?.DirectoryPath ?? Directory.GetCurrentDirectory(); 451!PathHelper.IsUnderDirectory(outputFile, new DirectoryInfo(this.Project.DirectoryPath), out filePath, out relPath)) 453this.AddWarning(string.Format(CultureInfo.CurrentCulture, SR.WrnSpecifiedFilePathNotUndeProjectDirFormat, Switches.OutputFile.Name, outputFile, this.Project.DirectoryPath)); 468var projectDir = this.Project?.DirectoryPath; 650if (this.Project != null && PathHelper.GetRelativePath(this.OutputDir.FullName, new DirectoryInfo(this.Project.DirectoryPath), out var relPath)) 1005var 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);