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