Skip to content

Commit

Permalink
rebase and fix test issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
imcarolwang committed Feb 4, 2024
1 parent b8c8e30 commit f438576
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0;net462</TargetFrameworks>
<PropertyGroup>
<TargetFrameworks>net6.0;net462</TargetFrameworks>
<RootNamespace>Microsoft.Tools.ServiceModel.Svcutil</RootNamespace>
<AssemblyName>$(MSBuildProjectName)</AssemblyName>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.ServiceModel.NetNamedPipe" Version="6.0.*" Condition="'$(TargetFramework)' == 'net6.0'">
<PrivateAssets>contentfiles;analyzers;build</PrivateAssets>
</PackageReference>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.ServiceModel.NetNamedPipe" Version="6.0.*" Condition="'$(TargetFramework)' == 'net6.0'">
<PrivateAssets>contentfiles;analyzers;build</PrivateAssets>
</PackageReference>
<Reference Include="System.ServiceModel" Condition="'$(TargetFramework)' == 'net462'" />
</ItemGroup>
</ItemGroup>
</Project>
6 changes: 3 additions & 3 deletions src/dotnet-svcutil/lib/tests/src/GlobalToolTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit f438576

Please sign in to comment.