File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
eng/tools/BaselineGenerator Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 88
99 <ItemGroup >
1010 <Compile Include =" $(SharedSourceRoot)CommandLineUtils\**\*.cs" />
11- <PackageReference Include =" NuGet.Protocol" Version =" 4 .8.2 " />
11+ <PackageReference Include =" NuGet.Protocol" Version =" 5 .8.1 " />
1212 </ItemGroup >
1313
1414</Project >
Original file line number Diff line number Diff line change @@ -100,12 +100,9 @@ private async Task<int> Run()
100100 var baselineVersion = input . Root . Attribute ( "Version" ) . Value ;
101101
102102 // Baseline and .NET Core versions always align in non-preview releases.
103- // But, NuspecReader reports netcoreapp5.0 or net50 instead of net5.0. We use net5.0 in Baseline.Designer.props.
104103 var parsedVersion = Version . Parse ( baselineVersion ) ;
105104 var defaultTarget = ( ( parsedVersion . Major < 5 ) ? "netcoreapp" : "net" ) +
106105 $ "{ parsedVersion . Major } .{ parsedVersion . Minor } ";
107- var netcoreappTarget = $ "netcoreapp{ parsedVersion . Major } .{ parsedVersion . Minor } ";
108- var netTarget = $ "net{ parsedVersion . Major } { parsedVersion . Minor } ";
109106
110107 var doc = new XDocument (
111108 new XComment ( " Auto generated. Do not edit manually, use eng/tools/BaselineGenerator/ to recreate. " ) ,
@@ -180,10 +177,7 @@ private async Task<int> Run()
180177 var targetCondition = $ "'$(TargetFramework)' == '{ group . TargetFramework . GetShortFolderName ( ) } '";
181178 if ( string . Equals (
182179 group . TargetFramework . GetShortFolderName ( ) ,
183- netcoreappTarget ,
184- StringComparison . OrdinalIgnoreCase ) || string . Equals (
185- group . TargetFramework . GetShortFolderName ( ) ,
186- netTarget ,
180+ defaultTarget ,
187181 StringComparison . OrdinalIgnoreCase ) )
188182 {
189183 targetCondition =
You can’t perform that action at this time.
0 commit comments