File tree Expand file tree Collapse file tree 5 files changed +44
-10
lines changed
Containers/packaging/build
Tests/Microsoft.NET.Build.Containers.IntegrationTests Expand file tree Collapse file tree 5 files changed +44
-10
lines changed Original file line number Diff line number Diff line change 30
30
<add key =" darc-int-dotnet-runtime-89ef51c" value =" https://pkgs.dev.azure.com/dnceng/internal/_packaging/darc-int-dotnet-runtime-89ef51c5/nuget/v3/index.json" />
31
31
<!-- End: Package sources from dotnet-runtime -->
32
32
<!-- Begin: Package sources from dotnet-templating -->
33
+ <add key =" darc-pub-dotnet-templating-7d36300" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-templating-7d36300e/nuget/v3/index.json" />
33
34
<add key =" darc-pub-dotnet-templating-b8edc79" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-templating-b8edc791/nuget/v3/index.json" />
34
35
<add key =" darc-pub-dotnet-templating-b8edc79-3" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-templating-b8edc791-3/nuget/v3/index.json" />
35
36
<add key =" darc-pub-dotnet-templating-b8edc79-2" value =" https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-templating-b8edc791-2/nuget/v3/index.json" />
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<Dependencies >
3
3
<ProductDependencies >
4
- <Dependency Name =" Microsoft.TemplateEngine.Abstractions" Version =" 8.0.405 " >
4
+ <Dependency Name =" Microsoft.TemplateEngine.Abstractions" Version =" 8.0.406 " >
5
5
<Uri >https://github.com/dotnet/templating</Uri >
6
- <Sha >b8edc79137b4beddbee6c98794638fa0110b40df </Sha >
6
+ <Sha >7d36300e8f8e564c786fd76a49c4c4e99abf1fb2 </Sha >
7
7
</Dependency >
8
- <Dependency Name =" Microsoft.TemplateEngine.Mocks" Version =" 8.0.405 -servicing.24575.2 " >
8
+ <Dependency Name =" Microsoft.TemplateEngine.Mocks" Version =" 8.0.406 -servicing.25057.5 " >
9
9
<Uri >https://github.com/dotnet/templating</Uri >
10
- <Sha >b8edc79137b4beddbee6c98794638fa0110b40df </Sha >
10
+ <Sha >7d36300e8f8e564c786fd76a49c4c4e99abf1fb2 </Sha >
11
11
</Dependency >
12
- <Dependency Name =" Microsoft.SourceBuild.Intermediate.templating" Version =" 8.0.405 -servicing.24575.2 " >
12
+ <Dependency Name =" Microsoft.SourceBuild.Intermediate.templating" Version =" 8.0.406 -servicing.25057.5 " >
13
13
<Uri >https://github.com/dotnet/templating</Uri >
14
- <Sha >b8edc79137b4beddbee6c98794638fa0110b40df </Sha >
14
+ <Sha >7d36300e8f8e564c786fd76a49c4c4e99abf1fb2 </Sha >
15
15
<SourceBuild RepoName =" templating" ManagedOnly =" true" />
16
16
</Dependency >
17
17
<Dependency Name =" Microsoft.NETCore.App.Ref" Version =" 8.0.12" >
Original file line number Diff line number Diff line change 141
141
</PropertyGroup >
142
142
<PropertyGroup >
143
143
<!-- Dependencies from https://github.com/dotnet/templating -->
144
- <MicrosoftTemplateEngineAbstractionsPackageVersion >8.0.405 </MicrosoftTemplateEngineAbstractionsPackageVersion >
144
+ <MicrosoftTemplateEngineAbstractionsPackageVersion >8.0.406 </MicrosoftTemplateEngineAbstractionsPackageVersion >
145
145
<MicrosoftTemplateEngineEdgePackageVersion >$(MicrosoftTemplateEngineAbstractionsPackageVersion)</MicrosoftTemplateEngineEdgePackageVersion >
146
146
<MicrosoftTemplateEngineOrchestratorRunnableProjectsPackageVersion >$(MicrosoftTemplateEngineAbstractionsPackageVersion)</MicrosoftTemplateEngineOrchestratorRunnableProjectsPackageVersion >
147
147
<MicrosoftTemplateEngineUtilsPackageVersion >$(MicrosoftTemplateEngineAbstractionsPackageVersion)</MicrosoftTemplateEngineUtilsPackageVersion >
148
148
<MicrosoftTemplateSearchCommonPackageVersion >$(MicrosoftTemplateEngineAbstractionsPackageVersion)</MicrosoftTemplateSearchCommonPackageVersion >
149
149
<!-- test dependencies -->
150
- <MicrosoftTemplateEngineMocksPackageVersion >8.0.405 -servicing.24575.2 </MicrosoftTemplateEngineMocksPackageVersion >
150
+ <MicrosoftTemplateEngineMocksPackageVersion >8.0.406 -servicing.25057.5 </MicrosoftTemplateEngineMocksPackageVersion >
151
151
<MicrosoftTemplateEngineTestHelperPackageVersion >$(MicrosoftTemplateEngineMocksPackageVersion)</MicrosoftTemplateEngineTestHelperPackageVersion >
152
152
<MicrosoftTemplateEngineAuthoringTemplateVerifierVersion >$(MicrosoftTemplateEngineAbstractionsPackageVersion)</MicrosoftTemplateEngineAuthoringTemplateVerifierVersion >
153
153
<MicrosoftTemplateSearchTemplateDiscoveryPackageVersion >$(MicrosoftTemplateEngineMocksPackageVersion)</MicrosoftTemplateSearchTemplateDiscoveryPackageVersion >
Original file line number Diff line number Diff line change 110
110
111
111
<ItemGroup Label =" AppCommand Assignment" Condition =" '$(ContainerAppCommandInstruction)' != 'None'" >
112
112
<!-- For self-contained, invoke the native executable as a single arg -->
113
- <ContainerAppCommand Condition =" @(ContainerAppCommand->Count()) == 0 and '$(UseAppHost )' == 'true' and !$(_ContainerIsTargetingWindows)" Include =" $(ContainerWorkingDirectory)/$(AssemblyName)" />
114
- <ContainerAppCommand Condition =" @(ContainerAppCommand->Count()) == 0 and '$(UseAppHost )' == 'true' and $(_ContainerIsTargetingWindows)" Include =" $(AssemblyName)$(_NativeExecutableExtension)" />
113
+ <ContainerAppCommand Condition =" @(ContainerAppCommand->Count()) == 0 and '$(_ContainerIsSelfContained )' == 'true' and !$(_ContainerIsTargetingWindows)" Include =" $(ContainerWorkingDirectory)/$(AssemblyName)" />
114
+ <ContainerAppCommand Condition =" @(ContainerAppCommand->Count()) == 0 and '$(_ContainerIsSelfContained )' == 'true' and $(_ContainerIsTargetingWindows)" Include =" $(AssemblyName)$(_NativeExecutableExtension)" />
115
115
<!-- For non self-contained, invoke `dotnet` `app.dll` as separate args -->
116
116
<ContainerAppCommand Condition =" @(ContainerAppCommand->Count()) == 0" Include =" dotnet;$(TargetFileName)" />
117
117
</ItemGroup >
Original file line number Diff line number Diff line change @@ -688,6 +688,39 @@ public void EndToEnd_NoAPI_Console()
688
688
privateNuGetAssets . Delete ( true ) ;
689
689
}
690
690
691
+ [ DockerAvailableFact ]
692
+ public void EndToEnd_SingleArch_NoRid ( )
693
+ {
694
+ // Create a new console project
695
+ DirectoryInfo newProjectDir = CreateNewProject ( "console" ) ;
696
+
697
+ string imageName = NewImageName ( ) ;
698
+ string imageTag = "1.0" ;
699
+
700
+ // Run PublishContainer for multi-arch
701
+ CommandResult commandResult = new DotnetCommand (
702
+ _testOutput ,
703
+ "publish" ,
704
+ "/t:PublishContainer" ,
705
+ $ "/p:ContainerBaseImage={ DockerRegistryManager . FullyQualifiedBaseImageAspNet } ",
706
+ $ "/p:ContainerRepository={ imageName } ",
707
+ $ "/p:ContainerImageTag={ imageTag } ",
708
+ "/p:EnableSdkContainerSupport=true" )
709
+ . WithWorkingDirectory ( newProjectDir . FullName )
710
+ . Execute ( ) ;
711
+ commandResult . Should ( ) . Pass ( ) ;
712
+
713
+ // Check that the containers can be run
714
+ CommandResult processResultX64 = ContainerCli . RunCommand (
715
+ _testOutput ,
716
+ "--rm" ,
717
+ "--name" ,
718
+ $ "test-container-singlearch-norid",
719
+ $ "{ imageName } :{ imageTag } ")
720
+ . Execute ( ) ;
721
+ processResultX64 . Should ( ) . Pass ( ) . And . HaveStdOut ( "Hello, World!" ) ;
722
+ }
723
+
691
724
[ DockerSupportsArchFact ( "linux/arm64" ) ]
692
725
public void EndToEndMultiArch_LocalRegistry ( )
693
726
{
You can’t perform that action at this time.
0 commit comments