1 instantiation of MSBuildProj
dotnet-svcutil-lib (1)
Shared\MSBuildProj.cs (1)
165MSBuildProj msbuildProj = new MSBuildProj
50 references to MSBuildProj
dotnet-svcutil-lib (22)
Bootstrapper\SvcutilBootstrapper.cs (2)
21private MSBuildProj MSBuildProj { get; set; } 123this.MSBuildProj = await MSBuildProj.DotNetNewAsync(projectFullPath, logger, cancellationToken).ConfigureAwait(false);
CommandProcessorOptions.cs (3)
372this.Project = await MSBuildProj.FromPathAsync(projectFile, this.Logger, cancellationToken).ConfigureAwait(false); 709using (var proj = await MSBuildProj.DotNetNewAsync(projectFullPath, this.Logger, cancellationToken).ConfigureAwait(false))
Shared\MSBuildProj.cs (9)
145public static async Task<MSBuildProj> FromPathAsync(string filePath, ILogger logger, CancellationToken cancellationToken) 147var project = await ParseAsync(File.ReadAllText(filePath), filePath, logger, cancellationToken).ConfigureAwait(false); 152internal static async Task<MSBuildProj> FromPathAsync(string filePath, ILogger logger, string tfMoniker, CancellationToken cancellationToken) 154var project = await ParseAsync(File.ReadAllText(filePath), filePath, logger, cancellationToken, tfMoniker).ConfigureAwait(false); 159public static async Task<MSBuildProj> ParseAsync(string projectText, string projectFullPath, ILogger logger, CancellationToken cancellationToken, string tfMoniker = "") 165MSBuildProj msbuildProj = new MSBuildProj 374public static async Task<MSBuildProj> DotNetNewAsync(string fullPath, ILogger logger, CancellationToken cancellationToken, string optional = "") 378MSBuildProj project = null; 1027throw new ObjectDisposedException(nameof(MSBuildProj));
Shared\Options\OptionValueParser.cs (4)
62else if (valueType == typeof(MSBuildProj)) 64value = CreateValue<MSBuildProj>(() => MSBuildProj.FromPathAsync(stringValue, null, System.Threading.CancellationToken.None).Result, option, stringValue); 120else if (value is MSBuildProj proj)
Shared\Options\SvcutilOptions.cs (3)
40public MSBuildProj Project { get { return GetValue<MSBuildProj>(ProjectFileKey); } set { SetValue(ProjectFileKey, value); } } 59new SingleValueOption<MSBuildProj>(ProjectFileKey, ProjectFileKey),
Tool.cs (1)
271private static async Task<bool> AddProjectReferencesAsync(MSBuildProj project, CommandProcessorOptions options, CancellationToken cancellationToken)
dotnet-svcutil-lib.Tests (28)
E2ETests.cs (2)
233MSBuildProj binProj = MSBuildProj.FromPathAsync(binProjPath, null, CancellationToken.None).Result;
GlobalToolTests.cs (2)
129this_TestCaseProject = await MSBuildProj.FromPathAsync(Path.Combine(this_TestCaseOutputDir, $"{testCaseName}.csproj"), null, CancellationToken.None); 157this_TestCaseProject = await MSBuildProj.FromPathAsync(Path.Combine(this_TestCaseOutputDir, $"{testClientFolder}.csproj"), null, CancellationToken.None);
MSBuildProjTests.cs (8)
41var build = await MSBuildProj.ParseAsync(projectText, TestDir + "/MSBuildProjTests/Sample", null, CancellationToken.None); 61var build = await MSBuildProj.ParseAsync(projectText, TestDir + "/MSBuildProjTests/Sample", null, CancellationToken.None); 80var build = await MSBuildProj.ParseAsync(projectText, TestDir + "/MSBuildProjTests/Sample", null, CancellationToken.None); 100var build = await MSBuildProj.ParseAsync(projectText, TestDir + "/MSBuildProjTests/Sample", null, CancellationToken.None);
ProjectUtils.cs (7)
19public static MSBuildProj GetProject(string filePath, string targetFramework, bool forceNew, bool build, ILogger logger, bool globalTool = false) 21MSBuildProj project = null; 38project = MSBuildProj.FromPathAsync(filePath, logger, token).Result; 44project = MSBuildProj.DotNetNewAsync(filePath, logger, token, "--langVersion latest --framework " + targetFramework).Result; 48project = MSBuildProj.DotNetNewAsync(filePath, logger, token).Result; 84public static ProcessRunner.ProcessResult RunSvcutil(this MSBuildProj project, string options, bool expectSuccess, ILogger logger, bool globalTool = false) 171public static string AddFakeServiceReference(this MSBuildProj project, string srcParamsFile, string referenceFolderName, bool addNamespace)
TestInit.cs (9)
43internal MSBuildProj this_TestCaseProject; 53internal static MSBuildProj __g_StarterProject; 54internal static MSBuildProj g_StarterProject 85internal MSBuildProj __this_TestGroupProject; 86internal MSBuildProj this_TestGroupProject 104return __this_TestGroupProject as MSBuildProj; 108internal static string CopyProject(MSBuildProj project, string outputDir, string projectName) 256var project = (sdkVersion == null || g_StarterProject.SdkVersion == sdkVersion) ? g_StarterProject : this_TestGroupProject; 259this_TestCaseProject = MSBuildProj.FromPathAsync(projectPath, null, CancellationToken.None).Result;