diff --git a/src/dotnet-svcutil/lib/Microsoft.Svcutil.NamedPipeMetadataImporter/Microsoft.Svcutil.NamedPipeMetadataImporter.csproj b/src/dotnet-svcutil/lib/Microsoft.Svcutil.NamedPipeMetadataImporter/Microsoft.Svcutil.NamedPipeMetadataImporter.csproj index e529a12f22ce..9196d45a7bf2 100644 --- a/src/dotnet-svcutil/lib/Microsoft.Svcutil.NamedPipeMetadataImporter/Microsoft.Svcutil.NamedPipeMetadataImporter.csproj +++ b/src/dotnet-svcutil/lib/Microsoft.Svcutil.NamedPipeMetadataImporter/Microsoft.Svcutil.NamedPipeMetadataImporter.csproj @@ -1,14 +1,14 @@ - - net6.0;net462 + + net6.0;net462 Microsoft.Tools.ServiceModel.Svcutil $(MSBuildProjectName) latest - - - - contentfiles;analyzers;build - + + + + contentfiles;analyzers;build + - + diff --git a/src/dotnet-svcutil/lib/tests/src/GlobalToolTests.cs b/src/dotnet-svcutil/lib/tests/src/GlobalToolTests.cs index 61f5fa3f1026..206aac0e6669 100644 --- a/src/dotnet-svcutil/lib/tests/src/GlobalToolTests.cs +++ b/src/dotnet-svcutil/lib/tests/src/GlobalToolTests.cs @@ -140,7 +140,7 @@ public async Task MultiTargetCloseAsyncGeneration(string testCaseName) [Trait("Category", "BVT")] [Fact] - public void MultiTargetTypeReuse() + public async Task MultiTargetTypeReuse() { this_TestCaseName = "MultiTargetTypeReuse"; TestFixture(); @@ -154,8 +154,8 @@ public void MultiTargetTypeReuse() FileUtil.TryDeleteDirectory(this_TestCaseOutputDir); Directory.CreateDirectory(this_TestCaseOutputDir); FileUtil.CopyDirectory(Path.Combine(g_TestCasesDir, this_TestCaseName), this_TestGroupOutputDir, true); - this_TestCaseProject = MSBuildProj.FromPathAsync(Path.Combine(this_TestCaseOutputDir, $"{testClientFolder}.csproj"), null, CancellationToken.None).Result; - ProcessRunner.ProcessResult ret = this_TestCaseProject.BuildAsync(true, this_TestCaseLogger, CancellationToken.None).Result; + this_TestCaseProject = await MSBuildProj.FromPathAsync(Path.Combine(this_TestCaseOutputDir, $"{testClientFolder}.csproj"), null, CancellationToken.None); + ProcessRunner.ProcessResult ret = await this_TestCaseProject.BuildAsync(true, this_TestCaseLogger, CancellationToken.None); Assert.True(ret.ExitCode == 0, ret.OutputText); this_FixupUtil = new FixupUtil();