diff --git a/Configuration.props b/Configuration.props index f485f865154..5c43fa58459 100644 --- a/Configuration.props +++ b/Configuration.props @@ -38,7 +38,7 @@ Tiramisu v12.1.99 - 31 + 32 $(AndroidLatestStableApiLevel) $(AndroidLatestStablePlatformId) diff --git a/Directory.Build.props b/Directory.Build.props index 59b44ec08b0..4ec9ed53c35 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,7 @@ - 6.0 + 7.0 net$(DotNetTargetFrameworkVersion) $(DotNetTargetFramework)-android diff --git a/NuGet.config b/NuGet.config index 2fb928fa180..c7b1ee54057 100644 --- a/NuGet.config +++ b/NuGet.config @@ -2,17 +2,10 @@ - - - - - - - - + diff --git a/build-tools/automation/azure-pipelines.yaml b/build-tools/automation/azure-pipelines.yaml index 92348ec3022..35e7c11b8c4 100644 --- a/build-tools/automation/azure-pipelines.yaml +++ b/build-tools/automation/azure-pipelines.yaml @@ -53,8 +53,9 @@ variables: value: $[and(ne(variables['System.PullRequest.IsFork'], 'True'), or(contains(variables['Build.SourceBranchName'], 'mono-'), contains(variables['System.PullRequest.SourceBranch'], 'mono-')))] - name: RunAllTests value: $[or(eq(variables['XA.RunAllTests'], true), eq(variables['IsMonoBranch'], true))] + # XamarinBuildDownload disabled, due to: https://github.com/dotnet/runtime/issues/68734 - name: DotNetNUnitCategories - value: '& TestCategory != DotNetIgnore & TestCategory != HybridAOT & TestCategory != MkBundle & TestCategory != MonoSymbolicate & TestCategory != PackagesConfig & TestCategory != StaticProject & TestCategory != Debugger & TestCategory != SystemApplication' + value: '& TestCategory != DotNetIgnore & TestCategory != HybridAOT & TestCategory != MkBundle & TestCategory != MonoSymbolicate & TestCategory != PackagesConfig & TestCategory != StaticProject & TestCategory != Debugger & TestCategory != SystemApplication & TestCategory != XamarinBuildDownload' - ${{ if eq(variables['Build.DefinitionName'], 'Xamarin.Android-Private') }}: - group: AzureDevOps-Artifact-Feeds-Pats - group: DotNet-MSRC-Storage @@ -697,6 +698,8 @@ stages: - template: yaml-templates/apk-instrumentation.yaml parameters: + # TODO: disable LLVM test, see: https://github.com/dotnet/runtime/issues/68914 + condition: false configuration: $(XA.Build.Configuration) testName: Mono.Android.NET_Tests-AotLlvm project: tests/Mono.Android-Tests/Runtime-Microsoft.Android.Sdk/Mono.Android.NET-Tests.csproj @@ -1434,7 +1437,9 @@ stages: packagesToPush: $(Build.StagingDirectory)\nuget-signed\*.nupkg nuGetFeedType: external publishFeedCredentials: $(DotNetFeedCredential) - condition: and(succeeded(), eq(variables['PushXAPackages'], 'true')) + condition: false + # NET7TODO: Enable once we have access to the dnceng-dotnet7 feed. + #condition: and(succeeded(), eq(variables['PushXAPackages'], 'true')) - template: templates\common\upload-vs-insertion-artifacts.yml@sdk-insertions parameters: diff --git a/build-tools/automation/yaml-templates/run-msbuild-win-tests.yaml b/build-tools/automation/yaml-templates/run-msbuild-win-tests.yaml index cd0d8f2b3f5..f974b0c0c4d 100644 --- a/build-tools/automation/yaml-templates/run-msbuild-win-tests.yaml +++ b/build-tools/automation/yaml-templates/run-msbuild-win-tests.yaml @@ -26,10 +26,15 @@ jobs: - template: clean.yaml + # Install a stable verison of .NET for classic tests + - template: use-dot-net.yaml + parameters: + version: 6.0.202 + remove_dotnet: true + - template: setup-test-environment.yaml parameters: provisionatorChannel: ${{ parameters.provisionatorChannel }} - remove_dotnet: true - task: DownloadPipelineArtifact@1 inputs: diff --git a/build-tools/automation/yaml-templates/use-dot-net.yaml b/build-tools/automation/yaml-templates/use-dot-net.yaml index 3dd00128d92..159bcc97382 100644 --- a/build-tools/automation/yaml-templates/use-dot-net.yaml +++ b/build-tools/automation/yaml-templates/use-dot-net.yaml @@ -2,7 +2,7 @@ # We prefer this over the UseDotNet task so that we can always clean up old/unstable versions on disk. parameters: - version: $(DotNet6Version) + version: $(DotNetSdkVersion) remove_dotnet: false steps: diff --git a/build-tools/automation/yaml-templates/variables.yaml b/build-tools/automation/yaml-templates/variables.yaml index 2fdc531b700..376f5a881ac 100644 --- a/build-tools/automation/yaml-templates/variables.yaml +++ b/build-tools/automation/yaml-templates/variables.yaml @@ -17,8 +17,8 @@ variables: value: 3.11.1 - name: NUnit.NumberOfTestWorkers value: 4 -- name: DotNet6Version - value: 6.0.100 +- name: DotNetSdkVersion + value: 7.0.100-preview.2.22153.17 - name: GitHub.Token value: $(github--pat--vs-mobiletools-engineering-service2) - name: HostedMacImage @@ -32,6 +32,6 @@ variables: - name: TeamName value: XamarinAndroid - name: DotNetTargetFramework - value: net6.0 + value: net7.0 - name: DotNetStableTargetFramework value: net6.0 diff --git a/build-tools/create-packs/Directory.Build.targets b/build-tools/create-packs/Directory.Build.targets index 4b0f7262f61..e4861162752 100644 --- a/build-tools/create-packs/Directory.Build.targets +++ b/build-tools/create-packs/Directory.Build.targets @@ -95,7 +95,7 @@ <_WLManifest Include="$(XamarinAndroidSourcePath)bin\Build$(Configuration)\nuget-unsigned\Microsoft.NET.Sdk.Android.Manifest-*.nupkg" /> - <_WLPackVersion>@(_WLManifest->'%(Filename)'->Replace('Microsoft.NET.Sdk.Android.Manifest-$(DotNetPreviewVersionBand).', '')) + <_WLPackVersion>@(_WLManifest->'%(Filename)'->Replace('Microsoft.NET.Sdk.Android.Manifest-$(DotNetAndroidManifestVersionBand).', '')) <_SdkManifestsFolder>$(DotNetPreviewPath)sdk-manifests\$(DotNetSdkManifestsFolder)\ + <_AndroidRefPackAssemblies Include="$(JavaInteropSourceDirectory)\bin\$(Configuration)-net6.0\ref\Java.Interop.dll" /> <_AndroidRefPackAssemblies Include="$(_MonoAndroidNETOutputRoot)$(DotNetAndroidTargetFramework)$(AndroidApiLevel)\ref\Mono.Android.dll" /> diff --git a/build-tools/create-packs/Microsoft.Android.Runtime.proj b/build-tools/create-packs/Microsoft.Android.Runtime.proj index 06f2b653523..4f92b5d87bd 100644 --- a/build-tools/create-packs/Microsoft.Android.Runtime.proj +++ b/build-tools/create-packs/Microsoft.Android.Runtime.proj @@ -34,6 +34,7 @@ projects that use the Microsoft.Android framework in .NET 5. + <_AndroidRuntimePackAssemblies Include="$(JavaInteropSourceDirectory)\bin\$(Configuration)-net6.0\Java.Interop.dll" /> <_AndroidRuntimePackAssemblies Include="$(_MonoAndroidNETOutputRoot)$(DotNetAndroidTargetFramework)$(AndroidApiLevel)\Mono.Android.dll" /> diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 8a717674842..1e1e8c0bc5b 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -1,20 +1,20 @@ - + https://github.com/dotnet/installer - 04e40fa940291c528688bb46a1aa0e6efdbab7cf + c7afae6936bf80239aa93bfd3b6f68513d9876d4 - + https://github.com/dotnet/linker - 01c4f5905959c29f86781b85187bb676fc517ee9 + 04c49c9d7c244d7c73d6dbb438c4885fa72e830b - + https://github.com/dotnet/runtime - a21b9a2dd4c31cf5bd37626562b7612faf21cee6 + c5d40c9e703fd257db1b26ef4fd1399bbae73ab0 - + https://github.com/dotnet/emsdk - 52e9452f82e26f9fcae791e84c082ae22f1ef66f + b8e71431b3eaa024afad7886699f8ac6bca2ba01 diff --git a/eng/Versions.props b/eng/Versions.props index 05bcba3fe86..7feef038fa6 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -1,13 +1,13 @@ - 6.0.300-rtm.22214.7 - 6.0.200-1.22178.2 - 6.0.5 + 7.0.100-preview.4.22174.1 + 7.0.100-1.22173.2 + 7.0.0-preview.4.22172.7 7.0.0-beta.22103.1 7.0.0-beta.22103.1 - 6.0.4 - $(MicrosoftNETWorkloadEmscriptenManifest60300PackageVersion) + 7.0.0-preview.3.22121.1 + $(MicrosoftNETWorkloadEmscriptenManifest70100Version) diff --git a/src/Microsoft.Android.Templates/android-bindinglib/AndroidBinding1.csproj b/src/Microsoft.Android.Templates/android-bindinglib/AndroidBinding1.csproj index 2cf3b2f456a..cc53c7b8326 100644 --- a/src/Microsoft.Android.Templates/android-bindinglib/AndroidBinding1.csproj +++ b/src/Microsoft.Android.Templates/android-bindinglib/AndroidBinding1.csproj @@ -1,6 +1,6 @@ - net6.0-android + net7.0-android SUPPORTED_OS_PLATFORM_VERSION AndroidBinding1 enable diff --git a/src/Microsoft.Android.Templates/android/AndroidApp1.csproj b/src/Microsoft.Android.Templates/android/AndroidApp1.csproj index 16f9ea6f3e5..ffe09512dde 100644 --- a/src/Microsoft.Android.Templates/android/AndroidApp1.csproj +++ b/src/Microsoft.Android.Templates/android/AndroidApp1.csproj @@ -1,6 +1,6 @@ - net6.0-android + net7.0-android SUPPORTED_OS_PLATFORM_VERSION AndroidApp1 Exe diff --git a/src/Microsoft.Android.Templates/androidlib/AndroidLib1.csproj b/src/Microsoft.Android.Templates/androidlib/AndroidLib1.csproj index 46aa993fc7f..787e6f8939b 100644 --- a/src/Microsoft.Android.Templates/androidlib/AndroidLib1.csproj +++ b/src/Microsoft.Android.Templates/androidlib/AndroidLib1.csproj @@ -1,6 +1,6 @@ - net6.0-android + net7.0-android SUPPORTED_OS_PLATFORM_VERSION AndroidLib1 enable diff --git a/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/in/Microsoft.Android.Sdk.BundledVersions.in.targets b/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/in/Microsoft.Android.Sdk.BundledVersions.in.targets index 0e9a59e25e2..a6c3c177066 100644 --- a/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/in/Microsoft.Android.Sdk.BundledVersions.in.targets +++ b/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/in/Microsoft.Android.Sdk.BundledVersions.in.targets @@ -17,6 +17,18 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and <_AndroidRuntimePackId Condition=" '$(_AndroidRuntimePackId)' == '' ">$(_AndroidTargetingPackId) + + + true