Skip to content

Manual updates 20250411 infrastructure bumps #1122

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

Merged
merged 31 commits into from
Apr 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
4bc7e79
Update global.json
moljac Apr 14, 2025
7a50e53
Update variables.yml
moljac Apr 14, 2025
14c5151
Update Xamarin.AndroidBinderator.csproj
moljac Apr 14, 2025
da5e599
Update Xamarin.Build.Download.Tests.csproj
moljac Apr 14, 2025
1578781
Update Xamarin.Build.Download.csproj
moljac Apr 14, 2025
e991800
Update workloads.json
moljac Apr 14, 2025
56fce2d
package updates
moljac Apr 14, 2025
0e89fe1
TFM fix
moljac Apr 15, 2025
8761da1
Merge branch 'main' into dev/moljac/mu-20250411-infrastructure-bumps
moljac Apr 16, 2025
049cf4c
nullable fixes
moljac Apr 18, 2025
2d98a1b
Update build.cake
moljac Apr 20, 2025
0eb105d
Update Xamarin.AndroidBinderator.csproj
moljac Apr 20, 2025
9cfd319
automatic files
moljac Apr 20, 2025
ef22613
Update Test.cs
moljac Apr 22, 2025
b021f23
downgraded Microsoft.NET.Test.Sdk because of timeouts
moljac Apr 23, 2025
817f106
reverting versions to work around hangs
moljac Apr 24, 2025
be193c0
Merge branch 'main' into dev/moljac/mu-20250411-infrastructure-bumps
moljac Apr 25, 2025
4bbd3cc
cake
moljac Apr 25, 2025
358c5e4
dotnetNextVersion version bump
moljac Apr 25, 2025
3658c73
trim trailing ws
moljac Apr 26, 2025
6984d96
merge typo fix
moljac Apr 26, 2025
fa2974b
Update job-extended-tests.yml
moljac Apr 26, 2025
97b2ca6
tool installation
moljac Apr 26, 2025
86ebe59
Update setup-environment.yml
moljac Apr 26, 2025
6e9b7a9
cake 4.2.0 attempt
moljac Apr 26, 2025
8866c12
--verbosity:diagnostic added for troubleshooting
moljac Apr 28, 2025
1018857
'Cake.Tool': '5.0.0'
moljac Apr 28, 2025
e7b96ab
another mac agent
moljac Apr 28, 2025
2a7dd8e
Update variables.yml
moljac Apr 28, 2025
857ba25
Merge branch 'main' into dev/moljac/mu-20250411-infrastructure-bumps
moljac Apr 28, 2025
314128e
Merge branch 'main' into dev/moljac/mu-20250411-infrastructure-bumps
moljac Apr 29, 2025
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 build.cake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Used by binderator, "Windows" is fine because we only use managed code from it
#tool nuget:?package=Microsoft.Android.Sdk.Windows&version=35.0.0-rc.1.80
#tool nuget:?package=Microsoft.Android.Sdk.Windows&version=35.0.61

// Cake Addins
#addin nuget:?package=Cake.FileHelpers&version=7.0.0
Expand Down
2 changes: 1 addition & 1 deletion build/ci/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ parameters:
installAndroidDependencies: false

tools: # Additional .NET global tools to install
- 'Cake.Tool': '4.0.0'
- 'Cake.Tool': '5.0.0'
- 'private-api-tools': '1.0.3'

# Reporting/Analysis Parameters
Expand Down
2 changes: 1 addition & 1 deletion build/ci/job-extended-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ parameters:

tools: # Additional .NET global tools to install
- 'dotnet-test-slicer' : '0.1.0-alpha7'
- 'Cake.Tool': '4.0.0'
- 'Cake.Tool': '5.0.0'

jobs:
- job: ${{ parameters.jobName }}_package_tests
Expand Down
4 changes: 2 additions & 2 deletions build/ci/variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ variables:
macosAgentPoolName: VSEng-VSMac-Xamarin-Shared # macOS VM pool name

# Tool variables
dotnetVersion: '8.0.407' # .NET version to install on agent
dotnetVersion: '8.0.408' # .NET version to install on agent
dotnetWorkloadRollbackFile: 'workloads.json' # Rollback file specifying workload versions to install
dotnetNuGetOrgSource: 'https://api.nuget.org/v3/index.json' # NuGet.org URL to find workloads
dotnetWorkloadSource: 'https://aka.ms/dotnet6/nuget/index.json' # .NET engineering URL to find workloads
Expand All @@ -35,7 +35,7 @@ variables:
extendedTestAssembly: tests/extended/bin/$(configuration)/net8.0/ExtendedTests.dll # Extended tests compiled binary

# dotnet-next test variables
dotnetNextVersion: 9.0.201 # .NET preview version to install
dotnetNextVersion: 9.0.203 # .NET preview version to install
dotnetNextFrameworkVersion: 9 # The number to use for TF (eg: net9.0-android)
dotnetNextApiLevel: 35 # The Android SDK API Level to use (eg: -android35.0)

Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sdk":
{
"version": "8.0.407",
"version": "8.0.408",
"rollForward": "patch"
},
"msbuild-sdks":
Expand Down
8 changes: 4 additions & 4 deletions tests/allpackages/AllPackagesTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CliWrap" Version="3.6.6" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="CliWrap" Version="3.8.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
<PackageReference Include="NUnit" Version="4.3.2" />
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion tests/allpackages/TestAllIndividualPackages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ async Task TestAllPackages (string template, bool isGps)
}
xd.Save(proj_file);

ReplaceInFile (proj_file, ">21</SupportedOSPlatformVersion>", $">{platform_version}</SupportedOSPlatformVersion>");
ReplaceInFile (proj_file, ">21</SupportedOSPlatformVersion>", $">{platform_version}</SupportedOSPlatformVersion>");
ReplaceInFile (proj_file, ">21.0</SupportedOSPlatformVersion>", $">{platform_version}</SupportedOSPlatformVersion>");
ReplaceInFile (proj_file, $";{net_version}-ios", "");
ReplaceInFile (proj_file, $";{net_version}-maccatalyst", "");
Expand Down
8 changes: 4 additions & 4 deletions tests/extended/ExtendedTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CliWrap" Version="3.6.6" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="CliWrap" Version="3.8.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
<PackageReference Include="NUnit" Version="4.3.2" />
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net8.0</TargetFrameworks>
<LangVersion>12.0</LangVersion>
<PreserveCompilationContext>true</PreserveCompilationContext>
<RootNamespace>AndroidBinderator</RootNamespace>
Expand All @@ -25,7 +25,7 @@

<ItemGroup>
<PackageReference Include="RazorLight" Version="2.3.1" />
<PackageReference Include="System.Text.Json" Version="6.0.10" />
<PackageReference Include="System.Text.Json" Version="9.0.4" />
<PackageReference Include="MavenNet" Version="2.2.14" />
</ItemGroup>

Expand All @@ -35,7 +35,7 @@

<ItemGroup>
<Reference Include="Java.Interop.Tools.Maven">
<HintPath>..\..\..\tools\Microsoft.Android.Sdk.Windows.35.0.0-rc.1.80\tools\Java.Interop.Tools.Maven.dll</HintPath>
<HintPath>..\..\..\tools\Microsoft.Android.Sdk.Windows.35.0.61\tools\Java.Interop.Tools.Maven.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class Test : TestsBase

void AddCoreTargets (ProjectRootElement el)
{
var baseDir = new Uri(System.Reflection.Assembly.GetExecutingAssembly().CodeBase).LocalPath;
var baseDir = new Uri(System.Reflection.Assembly.GetExecutingAssembly().Location).LocalPath;

var props = Path.Combine (baseDir, "..", "..", "source", "Xamarin.Build.Download", "bin", Configuration, "netstandard20", "Xamarin.Build.Download.props");

Expand Down Expand Up @@ -504,7 +504,7 @@ public void TestGetItemsToDownload ()

var itemToDownload = project.GetItems ("XamarinBuildDownloadItemToDownload");

Assert.Equal (1, itemToDownload.Count);
Assert.Single (itemToDownload);
Assert.True (itemToDownload.First ().GetMetadata ("Url").EvaluatedValue == itemUrl);
}

Expand Down Expand Up @@ -543,7 +543,7 @@ public void TestDeduplicateGetItemsToDownload ()

var itemToDownload = project.GetItems ("XamarinBuildDownloadItemToDownload");

Assert.Equal (1, itemToDownload.Count);
Assert.Single (itemToDownload);
Assert.True (itemToDownload.First ().GetMetadata ("Url").EvaluatedValue == itemUrl);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<RollForward>Major</RollForward>
</PropertyGroup>
Expand All @@ -19,7 +19,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Mono.Cecil" Version="0.11.4" />
<PackageReference Include="Mono.Cecil" Version="0.11.6" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
<PackageReference Include="Microsoft.Build.Framework" Version="$(MSBuildPackageReferenceVersion)" PrivateAssets="all" />
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="$(MSBuildPackageReferenceVersion)" PrivateAssets="all" />
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" PrivateAssets="all" GeneratePathProperty="true" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" PrivateAssets="all" GeneratePathProperty="true" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" PrivateAssets="all" GeneratePathProperty="true" />
</ItemGroup>
</Project>
16 changes: 8 additions & 8 deletions workloads.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"microsoft.net.sdk.android": "34.0.143/8.0.100",
"microsoft.net.sdk.ios": "18.0.8303/8.0.100",
"microsoft.net.sdk.maccatalyst": "18.0.8303/8.0.100",
"microsoft.net.sdk.macos": "15.0.8303/8.0.100",
"microsoft.net.sdk.maui": "8.0.82/8.0.100",
"microsoft.net.sdk.tvos": "18.0.8303/8.0.100",
"microsoft.net.workload.mono.toolchain.current": "8.0.10/8.0.100",
"microsoft.net.workload.emscripten.current": "8.0.10/8.0.100"
"microsoft.net.sdk.android": "34.0.154/8.0.100",
"microsoft.net.sdk.ios": "18.0.8319/8.0.100",
"microsoft.net.sdk.maccatalyst": "18.0.8319/8.0.100",
"microsoft.net.sdk.macos": "15.0.8319/8.0.100",
"microsoft.net.sdk.maui": "8.0.100/8.0.100",
"microsoft.net.sdk.tvos": "18.0.8319/8.0.100",
"microsoft.net.workload.mono.toolchain.current": "8.0.15/8.0.100",
"microsoft.net.workload.emscripten.current": "8.0.15/8.0.100"
}