@@ -1142,13 +1142,13 @@ public void Pack_MultipleTargetFrameworks_Works()
1142
1142
tfm . Name = "TargetFrameworks" ;
1143
1143
tfm . FirstNode . ReplaceWith ( tfm . FirstNode . ToString ( ) + ";netstandard2.1" ) ;
1144
1144
1145
- document . Descendants ( "AddRazorSupportForMvc" ) . SingleOrDefault ( ) ? . Parent . Remove ( ) ;
1146
- document . Descendants ( "FrameworkReference" ) . SingleOrDefault ( ) ? . Parent . Remove ( ) ;
1145
+ document . Descendants ( "AddRazorSupportForMvc" ) . SingleOrDefault ( ) ? . Remove ( ) ;
1146
+ document . Descendants ( "FrameworkReference" ) . SingleOrDefault ( ) ? . Remove ( ) ;
1147
1147
} ) ;
1148
1148
1149
1149
Directory . Delete ( Path . Combine ( projectDirectory . Path , "PackageLibraryDirectDependency" , "Components" ) , recursive : true ) ;
1150
1150
1151
- var pack = new MSBuildCommand ( Log , "Pack" , projectDirectory . Path , "PackageLibraryDirectDependency" ) ;
1151
+ var pack = new MSBuildCommand ( projectDirectory , "Pack" , "PackageLibraryDirectDependency" ) ;
1152
1152
pack . WithWorkingDirectory ( projectDirectory . Path ) ;
1153
1153
var result = pack . Execute ( "/bl" ) ;
1154
1154
@@ -1183,17 +1183,17 @@ public void Pack_MultipleTargetFrameworks_NoBuild_IncludesStaticWebAssets()
1183
1183
tfm . Name = "TargetFrameworks" ;
1184
1184
tfm . FirstNode . ReplaceWith ( tfm . FirstNode . ToString ( ) + ";netstandard2.1" ) ;
1185
1185
1186
- document . Descendants ( "AddRazorSupportForMvc" ) . SingleOrDefault ( ) ? . Parent . Remove ( ) ;
1187
- document . Descendants ( "FrameworkReference" ) . SingleOrDefault ( ) ? . Parent . Remove ( ) ;
1186
+ document . Descendants ( "AddRazorSupportForMvc" ) . SingleOrDefault ( ) ? . Remove ( ) ;
1187
+ document . Descendants ( "FrameworkReference" ) . SingleOrDefault ( ) ? . Remove ( ) ;
1188
1188
} ) ;
1189
1189
1190
1190
Directory . Delete ( Path . Combine ( projectDirectory . Path , "PackageLibraryDirectDependency" , "Components" ) , recursive : true ) ;
1191
1191
1192
- var build = new BuildCommand ( Log , projectDirectory . Path , "PackageLibraryDirectDependency" ) ;
1192
+ var build = new BuildCommand ( projectDirectory , "PackageLibraryDirectDependency" ) ;
1193
1193
build . WithWorkingDirectory ( projectDirectory . Path ) ;
1194
1194
var buildResult = build . Execute ( "/bl" ) ;
1195
1195
1196
- var pack = new MSBuildCommand ( Log , "Pack" , projectDirectory . Path , "PackageLibraryDirectDependency" ) ;
1196
+ var pack = new MSBuildCommand ( projectDirectory , "Pack" , "PackageLibraryDirectDependency" ) ;
1197
1197
pack . WithWorkingDirectory ( projectDirectory . Path ) ;
1198
1198
var result = pack . Execute ( "/p:NoBuild=true" , "/bl" ) ;
1199
1199
@@ -1228,8 +1228,8 @@ public void Pack_MultipleTargetFrameworks_NoBuild_DoesNotIncludeAssetsAsContent(
1228
1228
tfm . Name = "TargetFrameworks" ;
1229
1229
tfm . FirstNode . ReplaceWith ( tfm . FirstNode . ToString ( ) + ";netstandard2.1" ) ;
1230
1230
1231
- document . Descendants ( "AddRazorSupportForMvc" ) . SingleOrDefault ( ) ? . Parent . Remove ( ) ;
1232
- document . Descendants ( "FrameworkReference" ) . SingleOrDefault ( ) ? . Parent . Remove ( ) ;
1231
+ document . Descendants ( "AddRazorSupportForMvc" ) . SingleOrDefault ( ) ? . Remove ( ) ;
1232
+ document . Descendants ( "FrameworkReference" ) . SingleOrDefault ( ) ? . Remove ( ) ;
1233
1233
} ) ;
1234
1234
1235
1235
Directory . Delete ( Path . Combine ( projectDirectory . Path , "PackageLibraryDirectDependency" , "Components" ) , recursive : true ) ;
@@ -1238,7 +1238,7 @@ public void Pack_MultipleTargetFrameworks_NoBuild_DoesNotIncludeAssetsAsContent(
1238
1238
build . WithWorkingDirectory ( projectDirectory . Path ) ;
1239
1239
var buildResult = build . Execute ( "/bl" ) ;
1240
1240
1241
- var pack = new MSBuildCommand ( Log , "Pack" , projectDirectory . Path , "PackageLibraryDirectDependency" ) ;
1241
+ var pack = new MSBuildCommand ( projectDirectory , "Pack" , "PackageLibraryDirectDependency" ) ;
1242
1242
pack . WithWorkingDirectory ( projectDirectory . Path ) ;
1243
1243
var result = pack . Execute ( "/p:NoBuild=true" , "/bl" ) ;
1244
1244
@@ -1271,13 +1271,13 @@ public void Pack_MultipleTargetFrameworks_GeneratePackageOnBuild_IncludesStaticW
1271
1271
tfm . Name = "TargetFrameworks" ;
1272
1272
tfm . FirstNode . ReplaceWith ( tfm . FirstNode . ToString ( ) + ";netstandard2.1" ) ;
1273
1273
1274
- document . Descendants ( "AddRazorSupportForMvc" ) . SingleOrDefault ( ) ? . Parent . Remove ( ) ;
1275
- document . Descendants ( "FrameworkReference" ) . SingleOrDefault ( ) ? . Parent . Remove ( ) ;
1274
+ document . Descendants ( "AddRazorSupportForMvc" ) . SingleOrDefault ( ) ? . Remove ( ) ;
1275
+ document . Descendants ( "FrameworkReference" ) . SingleOrDefault ( ) ? . Remove ( ) ;
1276
1276
} ) ;
1277
1277
1278
1278
Directory . Delete ( Path . Combine ( projectDirectory . Path , "PackageLibraryDirectDependency" , "Components" ) , recursive : true ) ;
1279
1279
1280
- var build = new BuildCommand ( Log , projectDirectory . Path , "PackageLibraryDirectDependency" ) ;
1280
+ var build = new BuildCommand ( projectDirectory , "PackageLibraryDirectDependency" ) ;
1281
1281
build . WithWorkingDirectory ( projectDirectory . Path ) ;
1282
1282
var result = build . Execute ( "/p:GeneratePackageOnBuild=true" , "/bl" ) ;
1283
1283
@@ -1312,13 +1312,13 @@ public void Pack_MultipleTargetFrameworks_GeneratePackageOnBuild_DoesNotIncludeA
1312
1312
tfm . Name = "TargetFrameworks" ;
1313
1313
tfm . FirstNode . ReplaceWith ( tfm . FirstNode . ToString ( ) + ";netstandard2.1" ) ;
1314
1314
1315
- document . Descendants ( "AddRazorSupportForMvc" ) . SingleOrDefault ( ) ? . Parent . Remove ( ) ;
1316
- document . Descendants ( "FrameworkReference" ) . SingleOrDefault ( ) ? . Parent . Remove ( ) ;
1315
+ document . Descendants ( "AddRazorSupportForMvc" ) . SingleOrDefault ( ) ? . Remove ( ) ;
1316
+ document . Descendants ( "FrameworkReference" ) . SingleOrDefault ( ) ? . Remove ( ) ;
1317
1317
} ) ;
1318
1318
1319
1319
Directory . Delete ( Path . Combine ( projectDirectory . Path , "PackageLibraryDirectDependency" , "Components" ) , recursive : true ) ;
1320
1320
1321
- var build = new BuildCommand ( Log , projectDirectory . Path , "PackageLibraryDirectDependency" ) ;
1321
+ var build = new BuildCommand ( projectDirectory , "PackageLibraryDirectDependency" ) ;
1322
1322
build . WithWorkingDirectory ( projectDirectory . Path ) ;
1323
1323
var result = build . Execute ( "/p:GeneratePackageOnBuild=true" , "/bl" ) ;
1324
1324
@@ -2421,13 +2421,13 @@ public void Pack_MultipleTargetFrameworks_DoesNotIncludeAssetsAsContent()
2421
2421
tfm . Name = "TargetFrameworks" ;
2422
2422
tfm . FirstNode . ReplaceWith ( tfm . FirstNode . ToString ( ) + ";netstandard2.1" ) ;
2423
2423
2424
- document . Descendants ( "AddRazorSupportForMvc" ) . SingleOrDefault ( ) ? . Parent . Remove ( ) ;
2425
- document . Descendants ( "FrameworkReference" ) . SingleOrDefault ( ) ? . Parent . Remove ( ) ;
2424
+ document . Descendants ( "AddRazorSupportForMvc" ) . SingleOrDefault ( ) ? . Remove ( ) ;
2425
+ document . Descendants ( "FrameworkReference" ) . SingleOrDefault ( ) ? . Remove ( ) ;
2426
2426
} ) ;
2427
2427
2428
2428
Directory . Delete ( Path . Combine ( projectDirectory . Path , "PackageLibraryDirectDependency" , "Components" ) , recursive : true ) ;
2429
2429
2430
- var pack = new MSBuildCommand ( Log , "Pack" , projectDirectory . Path , "PackageLibraryDirectDependency" ) ;
2430
+ var pack = new MSBuildCommand ( projectDirectory , "Pack" , "PackageLibraryDirectDependency" ) ;
2431
2431
pack . WithWorkingDirectory ( projectDirectory . Path ) ;
2432
2432
var result = pack . Execute ( "/bl" ) ;
2433
2433
0 commit comments