Skip to content

Commit 745214d

Browse files
dotnet-maestro[bot]jonathanpepperspjcollins
authored
Bump to dotnet/installer@c7afae69 7.0.100-preview.4.22174.1 (#6598)
Context: dotnet/runtime#56989 Context: dotnet/runtime#68734 Context: dotnet/runtime#68914 Context: dotnet/runtime#68701 Changes: dotnet/installer@04e40fa...c7afae6 % git diff --shortstat 04e40fa9...c7afae69 98 files changed, 1788 insertions(+), 1191 deletions(-) Changes: dotnet/runtime@a21b9a2...c5d40c9 % git diff --shortstat a21b9a2d...c5d40c9e 28347 files changed, 1609359 insertions(+), 1066473 deletions(-) Changes: dotnet/linker@01c4f59...04c49c9 % git diff --shortstat 01c4f590...04c49c9d 577 files changed, 28039 insertions(+), 10835 deletions(-) Updates to build with the .NET 7 SDK and use the runtime specified by the SDK. We no longer use different SDK & runtime versions. This produces a 7.0.100 Android workload. After this is merged we should be able to enable Maestro to consume future .NET 7 builds from dotnet/installer/main. ~~ Known Issues ~~ AOT+LLVM crashes on startup: * dotnet/runtime#68914 Xamarin.Build.Download hits a breaking change with `ZipEntry`: * dotnet/runtime#68734 * xamarin/XamarinComponents#1368 illink outputs different MVIDs per architecture: * dotnet/linker#2203 * dotnet/runtime#67660 Size of `libmonosgen-2.0.so` regressed: * dotnet/runtime#68330 * dotnet/runtime#68354 Newer .NET 7 builds crash on startup: * dotnet/runtime#68701 * This is worked around by *disabling* lazy loading of AOT'd assemblies 6dc426f. * TODO: re-enable once we get a fixed .NET 7 runtime. TODO: We can't yet push to the `dotnet7` feed. Working on this. Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com> Co-authored-by: Peter Collins <pecolli@microsoft.com>
1 parent 1fa74d1 commit 745214d

35 files changed

+207
-159
lines changed

Configuration.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<AndroidLatestUnstablePlatformId Condition="'$(AndroidLatestUnstablePlatformId)' == ''">Tiramisu</AndroidLatestUnstablePlatformId>
3939
<AndroidLatestUnstableFrameworkVersion Condition="'$(AndroidLatestUnstableFrameworkVersion)'==''">v12.1.99</AndroidLatestUnstableFrameworkVersion>
4040
<!-- The default API level used for $(TargetPlatformVersion) -->
41-
<AndroidDefaultTargetDotnetApiLevel Condition=" '$(AndroidDefaultTargetDotnetApiLevel)' == '' ">31</AndroidDefaultTargetDotnetApiLevel>
41+
<AndroidDefaultTargetDotnetApiLevel Condition=" '$(AndroidDefaultTargetDotnetApiLevel)' == '' ">32</AndroidDefaultTargetDotnetApiLevel>
4242
<!-- The API level and TargetFrameworkVersion for the default Mono.Android.dll build -->
4343
<AndroidApiLevel Condition=" '$(AndroidApiLevel)' == '' ">$(AndroidLatestStableApiLevel)</AndroidApiLevel>
4444
<AndroidPlatformId Condition=" '$(AndroidPlatformId)' == '' ">$(AndroidLatestStablePlatformId)</AndroidPlatformId>

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22

33
<PropertyGroup>
4-
<DotNetTargetFrameworkVersion>6.0</DotNetTargetFrameworkVersion>
4+
<DotNetTargetFrameworkVersion>7.0</DotNetTargetFrameworkVersion>
55
<DotNetTargetFramework>net$(DotNetTargetFrameworkVersion)</DotNetTargetFramework>
66
<DotNetAndroidTargetFramework>$(DotNetTargetFramework)-android</DotNetAndroidTargetFramework>
77
<!-- Used for bootstrap, command-line tooling, and desktop NUnit projects -->

NuGet.config

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,10 @@
22
<configuration>
33
<packageSources>
44
<clear />
5-
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
6-
<!-- Begin: Package sources from dotnet-emsdk -->
7-
<!-- End: Package sources from dotnet-emsdk -->
8-
<!-- Begin: Package sources from dotnet-runtime -->
9-
<add key="darc-pub-dotnet-runtime-a21b9a2" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-a21b9a2d/nuget/v3/index.json" />
10-
<!-- End: Package sources from dotnet-runtime -->
11-
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
125
<!-- ensure only the sources defined below are used -->
136
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" protocolVersion="3" />
147
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" protocolVersion="3" />
15-
<add key="dotnet6" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json" />
8+
<add key="dotnet7" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json" />
169
<!-- This is needed (currently) for the Xamarin.Android.Deploy.Installer dependency, getting the installer -->
1710
<!-- Android binary, to support delta APK install -->
1811
<add key="xamarin.android util" value="https://pkgs.dev.azure.com/xamarin/public/_packaging/Xamarin.Android/nuget/v3/index.json" />

build-tools/automation/azure-pipelines.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ variables:
5353
value: $[and(ne(variables['System.PullRequest.IsFork'], 'True'), or(contains(variables['Build.SourceBranchName'], 'mono-'), contains(variables['System.PullRequest.SourceBranch'], 'mono-')))]
5454
- name: RunAllTests
5555
value: $[or(eq(variables['XA.RunAllTests'], true), eq(variables['IsMonoBranch'], true))]
56+
# XamarinBuildDownload disabled, due to: https://github.com/dotnet/runtime/issues/68734
5657
- name: DotNetNUnitCategories
57-
value: '& TestCategory != DotNetIgnore & TestCategory != HybridAOT & TestCategory != MkBundle & TestCategory != MonoSymbolicate & TestCategory != PackagesConfig & TestCategory != StaticProject & TestCategory != Debugger & TestCategory != SystemApplication'
58+
value: '& TestCategory != DotNetIgnore & TestCategory != HybridAOT & TestCategory != MkBundle & TestCategory != MonoSymbolicate & TestCategory != PackagesConfig & TestCategory != StaticProject & TestCategory != Debugger & TestCategory != SystemApplication & TestCategory != XamarinBuildDownload'
5859
- ${{ if eq(variables['Build.DefinitionName'], 'Xamarin.Android-Private') }}:
5960
- group: AzureDevOps-Artifact-Feeds-Pats
6061
- group: DotNet-MSRC-Storage
@@ -697,6 +698,8 @@ stages:
697698

698699
- template: yaml-templates/apk-instrumentation.yaml
699700
parameters:
701+
# TODO: disable LLVM test, see: https://github.com/dotnet/runtime/issues/68914
702+
condition: false
700703
configuration: $(XA.Build.Configuration)
701704
testName: Mono.Android.NET_Tests-AotLlvm
702705
project: tests/Mono.Android-Tests/Runtime-Microsoft.Android.Sdk/Mono.Android.NET-Tests.csproj
@@ -1434,7 +1437,9 @@ stages:
14341437
packagesToPush: $(Build.StagingDirectory)\nuget-signed\*.nupkg
14351438
nuGetFeedType: external
14361439
publishFeedCredentials: $(DotNetFeedCredential)
1437-
condition: and(succeeded(), eq(variables['PushXAPackages'], 'true'))
1440+
condition: false
1441+
# NET7TODO: Enable once we have access to the dnceng-dotnet7 feed.
1442+
#condition: and(succeeded(), eq(variables['PushXAPackages'], 'true'))
14381443

14391444
- template: templates\common\upload-vs-insertion-artifacts.yml@sdk-insertions
14401445
parameters:

build-tools/automation/yaml-templates/run-msbuild-win-tests.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@ jobs:
2626

2727
- template: clean.yaml
2828

29+
# Install a stable verison of .NET for classic tests
30+
- template: use-dot-net.yaml
31+
parameters:
32+
version: 6.0.202
33+
remove_dotnet: true
34+
2935
- template: setup-test-environment.yaml
3036
parameters:
3137
provisionatorChannel: ${{ parameters.provisionatorChannel }}
32-
remove_dotnet: true
3338

3439
- task: DownloadPipelineArtifact@1
3540
inputs:

build-tools/automation/yaml-templates/use-dot-net.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# We prefer this over the UseDotNet task so that we can always clean up old/unstable versions on disk.
33

44
parameters:
5-
version: $(DotNet6Version)
5+
version: $(DotNetSdkVersion)
66
remove_dotnet: false
77

88
steps:

build-tools/automation/yaml-templates/variables.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ variables:
1717
value: 3.11.1
1818
- name: NUnit.NumberOfTestWorkers
1919
value: 4
20-
- name: DotNet6Version
21-
value: 6.0.100
20+
- name: DotNetSdkVersion
21+
value: 7.0.100-preview.2.22153.17
2222
- name: GitHub.Token
2323
value: $(github--pat--vs-mobiletools-engineering-service2)
2424
- name: HostedMacImage
@@ -32,6 +32,6 @@ variables:
3232
- name: TeamName
3333
value: XamarinAndroid
3434
- name: DotNetTargetFramework
35-
value: net6.0
35+
value: net7.0
3636
- name: DotNetStableTargetFramework
3737
value: net6.0

build-tools/create-packs/Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
<_WLManifest Include="$(XamarinAndroidSourcePath)bin\Build$(Configuration)\nuget-unsigned\Microsoft.NET.Sdk.Android.Manifest-*.nupkg" />
9696
</ItemGroup>
9797
<PropertyGroup>
98-
<_WLPackVersion>@(_WLManifest->'%(Filename)'->Replace('Microsoft.NET.Sdk.Android.Manifest-$(DotNetPreviewVersionBand).', ''))</_WLPackVersion>
98+
<_WLPackVersion>@(_WLManifest->'%(Filename)'->Replace('Microsoft.NET.Sdk.Android.Manifest-$(DotNetAndroidManifestVersionBand).', ''))</_WLPackVersion>
9999
<_SdkManifestsFolder>$(DotNetPreviewPath)sdk-manifests\$(DotNetSdkManifestsFolder)\</_SdkManifestsFolder>
100100
</PropertyGroup>
101101
<Unzip

build-tools/create-packs/Microsoft.Android.Ref.proj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ by projects that use the Microsoft.Android framework in .NET 5.
3131
</PropertyGroup>
3232

3333
<ItemGroup>
34+
<!-- TODO: build Java.Interop.dll for .NET 7 -->
3435
<_AndroidRefPackAssemblies Include="$(JavaInteropSourceDirectory)\bin\$(Configuration)-net6.0\ref\Java.Interop.dll" />
3536
<_AndroidRefPackAssemblies Include="$(_MonoAndroidNETOutputRoot)$(DotNetAndroidTargetFramework)$(AndroidApiLevel)\ref\Mono.Android.dll" />
3637
<!-- Always include stable Mono.Android.Export.dll -->

build-tools/create-packs/Microsoft.Android.Runtime.proj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ projects that use the Microsoft.Android framework in .NET 5.
3434
</PropertyGroup>
3535

3636
<ItemGroup>
37+
<!-- TODO: build Java.Interop.dll for .NET 7 -->
3738
<_AndroidRuntimePackAssemblies Include="$(JavaInteropSourceDirectory)\bin\$(Configuration)-net6.0\Java.Interop.dll" />
3839
<_AndroidRuntimePackAssemblies Include="$(_MonoAndroidNETOutputRoot)$(DotNetAndroidTargetFramework)$(AndroidApiLevel)\Mono.Android.dll" />
3940
<!-- Always include stable Mono.Android.Export.dll -->

0 commit comments

Comments
 (0)