1 write to DirectoryPath
dotnet-svcutil-lib (1)
Shared\MSBuildProj.cs (1)
177DirectoryPath = 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)
212await ProcessOutputDirOptionAsync(this.Project?.DirectoryPath, cancellationToken).ConfigureAwait(false); 384var defaultDir = this.Project?.DirectoryPath ?? Directory.GetCurrentDirectory(); 430var defaultDir = workingDirectory ?? this.Project?.DirectoryPath ?? Directory.GetCurrentDirectory(); 450!PathHelper.IsUnderDirectory(outputFile, new DirectoryInfo(this.Project.DirectoryPath), out filePath, out relPath)) 452this.AddWarning(string.Format(CultureInfo.CurrentCulture, SR.WrnSpecifiedFilePathNotUndeProjectDirFormat, Switches.OutputFile.Name, outputFile, this.Project.DirectoryPath)); 467var projectDir = this.Project?.DirectoryPath; 649if (this.Project != null && PathHelper.GetRelativePath(this.OutputDir.FullName, new DirectoryInfo(this.Project.DirectoryPath), out var relPath)) 992var workingDirectory = this.Project?.DirectoryPath ?? Directory.GetCurrentDirectory();
Shared\MSBuildProj.cs (17)
65public string FullPath { get { return Path.Combine(DirectoryPath, FileName); } } 207targetFramework = GetValueFromDirBuildProps(targetFramework, msbuildProj.DirectoryPath); 325fullPath = new FileInfo(Path.Combine(msbuildProj.DirectoryPath, binReference)).FullName; 349else if (Directory.Exists(Path.Combine(msbuildProj.DirectoryPath, fullPath))) 351fullPath = Path.Combine(msbuildProj.DirectoryPath, fullPath, binReference); 364if (!Directory.Exists(msbuildProj.DirectoryPath)) 366Directory.CreateDirectory(msbuildProj.DirectoryPath); 370var sdkVersion = await ProjectPropertyResolver.GetSdkVersionAsync(msbuildProj.DirectoryPath, logger, cancellationToken).ConfigureAwait(false); 712if (!Directory.Exists(this.DirectoryPath)) 714Directory.CreateDirectory(this.DirectoryPath); 739await ProcessRunner.TryRunAsync("dotnet", restoreParams + " --no-dependencies", this.DirectoryPath, logger, cancellationToken).ConfigureAwait(false); 740var result = await ProcessRunner.TryRunAsync("dotnet", restoreParams, this.DirectoryPath, logger, cancellationToken).ConfigureAwait(false); 762return await ProcessRunner.RunAsync("dotnet", buildParams, this.DirectoryPath, logger, cancellationToken).ConfigureAwait(false); 814var assetsFile = new FileInfo(Path.Combine(this.DirectoryPath, "obj", "project.assets.json")).FullName; 893outputPath = Path.Combine(this.DirectoryPath, outputPath.Trim(new char[] { '\"' })); 1069if (_ownsDirectory && Directory.Exists(this.DirectoryPath) && !DebugUtils.KeepTemporaryDirs) 1071try { 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);