Skip to content

Commit d152d25

Browse files
authored
[net11.0] Merge main into net11.0. (#24449)
2 parents b8f5f71 + ad0eef7 commit d152d25

File tree

55 files changed

+1731
-519
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1731
-519
lines changed

Make.config

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ NUGET_RELEASE_BRANCH=release/10.0.1xx
140140
##
141141
## Note that the prerelease identifier should be as short as possible, because otherwise
142142
## the resulting package name can become too long for MSIs.
143-
NUGET_HARDCODED_PRERELEASE_IDENTIFIER=xcode26.1
144-
NUGET_HARDCODED_PRERELEASE_BRANCH=xcode26.1
143+
NUGET_HARDCODED_PRERELEASE_IDENTIFIER=xcode26.2
144+
NUGET_HARDCODED_PRERELEASE_BRANCH=xcode26.2
145145

146146
# compute the alphanumeric version of branch names
147147
NUGET_RELEASE_BRANCH_ALPHANUMERIC:=$(shell export LANG=C; printf "%s" "$(NUGET_RELEASE_BRANCH)" | tr -c '[a-zA-Z0-9-]' '-')
@@ -201,9 +201,9 @@ MACCATALYST_NUGET_VERSION_NO_METADATA=$(MACCATALYST_NUGET_VERSION)$(NUGET_PREREL
201201
MACCATALYST_NUGET_VERSION_FULL=$(MACCATALYST_NUGET_VERSION_NO_METADATA)$(NUGET_BUILD_METADATA)
202202

203203
# Xcode version should have both a major and a minor version (even if the minor version is 0)
204-
XCODE_VERSION=26.1
205-
XCODE_URL=https://dl.internalx.com/internal-files/xcodes/Xcode_26.1.1.xip
206-
XCODE_DEVELOPER_ROOT=/Applications/Xcode_26.1.1.app/Contents/Developer
204+
XCODE_VERSION=26.2
205+
XCODE_URL=https://dl.internalx.com/internal-files/xcodes/Xcode_26.2.xip
206+
XCODE_DEVELOPER_ROOT=/Applications/Xcode_26.2.0.app/Contents/Developer
207207
XCODE_PRODUCT_BUILD_VERSION:=$(shell /usr/libexec/PlistBuddy -c 'Print :ProductBuildVersion' $(XCODE_DEVELOPER_ROOT)/../version.plist 2>/dev/null || echo " $(shell tput setaf 1 2>/dev/null)The required Xcode ($(XCODE_VERSION)) is not installed in $(basename $(basename $(XCODE_DEVELOPER_ROOT)))$(shell tput sgr0 2>/dev/null)" >&2)
208208

209209
# We define stable Xcode as the Xcode app being named like "Xcode_#.#[.#].app"

Make.versions

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
# IMPORTANT: There must be *no* managed API differences unless the two first
2222
# numbers (major.minor) changes.
2323

24-
IOS_NUGET_OS_VERSION=26.1
25-
TVOS_NUGET_OS_VERSION=26.1
26-
MACOS_NUGET_OS_VERSION=26.1
27-
MACCATALYST_NUGET_OS_VERSION=26.1
24+
IOS_NUGET_OS_VERSION=26.2
25+
TVOS_NUGET_OS_VERSION=26.2
26+
MACOS_NUGET_OS_VERSION=26.2
27+
MACCATALYST_NUGET_OS_VERSION=26.2
2828

2929
# The following are the OS versions we first supported with the current .NET version.
3030
# These versions must *not* change with minor .NET updates, only major .NET releases.
31-
IOS_TARGET_PLATFORM_VERSION_LIBRARY=26.1
32-
TVOS_TARGET_PLATFORM_VERSION_LIBRARY=26.1
33-
MACOS_TARGET_PLATFORM_VERSION_LIBRARY=26.1
34-
MACCATALYST_TARGET_PLATFORM_VERSION_LIBRARY=26.1
31+
IOS_TARGET_PLATFORM_VERSION_LIBRARY=26.2
32+
TVOS_TARGET_PLATFORM_VERSION_LIBRARY=26.2
33+
MACOS_TARGET_PLATFORM_VERSION_LIBRARY=26.2
34+
MACCATALYST_TARGET_PLATFORM_VERSION_LIBRARY=26.2
3535

3636
# In theory we should define the default platform version if it's not specified in the TFM. The default should not change for a given .NET version:
3737
# * We release support for iOS 14.5 with .NET 6

builds/Versions-MacCatalyst.plist.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<string>18.5</string>
2727
<string>26.0</string>
2828
<string>26.1</string>
29+
<string>26.2</string>
2930
</array>
3031
</dict>
3132
<key>SupportedTargetPlatformVersions</key>
@@ -62,6 +63,7 @@
6263
<string>18.5</string>
6364
<string>26.0</string>
6465
<string>26.1</string>
66+
<string>26.2</string>
6567
</array>
6668
</dict>
6769
<key>MacCatalystVersionMap</key>
@@ -120,6 +122,8 @@
120122
<string>26.0</string>
121123
<key>26.1</key>
122124
<string>26.1</string>
125+
<key>26.2</key>
126+
<string>26.2</string>
123127
</dict>
124128
<key>RecommendedXcodeVersion</key>
125129
<string>@XCODE_VERSION@</string>

builds/Versions-iOS.plist.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
<string>18.5</string>
4141
<string>26.0</string>
4242
<string>26.1</string>
43+
<string>26.2</string>
4344
</array>
4445
</dict>
4546
<key>SupportedTargetPlatformVersions</key>
@@ -95,6 +96,7 @@
9596
<string>18.5</string>
9697
<string>26.0</string>
9798
<string>26.1</string>
99+
<string>26.2</string>
98100
</array>
99101
</dict>
100102
<key>RecommendedXcodeVersion</key>

builds/Versions-macOS.plist.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<string>15.5</string>
2121
<string>26.0</string>
2222
<string>26.1</string>
23+
<string>26.2</string>
2324
</array>
2425
</dict>
2526
<key>SupportedTargetPlatformVersions</key>
@@ -54,6 +55,7 @@
5455
<string>15.5</string>
5556
<string>26.0</string>
5657
<string>26.1</string>
58+
<string>26.2</string>
5759
</array>
5860
</dict>
5961
<key>RecommendedXcodeVersion</key>

builds/Versions-tvOS.plist.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<string>18.5</string>
3636
<string>26.0</string>
3737
<string>26.1</string>
38+
<string>26.2</string>
3839
</array>
3940
</dict>
4041
<key>SupportedTargetPlatformVersions</key>
@@ -85,6 +86,7 @@
8586
<string>18.5</string>
8687
<string>26.0</string>
8788
<string>26.1</string>
89+
<string>26.2</string>
8890
</array>
8991
</dict>
9092
<key>RecommendedXcodeVersion</key>

eng/Version.Details.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This file should be imported by eng/Versions.props
2222
<MicrosoftmacOSSdknet100_260PackageVersion>26.0.11017</MicrosoftmacOSSdknet100_260PackageVersion>
2323
<MicrosofttvOSSdknet100_260PackageVersion>26.0.11017</MicrosofttvOSSdknet100_260PackageVersion>
2424
<!-- dotnet/xharness dependencies -->
25-
<MicrosoftDotNetXHarnessiOSSharedPackageVersion>10.0.0-prerelease.25516.4</MicrosoftDotNetXHarnessiOSSharedPackageVersion>
25+
<MicrosoftDotNetXHarnessiOSSharedPackageVersion>11.0.0-prerelease.25603.1</MicrosoftDotNetXHarnessiOSSharedPackageVersion>
2626
</PropertyGroup>
2727
<!--Property group for alternate package version names-->
2828
<PropertyGroup>

msbuild/Xamarin.MacDev.Tasks/Tasks/CompileAppManifest.cs

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,13 @@ public class CompileAppManifest : XamarinTask, IHasProjectDir, IHasResourcePrefi
3434
// This must be an ITaskItem to copy the file to Windows for remote builds.
3535
public ITaskItem? AppManifest { get; set; }
3636

37-
[Required]
38-
public string AssemblyName { get; set; } = String.Empty;
39-
4037
[Required]
4138
public string BundleExecutable { get; set; } = "";
4239

4340
[Required]
4441
[Output] // This is required to create an empty file on Windows for the Input/Outputs check.
4542
public ITaskItem? CompiledAppManifest { get; set; }
4643

47-
[Required]
48-
public bool Debug { get; set; }
49-
50-
public string DebugIPAddresses { get; set; } = String.Empty;
51-
5244
public string DefaultSdkVersion { get; set; } = String.Empty;
5345

5446
public ITaskItem [] FontFilesToRegister { get; set; } = Array.Empty<ITaskItem> ();
@@ -59,12 +51,6 @@ public class CompileAppManifest : XamarinTask, IHasProjectDir, IHasResourcePrefi
5951
[Required]
6052
public bool IsAppExtension { get; set; }
6153

62-
public bool IsXPCService { get; set; }
63-
64-
public bool IsWatchApp { get; set; }
65-
66-
public bool IsWatchExtension { get; set; }
67-
6854
[Required]
6955
public string MinSupportedOSPlatformVersion { get; set; } = string.Empty;
7056

@@ -183,8 +169,6 @@ public override bool Execute ()
183169
void AddXamarinVersionNumber (PDictionary plist)
184170
{
185171
// Add our own version number
186-
if (IsWatchApp)
187-
return;
188172

189173
// This key is our supported way of determining if an app
190174
// was built with Xamarin, so it needs to be present in all apps.
@@ -479,9 +463,6 @@ void Validation (PDictionary plist)
479463

480464
bool CompileMac (PDictionary plist)
481465
{
482-
if (!IsAppExtension || (IsAppExtension && IsXPCService))
483-
plist.SetIfNotPresent ("MonoBundleExecutable", AssemblyName + ".exe");
484-
485466
return !Log.HasLoggedErrors;
486467
}
487468

@@ -512,11 +493,6 @@ bool CompileMobile (PDictionary plist)
512493

513494
SetDeviceFamily (plist);
514495

515-
if (IsWatchExtension) {
516-
if (Debug)
517-
SetAppTransportSecurity (plist);
518-
}
519-
520496
SetRequiredArchitectures (plist);
521497

522498
return !Log.HasLoggedErrors;
@@ -531,7 +507,7 @@ void SetXcodeValues (PDictionary plist, IAppleSdk currentSDK)
531507
SetValueIfNotNull (plist, "DTCompiler", sdkSettings.DTCompiler);
532508
SetValueIfNotNull (plist, "DTPlatformBuild", dtSettings.DTPlatformBuild);
533509
SetValueIfNotNull (plist, "DTSDKBuild", sdkSettings.DTSDKBuild);
534-
SetValueIfNotNull (plist, "DTPlatformName", PlatformUtils.GetTargetPlatform (SdkPlatform, IsWatchApp));
510+
SetValueIfNotNull (plist, "DTPlatformName", PlatformUtils.GetTargetPlatform (SdkPlatform, false));
535511
SetValueIfNotNull (plist, "DTPlatformVersion", dtSettings.DTPlatformVersion);
536512
SetValueIfNotNull (plist, "DTSDKName", sdkSettings.CanonicalName);
537513
SetValueIfNotNull (plist, "DTXcode", AppleSdkSettings.DTXcode);
@@ -632,31 +608,6 @@ void SetDeviceFamily (PDictionary plist)
632608
plist.SetUIDeviceFamily (uiDeviceFamily);
633609
}
634610

635-
void SetAppTransportSecurity (PDictionary plist)
636-
{
637-
// Debugging over http has a couple of gotchas:
638-
// * We can't use https, because that requires a valid server certificate,
639-
// which we can't ensure.
640-
// It would also require a hostname for the mac, which it might not have either.
641-
// * NSAppTransportSecurity/NSExceptionDomains does not allow exceptions based
642-
// on IP address (only hostname).
643-
// Good news: watchOS 3 will apparently not apply ATS when connecting
644-
// directly to IP addresses, which means we won't have to do this at all
645-
// (sometime in the future).
646-
647-
PDictionary? ats;
648-
649-
if (!plist.TryGetValue (ManifestKeys.NSAppTransportSecurity, out ats))
650-
plist.Add (ManifestKeys.NSAppTransportSecurity, ats = new PDictionary ());
651-
652-
if (ats.GetBoolean (ManifestKeys.NSAllowsArbitraryLoads)) {
653-
Log.LogMessage (MessageImportance.Low, MSBStrings.M0017);
654-
} else {
655-
Log.LogMessage (MessageImportance.Low, MSBStrings.M0018);
656-
ats.SetBooleanOrRemove (ManifestKeys.NSAllowsArbitraryLoads, true);
657-
}
658-
}
659-
660611
public bool ShouldCopyToBuildServer (ITaskItem item)
661612
{
662613
// We don't want to copy partial generated manifest files unless they exist and have a non-zero length

msbuild/Xamarin.Shared/Xamarin.Shared.targets

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -621,17 +621,11 @@ Copyright (C) 2018 Microsoft. All rights reserved.
621621
<_CompileAppManifestInputLine Include="ApplicationTitle=$(ApplicationTitle)" />
622622
<_CompileAppManifestInputLine Include="ApplicationVersion=$(ApplicationVersion)" />
623623
<_CompileAppManifestInputLine Include="AppManifest=$(AppBundleManifest)" />
624-
<_CompileAppManifestInputLine Include="AssemblyName=$(AssemblyName)" />
625624
<_CompileAppManifestInputLine Include="CompiledAppManifest=$(_TemporaryAppManifest)" />
626-
<_CompileAppManifestInputLine Include="Debug=$(_BundlerDebug)" />
627-
<_CompileAppManifestInputLine Include="DebugIPAddresses=$(_DebugIPAddresses)" />
628625
<_CompileAppManifestInputLine Include="DefaultSdkVersion=$(_SdkVersion)" />
629626
<_CompileAppManifestInputLine Include="FontFilesToRegister=$(_CompileAppManifestFontFilesToRegister)" />
630627
<_CompileAppManifestInputLine Include="GenerateApplicationManifest=$(GenerateApplicationManifest)" />
631628
<_CompileAppManifestInputLine Include="IsAppExtension=$(IsAppExtension)" />
632-
<_CompileAppManifestInputLine Include="IsWatchApp=$(IsWatchApp)" />
633-
<_CompileAppManifestInputLine Include="IsWatchExtension=$(IsWatchExtension)" />
634-
<_CompileAppManifestInputLine Include="IsXPCService=$(IsXPCService)" />
635629
<_CompileAppManifestInputLine Include="MinSupportedOSPlatformVersion=$(MinSupportedOSPlatformVersion)" />
636630
<_CompileAppManifestInputLine Include="PartialAppManifests=$(_CompileAppManifestPartialAppManifest)" />
637631
<_CompileAppManifestInputLine Include="ProjectDir=$(MSBuildProjectDirectory)" />
@@ -677,18 +671,12 @@ Copyright (C) 2018 Microsoft. All rights reserved.
677671
ApplicationTitle="$(ApplicationTitle)"
678672
ApplicationVersion="$(ApplicationVersion)"
679673
AppManifest="$(AppBundleManifest)"
680-
AssemblyName="$(AssemblyName)"
681674
BundleExecutable="$(_NativeExecutableName)"
682675
CompiledAppManifest="$(_TemporaryAppManifest)"
683-
Debug="$(_BundlerDebug)"
684-
DebugIPAddresses="$(_DebugIPAddresses)"
685676
DefaultSdkVersion="$(_SdkVersion)"
686677
FontFilesToRegister="@(_FontFilesToRegister)"
687678
GenerateApplicationManifest="$(GenerateApplicationManifest)"
688679
IsAppExtension="$(IsAppExtension)"
689-
IsWatchApp="$(IsWatchApp)"
690-
IsWatchExtension="$(IsWatchExtension)"
691-
IsXPCService="$(IsXPCService)"
692680
MinSupportedOSPlatformVersion="$(MinSupportedOSPlatformVersion)"
693681
PartialAppManifests="@(PartialAppManifest)"
694682
ProjectDir="$(MSBuildProjectDirectory)"

runtime/xamarin/launch.h

Lines changed: 0 additions & 114 deletions
This file was deleted.

0 commit comments

Comments
 (0)