Skip to content

Commit

Permalink
rebase and fix test failure due to product upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
imcarolwang committed Jan 19, 2024
1 parent 17f2cf5 commit dcda4c4
Show file tree
Hide file tree
Showing 12 changed files with 55 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>N.N</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<WarningsAsErrors />
</PropertyGroup>
<ItemGroup>
<Reference Include="dotnet-svcutil-lib">
<HintPath>$resultPath$/TestResults/TFMBootstrap/tfmDefault/bin/Debug/DOTNET_VERSION/dotnet-svcutil-lib.dll</HintPath>
</Reference>
<Content CopyToOutputDirectory="always" Include="$resultPath$/TestResults/TFMBootstrap/tfmDefault/bin/Debug/DOTNET_VERSION/internalAssets/**" Link="internalAssets/%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="*" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>N.N</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<WarningsAsErrors />
</PropertyGroup>
<ItemGroup>
<Reference Include="dotnet-svcutil-lib">
<HintPath>$resultPath$/TestResults/TFMBootstrap/tfmNet60/bin/Debug/DOTNET_VERSION/dotnet-svcutil-lib.dll</HintPath>
</Reference>
<Content CopyToOutputDirectory="always" Include="$resultPath$/TestResults/TFMBootstrap/tfmNet60/bin/Debug/DOTNET_VERSION/internalAssets/**" Link="internalAssets/%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="*" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>N.N</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<WarningsAsErrors />
</PropertyGroup>
<ItemGroup>
<Reference Include="dotnet-svcutil-lib">
<HintPath>$resultPath$/TestResults/TFMBootstrap/tfmNetstd20/bin/Debug/DOTNET_VERSION/dotnet-svcutil-lib.dll</HintPath>
</Reference>
<Content CopyToOutputDirectory="always" Include="$resultPath$/TestResults/TFMBootstrap/tfmNetstd20/bin/Debug/DOTNET_VERSION/internalAssets/**" Link="internalAssets/%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="*" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>N.N</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<WarningsAsErrors />
</PropertyGroup>
<ItemGroup>
<Reference Include="dotnet-svcutil-lib">
<HintPath>$resultPath$/TestResults/TFMBootstrap/tfmNetstd21/bin/Debug/DOTNET_VERSION/dotnet-svcutil-lib.dll</HintPath>
</Reference>
<Content CopyToOutputDirectory="always" Include="$resultPath$/TestResults/TFMBootstrap/tfmNetstd21/bin/Debug/DOTNET_VERSION/internalAssets/**" Link="internalAssets/%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="*" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>N.N</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<WarningsAsErrors />
</PropertyGroup>
<ItemGroup>
<Reference Include="dotnet-svcutil-lib">
<HintPath>$USERPROFILE$/.dotnet/tools/.store/dotnet-svcutil/99.99.99/dotnet-svcutil/99.99.99/tools/DOTNET_VERSION/any/dotnet-svcutil-lib.dll</HintPath>
</Reference>
<Content CopyToOutputDirectory="always" Include="$USERPROFILE$/.dotnet/tools/.store/dotnet-svcutil/99.99.99/dotnet-svcutil/99.99.99/tools/DOTNET_VERSION/any/internalAssets/**" Link="internalAssets/%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="*" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>N.N</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<WarningsAsErrors />
</PropertyGroup>
<ItemGroup>
<Reference Include="dotnet-svcutil-lib">
<HintPath>$USERPROFILE$/.dotnet/tools/.store/dotnet-svcutil/99.99.99/dotnet-svcutil/99.99.99/tools/DOTNET_VERSION/any/dotnet-svcutil-lib.dll</HintPath>
</Reference>
<Content CopyToOutputDirectory="always" Include="$USERPROFILE$/.dotnet/tools/.store/dotnet-svcutil/99.99.99/dotnet-svcutil/99.99.99/tools/DOTNET_VERSION/any/internalAssets/**" Link="internalAssets/%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="*" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"outputFile": "Reference.cs",
"references": [
"dotnet-svcutil-lib, {dotnet-svcutil-lib, 99.99.99}",
"$resultPath$//TestResults//TypeReuse//TypeReuse//bin//Debug//net8.0//BinLib.dll",
"$resultPath$//TestResults//TypeReuse//TypeReuse//bin//Debug//net8.0//TypesLib.dll",
"$resultPath$//TestResults//TypeReuse//TypeReuse//bin//Debug//DOTNET_VERSION//BinLib.dll",
"$resultPath$//TestResults//TypeReuse//TypeReuse//bin//Debug//DOTNET_VERSION//TypesLib.dll",
"Microsoft.ApplicationInsights, {Microsoft.ApplicationInsights, 99.99.99}",
"Microsoft.DotNet.InternalAbstractions, {Microsoft.DotNet.InternalAbstractions, 99.99.99}",
"Microsoft.Extensions.DependencyModel, {Microsoft.Extensions.DependencyModel, 99.99.99}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"projectFile": "$resultPath$/TestResults/TypeReuse/TypeReuse/TypeReuse.csproj",
"references": [
"dotnet-svcutil-lib, {dotnet-svcutil-lib, 99.99.99}",
"$resultPath$//TestResults//TypeReuse//TypeReuse//bin//Debug//net8.0//BinLib.dll",
"$resultPath$//TestResults//TypeReuse//TypeReuse//bin//Debug//net8.0//TypesLib.dll",
"$resultPath$//TestResults//TypeReuse//TypeReuse//bin//Debug//DOTNET_VERSION//BinLib.dll",
"$resultPath$//TestResults//TypeReuse//TypeReuse//bin//Debug//DOTNET_VERSION//TypesLib.dll",
"Microsoft.ApplicationInsights, {Microsoft.ApplicationInsights, 99.99.99}",
"Microsoft.DotNet.InternalAbstractions, {Microsoft.DotNet.InternalAbstractions, 99.99.99}",
"Microsoft.Extensions.DependencyModel, {Microsoft.Extensions.DependencyModel, 99.99.99}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@
<Reference Include="dotnet-svcutil-lib">
<HintPath>$resultPath$/TestResults/TypeReuse/TypeReuse/bin/Debug/DOTNET_VERSION/dotnet-svcutil-lib.dll</HintPath>
</Reference>
<Content CopyToOutputDirectory="always" Include="$resultPath$/TestResults/TypeReuse/TypeReuse/bin/Debug/DOTNET_VERSION/internalAssets/**" Link="internalAssets/%(RecursiveDir)%(Filename)%(Extension)" />
<Reference Include="BinLib">
<HintPath>$resultPath$/TestResults/TypeReuse/TypeReuse/bin/Debug/net8.0/BinLib.dll</HintPath>
<HintPath>$resultPath$/TestResults/TypeReuse/TypeReuse/bin/Debug/DOTNET_VERSION/BinLib.dll</HintPath>
</Reference>
<Reference Include="TypesLib">
<HintPath>$resultPath$/TestResults/TypeReuse/TypeReuse/bin/Debug/net8.0/TypesLib.dll</HintPath>
<HintPath>$resultPath$/TestResults/TypeReuse/TypeReuse/bin/Debug/DOTNET_VERSION/TypesLib.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="dotnet-svcutil-lib" Version="99.99.99" />
<PackageReference Include="Microsoft.ApplicationInsights" Version="99.99.99" />
<PackageReference Include="Microsoft.DotNet.InternalAbstractions" Version="99.99.99" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="dotnet-svcutil-lib" Version="99.99.99" />
<Content CopyToOutputDirectory="always" Include="$(NuGetPackageRoot)dotnet-svcutil-lib/99.99.99/content/internalAssets/**" Link="internalAssets/%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>
<ItemGroup>
<Reference Include="BinLib">
<HintPath>$resultPath$/TestResults/TypeReuse/BinLib/bin/Debug/netstandard1.3/BinLib.dll</HintPath>
</Reference>
Expand Down
12 changes: 12 additions & 0 deletions src/dotnet-svcutil/lib/tests/src/FixupUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,18 @@ public void Init(string resultsPath, string testCasesPath, string projectPath, s
_replacements.Add(new ReplaceInfo(@"net(coreapp)?\d+\.\d+\\dotnet-svcutil-lib.dll", "DOTNET_VERSION\\dotnet-svcutil-lib.dll") { UseRegex = true }); //for windows
_replacements.Add(new ReplaceInfo(@"net(coreapp)?\d+\.\d+/any/dotnet-svcutil-lib.dll", "DOTNET_VERSION/any/dotnet-svcutil-lib.dll") { UseRegex = true }); //for linux
_replacements.Add(new ReplaceInfo(@"net(coreapp)?\d+\.\d+\\any\\dotnet-svcutil-lib.dll", "DOTNET_VERSION\\any\\dotnet-svcutil-lib.dll") { UseRegex = true }); //for windows
_replacements.Add(new ReplaceInfo(@"net\d+\.\d+/any/internalAssets", "DOTNET_VERSION/any/internalAssets") { UseRegex = true });
_replacements.Add(new ReplaceInfo(@"net\d+\.\d+\\any\\internalAssets", "DOTNET_VERSION\\any\\internalAssets") { UseRegex = true });
_replacements.Add(new ReplaceInfo(@"net\d+\.\d+/internalAssets", "DOTNET_VERSION/internalAssets") { UseRegex = true });
_replacements.Add(new ReplaceInfo(@"net\d+\.\d+\\internalAssets", "DOTNET_VERSION\\internalAssets") { UseRegex = true });
_replacements.Add(new ReplaceInfo(@"net\d+\.\d+//BinLib.dll", "DOTNET_VERSION//BinLib.dll") { UseRegex = true });
_replacements.Add(new ReplaceInfo(@"net\d+\.\d+//TypesLib.dll", "DOTNET_VERSION//TypesLib.dll") { UseRegex = true });
_replacements.Add(new ReplaceInfo(@"net\d+\.\d+\\\\BinLib.dll", "DOTNET_VERSION\\\\BinLib.dll") { UseRegex = true });
_replacements.Add(new ReplaceInfo(@"net\d+\.\d+\\\\TypesLib.dll", "DOTNET_VERSION\\\\TypesLib.dll") { UseRegex = true });
_replacements.Add(new ReplaceInfo(@"net\d+\.\d+/BinLib.dll", "DOTNET_VERSION/BinLib.dll") { UseRegex = true });
_replacements.Add(new ReplaceInfo(@"net\d+\.\d+/TypesLib.dll", "DOTNET_VERSION/TypesLib.dll") { UseRegex = true });
_replacements.Add(new ReplaceInfo(@"net\d+\.\d+\\BinLib.dll", "DOTNET_VERSION\\BinLib.dll") { UseRegex = true });
_replacements.Add(new ReplaceInfo(@"net\d+\.\d+\\TypesLib.dll", "DOTNET_VERSION\\TypesLib.dll") { UseRegex = true });
_replacements.Add(new ReplaceInfo(@"Release\Shipping", @"RelType/ShipType"));
_replacements.Add(new ReplaceInfo(@"Release\NonShipping", @"RelType/ShipType"));
_replacements.Add(new ReplaceInfo(@"Debug\Shipping", @"RelType/ShipType"));
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet-svcutil/lib/tests/src/GlobalToolTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public async Task MultiTargetCloseAsyncGeneration(string testCaseName)
[Trait("Category", "BVT")]
[Theory]
[InlineData("-elm")]
public void ParamsFiles(string extraOptions)
public async void ParamsFiles(string extraOptions)
{
this_TestCaseName = "ParamsFiles";
TestFixture();
Expand Down

0 comments on commit dcda4c4

Please sign in to comment.