Skip to content

Commit fc349cb

Browse files
[release/6.0.4xx] Update dependencies from dotnet/arcade (#29038)
* Update dependencies from https://github.com/dotnet/arcade build 20221108.7 Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SignTool , Microsoft.DotNet.XUnitExtensions From Version 6.0.0-beta.22558.2 -> To Version 6.0.0-beta.22558.7 * Update dependencies from https://github.com/dotnet/arcade build 20221110.1 Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.SignTool , Microsoft.DotNet.XUnitExtensions From Version 6.0.0-beta.22558.2 -> To Version 6.0.0-beta.22560.1 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
1 parent 45dd9f2 commit fc349cb

File tree

6 files changed

+68
-73
lines changed

6 files changed

+68
-73
lines changed

NuGet.config

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,16 @@
44
<clear />
55
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
66
<!-- Begin: Package sources from dotnet-aspnetcore -->
7-
<add key="darc-int-dotnet-aspnetcore-617d594" value="https://pkgs.dev.azure.com/dnceng/internal/_packaging/darc-int-dotnet-aspnetcore-617d594f/nuget/v3/index.json" />
87
<!-- End: Package sources from dotnet-aspnetcore -->
98
<!-- Begin: Package sources from DotNet-msbuild-Trusted -->
109
<!-- End: Package sources from DotNet-msbuild-Trusted -->
1110
<!-- Begin: Package sources from dotnet-roslyn-analyzers -->
1211
<!-- End: Package sources from dotnet-roslyn-analyzers -->
1312
<!-- Begin: Package sources from dotnet-runtime -->
14-
<add key="darc-int-dotnet-runtime-943474c" value="https://pkgs.dev.azure.com/dnceng/internal/_packaging/darc-int-dotnet-runtime-943474ca/nuget/v3/index.json" />
1513
<!-- End: Package sources from dotnet-runtime -->
1614
<!-- Begin: Package sources from dotnet-templating -->
17-
<add key="darc-int-dotnet-templating-3d823d1" value="https://pkgs.dev.azure.com/dnceng/internal/_packaging/darc-int-dotnet-templating-3d823d12/nuget/v3/index.json" />
1815
<!-- End: Package sources from dotnet-templating -->
1916
<!-- Begin: Package sources from dotnet-windowsdesktop -->
20-
<add key="darc-int-dotnet-windowsdesktop-ee26d5b" value="https://pkgs.dev.azure.com/dnceng/internal/_packaging/darc-int-dotnet-windowsdesktop-ee26d5bd/nuget/v3/index.json" />
2117
<!-- End: Package sources from dotnet-windowsdesktop -->
2218
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
2319
<add key="dotnet6" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json" />
@@ -37,16 +33,12 @@
3733
<!-- Begin: Package sources from DotNet-msbuild-Trusted -->
3834
<!-- End: Package sources from DotNet-msbuild-Trusted -->
3935
<!-- Begin: Package sources from dotnet-templating -->
40-
<add key="darc-int-dotnet-templating-3d823d1" value="true" />
4136
<!-- End: Package sources from dotnet-templating -->
4237
<!-- Begin: Package sources from dotnet-aspnetcore -->
43-
<add key="darc-int-dotnet-aspnetcore-617d594" value="true" />
4438
<!-- End: Package sources from dotnet-aspnetcore -->
4539
<!-- Begin: Package sources from dotnet-runtime -->
46-
<add key="darc-int-dotnet-runtime-943474c" value="true" />
4740
<!-- End: Package sources from dotnet-runtime -->
4841
<!-- Begin: Package sources from dotnet-windowsdesktop -->
49-
<add key="darc-int-dotnet-windowsdesktop-ee26d5b" value="true" />
5042
<!-- End: Package sources from dotnet-windowsdesktop -->
5143
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
5244
</disabledPackageSources>

eng/Version.Details.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -287,22 +287,22 @@
287287
</Dependency>
288288
</ProductDependencies>
289289
<ToolsetDependencies>
290-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.22558.2">
290+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.22561.1">
291291
<Uri>https://github.com/dotnet/arcade</Uri>
292-
<Sha>841e1fe0d2498a7ac6445e458ae521511ec226ca</Sha>
292+
<Sha>0967701e5527a1be21d9473821077c3f4be7f9dc</Sha>
293293
<SourceBuild RepoName="arcade" ManagedOnly="true" />
294294
</Dependency>
295-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="6.0.0-beta.22558.2">
295+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="6.0.0-beta.22561.1">
296296
<Uri>https://github.com/dotnet/arcade</Uri>
297-
<Sha>841e1fe0d2498a7ac6445e458ae521511ec226ca</Sha>
297+
<Sha>0967701e5527a1be21d9473821077c3f4be7f9dc</Sha>
298298
</Dependency>
299-
<Dependency Name="Microsoft.DotNet.SignTool" Version="6.0.0-beta.22558.2">
299+
<Dependency Name="Microsoft.DotNet.SignTool" Version="6.0.0-beta.22561.1">
300300
<Uri>https://github.com/dotnet/arcade</Uri>
301-
<Sha>841e1fe0d2498a7ac6445e458ae521511ec226ca</Sha>
301+
<Sha>0967701e5527a1be21d9473821077c3f4be7f9dc</Sha>
302302
</Dependency>
303-
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="6.0.0-beta.22558.2">
303+
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="6.0.0-beta.22561.1">
304304
<Uri>https://github.com/dotnet/arcade</Uri>
305-
<Sha>841e1fe0d2498a7ac6445e458ae521511ec226ca</Sha>
305+
<Sha>0967701e5527a1be21d9473821077c3f4be7f9dc</Sha>
306306
</Dependency>
307307
<Dependency Name="System.Reflection.MetadataLoadContext" Version="6.0.0">
308308
<Uri>https://github.com/dotnet/runtime</Uri>

eng/Versions.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<NewtonsoftJsonVersion>$(NewtonsoftJsonPackageVersion)</NewtonsoftJsonVersion>
2929
<SystemDiagnosticsFileVersionInfoVersion>4.0.0</SystemDiagnosticsFileVersionInfoVersion>
3030
<SystemReflectionMetadataVersion>6.0.0</SystemReflectionMetadataVersion>
31-
<MicrosoftDotNetSignToolVersion>6.0.0-beta.22558.2</MicrosoftDotNetSignToolVersion>
31+
<MicrosoftDotNetSignToolVersion>6.0.0-beta.22561.1</MicrosoftDotNetSignToolVersion>
3232
<MicrosoftWebXdtPackageVersion>3.1.0</MicrosoftWebXdtPackageVersion>
3333
<SystemCollectionsSpecializedPackageVersion>4.3.0</SystemCollectionsSpecializedPackageVersion>
3434
<SystemXmlXmlDocumentPackageVersion>4.3.0</SystemXmlXmlDocumentPackageVersion>
@@ -172,7 +172,7 @@
172172
<PropertyGroup>
173173
<FluentAssertionsVersion>4.19.2</FluentAssertionsVersion>
174174
<FluentAssertionsJsonVersion>4.19.0</FluentAssertionsJsonVersion>
175-
<MicrosoftDotNetXUnitExtensionsVersion>6.0.0-beta.22558.2</MicrosoftDotNetXUnitExtensionsVersion>
175+
<MicrosoftDotNetXUnitExtensionsVersion>6.0.0-beta.22561.1</MicrosoftDotNetXUnitExtensionsVersion>
176176
<MoqPackageVersion>4.8.2</MoqPackageVersion>
177177
<MicrosoftDotNetInstallerWindowsSecurityTestDataPackageVersion>6.0.0-beta.22262.1</MicrosoftDotNetInstallerWindowsSecurityTestDataPackageVersion>
178178
</PropertyGroup>

eng/common/dotnet-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ done
5252
# Use uname to determine what the CPU is, see https://en.wikipedia.org/wiki/Uname#Examples
5353
cpuname=$(uname -m)
5454
case $cpuname in
55-
aarch64)
55+
arm64|aarch64)
5656
buildarch=arm64
5757
;;
5858
amd64|x86_64)
@@ -61,7 +61,7 @@ case $cpuname in
6161
armv*l)
6262
buildarch=arm
6363
;;
64-
i686)
64+
i[3-6]86)
6565
buildarch=x86
6666
;;
6767
*)

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
},
1313
"msbuild-sdks": {
14-
"Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.22558.2",
15-
"Microsoft.DotNet.Helix.Sdk": "6.0.0-beta.22558.2"
14+
"Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.22561.1",
15+
"Microsoft.DotNet.Helix.Sdk": "6.0.0-beta.22561.1"
1616
}
1717
}

src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildASelfContainedApp.cs

Lines changed: 54 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -99,63 +99,63 @@ public void It_errors_out_when_RuntimeIdentifier_architecture_and_PlatformTarget
9999
const string PlatformTarget = "x86";
100100

101101
var testAsset = _testAssetsManager
102-
.CopyTestAsset("HelloWorld")
103-
.WithSource()
104-
.WithProjectChanges(project =>
105-
{
106-
var ns = project.Root.Name.Namespace;
107-
var propertyGroup = project.Root.Elements(ns + "PropertyGroup").First();
108-
propertyGroup.Add(new XElement(ns + "RuntimeIdentifier", RuntimeIdentifier));
102+
.CopyTestAsset("HelloWorld")
103+
.WithSource()
104+
.WithProjectChanges(project =>
105+
{
106+
var ns = project.Root.Name.Namespace;
107+
var propertyGroup = project.Root.Elements(ns + "PropertyGroup").First();
108+
propertyGroup.Add(new XElement(ns + "RuntimeIdentifier", RuntimeIdentifier));
109109
propertyGroup.Add(new XElement(ns + "PlatformTarget", PlatformTarget));
110-
});
110+
});
111111

112-
var buildCommand = new BuildCommand(testAsset);
112+
var buildCommand = new BuildCommand(testAsset);
113113

114-
buildCommand
115-
.Execute()
116-
.Should()
114+
buildCommand
115+
.Execute()
116+
.Should()
117117
.Fail()
118118
.And.HaveStdOutContaining(string.Format(
119119
Strings.CannotHaveRuntimeIdentifierPlatformMismatchPlatformTarget,
120120
RuntimeIdentifier,
121121
PlatformTarget));
122122
}
123123

124-
[Fact]
125-
public void It_succeeds_when_RuntimeIdentifier_and_PlatformTarget_mismatch_but_PT_is_AnyCPU()
126-
{
127-
var targetFramework = ToolsetInfo.CurrentTargetFramework;
128-
var runtimeIdentifier = EnvironmentInfo.GetCompatibleRid(targetFramework);
129-
var testAsset = _testAssetsManager
130-
.CopyTestAsset("HelloWorld")
131-
.WithSource()
132-
.WithProjectChanges(project =>
133-
{
134-
var ns = project.Root.Name.Namespace;
135-
var propertyGroup = project.Root.Elements(ns + "PropertyGroup").First();
136-
propertyGroup.Add(new XElement(ns + "RuntimeIdentifier", runtimeIdentifier));
137-
propertyGroup.Add(new XElement(ns + "PlatformTarget", "AnyCPU"));
138-
});
139-
140-
var buildCommand = new BuildCommand(testAsset);
141-
142-
buildCommand
143-
.Execute()
144-
.Should()
145-
.Pass();
146-
147-
var outputDirectory = buildCommand.GetOutputDirectory(targetFramework, runtimeIdentifier: runtimeIdentifier);
148-
var selfContainedExecutable = $"HelloWorld{Constants.ExeSuffix}";
149-
150-
string selfContainedExecutableFullPath = Path.Combine(outputDirectory.FullName, selfContainedExecutable);
124+
[Fact]
125+
public void It_succeeds_when_RuntimeIdentifier_and_PlatformTarget_mismatch_but_PT_is_AnyCPU()
126+
{
127+
var targetFramework = ToolsetInfo.CurrentTargetFramework;
128+
var runtimeIdentifier = EnvironmentInfo.GetCompatibleRid(targetFramework);
129+
var testAsset = _testAssetsManager
130+
.CopyTestAsset("HelloWorld")
131+
.WithSource()
132+
.WithProjectChanges(project =>
133+
{
134+
var ns = project.Root.Name.Namespace;
135+
var propertyGroup = project.Root.Elements(ns + "PropertyGroup").First();
136+
propertyGroup.Add(new XElement(ns + "RuntimeIdentifier", runtimeIdentifier));
137+
propertyGroup.Add(new XElement(ns + "PlatformTarget", "AnyCPU"));
138+
});
139+
140+
var buildCommand = new BuildCommand(testAsset);
141+
142+
buildCommand
143+
.Execute()
144+
.Should()
145+
.Pass();
146+
147+
var outputDirectory = buildCommand.GetOutputDirectory(targetFramework, runtimeIdentifier: runtimeIdentifier);
148+
var selfContainedExecutable = $"HelloWorld{Constants.ExeSuffix}";
149+
150+
string selfContainedExecutableFullPath = Path.Combine(outputDirectory.FullName, selfContainedExecutable);
151151

152152
new RunExeCommand(Log, selfContainedExecutableFullPath)
153-
.Execute()
154-
.Should()
155-
.Pass()
156-
.And
157-
.HaveStdOutContaining("Hello World!");
158-
}
153+
.Execute()
154+
.Should()
155+
.Pass()
156+
.And
157+
.HaveStdOutContaining("Hello World!");
158+
}
159159

160160
[RequiresMSBuildVersionFact("17.0.0.32901")]
161161
public void It_resolves_runtimepack_from_packs_folder()
@@ -317,7 +317,7 @@ static int Last2DigitsTo0(int versionBuild)
317317
");
318318

319319
// Verify correct targeting pack version is resolved
320-
var getValuesCommand = (GetValuesCommand) new GetValuesCommand(testAsset, "TargetingPack", GetValuesCommand.ValueType.Item)
320+
var getValuesCommand = (GetValuesCommand)new GetValuesCommand(testAsset, "TargetingPack", GetValuesCommand.ValueType.Item)
321321
.WithEnvironmentVariable(EnvironmentVariableNames.WORKLOAD_MANIFEST_ROOTS, manifestRoot);
322322
getValuesCommand.MetadataNames = new List<string>() { "NuGetPackageId", "NuGetPackageVersion" };
323323
getValuesCommand.DependsOnTargets = "ProcessFrameworkReferences";
@@ -349,29 +349,32 @@ static int Last2DigitsTo0(int versionBuild)
349349
testRuntimePack.metadata["NuGetPackageVersion"].Should().Be("1.0.42-abc");
350350
}
351351

352-
[Theory]
352+
[RequiresMSBuildVersionTheory("17.4.0.51802")]
353353
[InlineData("net6.0")]
354-
public void It_can_publish_runtime_specific_apps_with_library_dependencies_self_contained(string targetFramework) {
354+
public void It_can_publish_runtime_specific_apps_with_library_dependencies_self_contained(string targetFramework)
355+
{
355356

356357
// create a basic library and a basic app, reference the library from the app and then
357358
// publish the app with a RID specified and self-contained.
358359
// verify that no warnings about missing the --self-contained flag are emitted.
359360
var rid = EnvironmentInfo.GetCompatibleRid(targetFramework);
360-
var libProject = new TestProject("RidSelfContainedLib"){
361+
var libProject = new TestProject("RidSelfContainedLib")
362+
{
361363
IsExe = false,
362364
TargetFrameworks = targetFramework,
363365
IsSdkProject = true
364366
};
365367
var createdLibProject = _testAssetsManager.CreateTestProject(libProject);
366-
var appProject = new TestProject("RidSelfContainedApp") {
368+
var appProject = new TestProject("RidSelfContainedApp")
369+
{
367370
IsExe = true,
368371
TargetFrameworks = targetFramework,
369372
IsSdkProject = true
370373
};
371374
appProject.ReferencedProjects.Add(libProject);
372375
var createdAppProject = _testAssetsManager.CreateTestProject(appProject);
373376
var publishCommand = new PublishCommand(createdAppProject);
374-
publishCommand.Execute(new [] {"-property:SelfContained=true", "-property:_CommandLineDefinedSelfContained=true", $"-property:RuntimeIdentifier={rid}", "-property:_CommandLineDefinedRuntimeIdentifier=true" }).Should().Pass().And.NotHaveStdOutContaining("warning");
377+
publishCommand.Execute(new[] { "-property:SelfContained=true", "-property:_CommandLineDefinedSelfContained=true", $"-property:RuntimeIdentifier={rid}", "-property:_CommandLineDefinedRuntimeIdentifier=true" }).Should().Pass().And.NotHaveStdOutContaining("warning");
375378
}
376379
}
377380
}

0 commit comments

Comments
 (0)