Skip to content

[DO NOT MERGE] Test building AndroidX with .NET 8 Preview SDK. #713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<RepositoryCommit>$(BUILD_SOURCEVERSION)</RepositoryCommit>

<!-- Default TFM's we build for -->
<_DefaultTargetFrameworks>MonoAndroid12.0;net6.0-android</_DefaultTargetFrameworks>
<_DefaultTargetFrameworks>net8.0-android</_DefaultTargetFrameworks>

<!-- Enable DIM/SIM for Classic (defaults to true on .NET) -->
<AndroidBoundInterfacesContainStaticAndDefaultInterfaceMethods>true</AndroidBoundInterfacesContainStaticAndDefaultInterfaceMethods>
Expand Down
2 changes: 1 addition & 1 deletion build/ci/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ parameters:
windowsImage: 'windows-latest' # the name of the Windows VM image

# Tool Parameters
dotnetVersion: '7.0.306' # the version of .NET to use
dotnetVersion: '8.x' # the version of .NET to use
dotnetWorkloadRollbackFile: 'workloads.json'
dotnetWorkloadSource: 'https://aka.ms/dotnet6/nuget/index.json'
dotnetNuGetOrgSource: 'https://api.nuget.org/v3/index.json'
Expand Down
8 changes: 7 additions & 1 deletion build/ci/setup-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ parameters:

steps:
# before the build starts, make sure the tooling is as expected
# Global tools like `binderator` don't support .NET 8 yet
- task: UseDotNet@2
displayName: 'Install .NET 6'
inputs:
version: 6.x

- task: UseDotNet@2
displayName: 'Use dotnet ${{ parameters.dotnetVersion }}'
inputs:
Expand All @@ -18,7 +24,7 @@ steps:
condition: ne('${{ parameters.dotnetVersion }}', '')

- pwsh: |
dotnet workload install maui --verbosity diag --from-rollback-file ${{ parameters.dotnetWorkloadRollbackFile }} --source ${{ parameters.dotnetWorkloadSource }} --source ${{ parameters.dotnetNuGetOrgSource }}
dotnet workload install maui
if ($LASTEXITCODE -ne 0) {
Write-Host "##vso[task.logissue type=error]Failed to install workloads."
Write-Host "##vso[task.complete result=Failed;]"
Expand Down
5 changes: 3 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"sdk":
{
"version": "7.0.306",
"rollForward": "patch"
"version": "8.0.0",
"allowPrerelease": true,
"rollForward": "latestMinor"
},
"msbuild-sdks":
{
Expand Down