1 write to Project
dotnet-svcutil-lib (1)
CommandProcessorOptions.cs (1)
370
this.
Project
= await MSBuildProj.FromPathAsync(projectFile, this.Logger, cancellationToken).ConfigureAwait(false);
29 references to Project
dotnet-svcutil-lib (29)
Bootstrapper\SvcutilBootstrapper.cs (2)
71
if (this.Options.
Project
!= null && StringComparer.OrdinalIgnoreCase.Compare(this.Options.
Project
.FileName, SvcutilBootstrapper.ProjectName) == 0)
CodeDomFixup\WcfCodeGenerationExtension.cs (3)
65
if (binding is NetNamedPipeBinding && _options.
Project
!= null && (!_options.
Project
.TargetFrameworks.Any(t => t.ToLower().Contains("windows"))
66
|| !_options.
Project
.TargetFrameworks.Any(t => TargetFrameworkHelper.IsSupportedFramework(t, out FrameworkInfo fxInfo) && fxInfo.Version.Major >= 6)))
CommandProcessorOptions.cs (21)
212
await ProcessOutputDirOptionAsync(this.
Project
?.DirectoryPath, cancellationToken).ConfigureAwait(false);
326
var projectFile = this.
Project
?.FullPath;
368
if (this.
Project
== null && projectFile != null)
384
var defaultDir = this.
Project
?.DirectoryPath ?? Directory.GetCurrentDirectory();
430
var defaultDir = workingDirectory ?? this.
Project
?.DirectoryPath ?? Directory.GetCurrentDirectory();
449
if (this.ToolContext == OperationalContext.Project && this.
Project
!= null &&
450
!PathHelper.IsUnderDirectory(outputFile, new DirectoryInfo(this.
Project
.DirectoryPath), out filePath, out relPath))
452
this.AddWarning(string.Format(CultureInfo.CurrentCulture, SR.WrnSpecifiedFilePathNotUndeProjectDirFormat, Switches.OutputFile.Name, outputFile, this.
Project
.DirectoryPath));
467
var projectDir = this.
Project
?.DirectoryPath;
507
throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture, SR.ErrNoUpdateParamsFileFoundFormat, this.
Project
.FullPath));
515
throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture, SR.ErrMoreThanOneUpdateParamsFilesFoundFormat, this.
Project
.FullPath, Switches.Update.Name, svcRefNames));
529
throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture, SR.ErrServiceReferenceNotFoundUnderProjectFormat, this.UpdateServiceReferenceFolder, this.
Project
.FullPath));
537
throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture, SR.ErrNoUpdateParamsFileFoundFormat, this.
Project
.FullPath));
610
bool resolveReferences = this.
Project
!= null && this.TargetFramework.IsDnx && this.NoBootstrapping != true && this.TypeReuseMode != Svcutil.TypeReuseMode.None &&
619
var references = await this.
Project
.ResolveProjectReferencesAsync(ProjectDependency.IgnorableDependencies, logger, cancellationToken).ConfigureAwait(false);
649
if (this.
Project
!= null && PathHelper.GetRelativePath(this.OutputDir.FullName, new DirectoryInfo(this.
Project
.DirectoryPath), out var relPath))
674
if (this.
Project
!= null)
676
targetFrameworkMoniker = this.
Project
.TargetFramework;
992
var workingDirectory = this.
Project
?.DirectoryPath ?? Directory.GetCurrentDirectory();
1008
this.
Project
?.Dispose();
Tool.cs (3)
154
if (CanAddProjectReferences(options) && !await AddProjectReferencesAsync(options.
Project
, options, cancellationToken).ConfigureAwait(false))
267
return options.NoProjectUpdates != true && options.
Project
!= null &&
268
PathHelper.IsUnderDirectory(options.OutputFile.FullName, new DirectoryInfo(options.
Project
.DirectoryPath), out var filePath, out var relPath);