@@ -260,7 +260,7 @@ public void WindowsUsersGetLinuxContainers(string sdkPortableRid, string expecte
260
260
[ InlineData ( "8.0.100-preview.2" , "v8.0" , "jammy" , "8.0.0-preview.2-jammy" ) ]
261
261
[ InlineData ( "8.0.100-preview.2" , "v8.0" , "jammy-chiseled" , "8.0.0-preview.2-jammy-chiseled" ) ]
262
262
[ InlineData ( "8.0.100-rc.2" , "v8.0" , "jammy-chiseled" , "8.0.0-rc.2-jammy-chiseled" ) ]
263
- [ InlineData ( "8.0.100" , "v8.0" , "jammy-chiseled" , "8.0-jammy-chiseled" ) ]
263
+ [ InlineData ( "8.0.100" , "v8.0" , "jammy-chiseled" , "8.0-jammy-chiseled-extra " ) ]
264
264
[ Theory ]
265
265
public void CanTakeContainerBaseFamilyIntoAccount ( string sdkVersion , string tfmMajMin , string containerFamily , string expectedTag )
266
266
{
@@ -383,6 +383,47 @@ public void AOTAppsLessThan8DoNotGetAOTImages(string rid, string expectedImage)
383
383
computedBaseImageTag . Should ( ) . BeEquivalentTo ( expectedImage ) ;
384
384
}
385
385
386
+ [ Fact ]
387
+ public void FDDConsoleAppWithCulturesAndOptingIntoChiseledGetsExtras ( )
388
+ {
389
+ var expectedImage = "mcr.microsoft.com/dotnet/runtime:8.0-jammy-chiseled-extra" ;
390
+ var ( project , logger , d ) = ProjectInitializer . InitProject ( new ( )
391
+ {
392
+ [ "NetCoreSdkVersion" ] = "8.0.100" ,
393
+ [ "TargetFrameworkVersion" ] = "v8.0" ,
394
+ [ KnownStrings . Properties . ContainerRuntimeIdentifier ] = "linux-x64" ,
395
+ [ KnownStrings . Properties . ContainerFamily ] = "jammy-chiseled" ,
396
+ [ KnownStrings . Properties . InvariantGlobalization ] = false . ToString ( ) ,
397
+ } , projectName : $ "{ nameof ( FDDConsoleAppWithCulturesAndOptingIntoChiseledGetsExtras ) } ") ;
398
+ using var _ = d ;
399
+ var instance = project . CreateProjectInstance ( global ::Microsoft . Build . Execution . ProjectInstanceSettings . None ) ;
400
+ instance . Build ( new [ ] { ComputeContainerBaseImage } , null , null , out var outputs ) . Should ( ) . BeTrue ( String . Join ( Environment . NewLine , logger . Errors ) ) ;
401
+ var computedBaseImageTag = instance . GetProperty ( ContainerBaseImage ) ? . EvaluatedValue ;
402
+ computedBaseImageTag . Should ( ) . BeEquivalentTo ( expectedImage ) ;
403
+ }
404
+
405
+ [ Fact ]
406
+ public void FDDAspNetAppWithCulturesAndOptingIntoChiseledGetsExtras ( )
407
+ {
408
+ var expectedImage = "mcr.microsoft.com/dotnet/aspnet:8.0-jammy-chiseled-extra" ;
409
+ var ( project , logger , d ) = ProjectInitializer . InitProject ( new ( )
410
+ {
411
+ [ "NetCoreSdkVersion" ] = "8.0.100" ,
412
+ [ "TargetFrameworkVersion" ] = "v8.0" ,
413
+ [ KnownStrings . Properties . ContainerRuntimeIdentifier ] = "linux-x64" ,
414
+ [ KnownStrings . Properties . ContainerFamily ] = "jammy-chiseled" ,
415
+ [ KnownStrings . Properties . InvariantGlobalization ] = false . ToString ( ) ,
416
+ } , bonusItems : new ( )
417
+ {
418
+ [ KnownStrings . Items . FrameworkReference ] = KnownFrameworkReferences . WebApp
419
+ } , projectName : $ "{ nameof ( FDDAspNetAppWithCulturesAndOptingIntoChiseledGetsExtras ) } ") ;
420
+ using var _ = d ;
421
+ var instance = project . CreateProjectInstance ( global ::Microsoft . Build . Execution . ProjectInstanceSettings . None ) ;
422
+ instance . Build ( new [ ] { ComputeContainerBaseImage } , null , null , out var outputs ) . Should ( ) . BeTrue ( String . Join ( Environment . NewLine , logger . Errors ) ) ;
423
+ var computedBaseImageTag = instance . GetProperty ( ContainerBaseImage ) ? . EvaluatedValue ;
424
+ computedBaseImageTag . Should ( ) . BeEquivalentTo ( expectedImage ) ;
425
+ }
426
+
386
427
[ InlineData ( "linux-musl-x64" , "mcr.microsoft.com/dotnet/runtime-deps:7.0-alpine" ) ]
387
428
[ InlineData ( "linux-x64" , "mcr.microsoft.com/dotnet/runtime-deps:7.0" ) ]
388
429
[ Theory ]
0 commit comments