File tree 2 files changed +2
-8
lines changed
eng/tools/BaselineGenerator
2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 8
8
9
9
<ItemGroup >
10
10
<Compile Include =" $(SharedSourceRoot)CommandLineUtils\**\*.cs" />
11
- <PackageReference Include =" NuGet.Protocol" Version =" 4 .8.2 " />
11
+ <PackageReference Include =" NuGet.Protocol" Version =" 5 .8.1 " />
12
12
</ItemGroup >
13
13
14
14
</Project >
Original file line number Diff line number Diff line change @@ -100,12 +100,9 @@ private async Task<int> Run()
100
100
var baselineVersion = input . Root . Attribute ( "Version" ) . Value ;
101
101
102
102
// 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.
104
103
var parsedVersion = Version . Parse ( baselineVersion ) ;
105
104
var defaultTarget = ( ( parsedVersion . Major < 5 ) ? "netcoreapp" : "net" ) +
106
105
$ "{ parsedVersion . Major } .{ parsedVersion . Minor } ";
107
- var netcoreappTarget = $ "netcoreapp{ parsedVersion . Major } .{ parsedVersion . Minor } ";
108
- var netTarget = $ "net{ parsedVersion . Major } { parsedVersion . Minor } ";
109
106
110
107
var doc = new XDocument (
111
108
new XComment ( " Auto generated. Do not edit manually, use eng/tools/BaselineGenerator/ to recreate. " ) ,
@@ -180,10 +177,7 @@ private async Task<int> Run()
180
177
var targetCondition = $ "'$(TargetFramework)' == '{ group . TargetFramework . GetShortFolderName ( ) } '";
181
178
if ( string . Equals (
182
179
group . TargetFramework . GetShortFolderName ( ) ,
183
- netcoreappTarget ,
184
- StringComparison . OrdinalIgnoreCase ) || string . Equals (
185
- group . TargetFramework . GetShortFolderName ( ) ,
186
- netTarget ,
180
+ defaultTarget ,
187
181
StringComparison . OrdinalIgnoreCase ) )
188
182
{
189
183
targetCondition =
You can’t perform that action at this time.
0 commit comments