Skip to content

Commit c9032f2

Browse files
authored
[net8.0] Merge main into net8.0. (#18721)
2 parents f8b7b53 + b7a7b4d commit c9032f2

File tree

26 files changed

+159
-60
lines changed

26 files changed

+159
-60
lines changed

.github/workflows/update-single-platform-branches.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ jobs:
2323
set -ex
2424
git config user.email "[email protected]"
2525
git config user.name "GitHub Actions Single Platform Branch Updater"
26-
for platform in iOS tvOS MacCatalyst macOS; do
27-
git checkout -b release-test/only-dotnet-$platform origin/release-test/only-dotnet-$platform
26+
for platform in dotnet-iOS dotnet-tvOS dotnet-MacCatalyst dotnet-macOS dotnet legacy legacy-iOS legacy-macOS; do
27+
git checkout -b release-test/only-$platform origin/release-test/only-$platform
2828
git merge origin/main
2929
git push
3030
done
31+

Make.config

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ $(TOP)/Make.config.inc: $(TOP)/Make.config $(TOP)/mk/mono.mk
4040

4141
include $(TOP)/Make.versions
4242

43-
APIDIFF_REFERENCES_iOS=https://dl.internalx.com/wrench/xcode14.1/6714e055b242715aaa682b578f898070facf243a/7021940/package/bundle.zip
44-
APIDIFF_REFERENCES_Mac=https://dl.internalx.com/wrench/xcode14.1/6714e055b242715aaa682b578f898070facf243a/7021940/package/bundle.zip
45-
APIDIFF_REFERENCES_DOTNET_iOS=https://dl.internalx.com/wrench/7.0.1xx/c51a20dbde7bb30d896019f178e0055559071177/6999758/package/bundle.zip
46-
APIDIFF_REFERENCES_DOTNET_tvOS=https://dl.internalx.com/wrench/7.0.1xx/c51a20dbde7bb30d896019f178e0055559071177/6999758/package/bundle.zip
47-
APIDIFF_REFERENCES_DOTNET_macOS=https://dl.internalx.com/wrench/7.0.1xx/c51a20dbde7bb30d896019f178e0055559071177/6999758/package/bundle.zip
48-
APIDIFF_REFERENCES_DOTNET_MacCatalyst=https://dl.internalx.com/wrench/7.0.1xx/c51a20dbde7bb30d896019f178e0055559071177/6999758/package/bundle.zip
43+
APIDIFF_REFERENCES_iOS=https://dl.internalx.com/wrench/xcode14.3/97731c92cc6d147825c1a39ed2c5c530a5f9a12b/7611701/package/bundle.zip
44+
APIDIFF_REFERENCES_Mac=https://dl.internalx.com/wrench/xcode14.3/97731c92cc6d147825c1a39ed2c5c530a5f9a12b/7611701/package/bundle.zip
45+
APIDIFF_REFERENCES_DOTNET_iOS=https://dl.internalx.com/wrench/7.0.3xx/43ae6c749407e47fdf5fa07295119b87f7328ea6/8004688/package/bundle.zip
46+
APIDIFF_REFERENCES_DOTNET_tvOS=https://dl.internalx.com/wrench/7.0.3xx/43ae6c749407e47fdf5fa07295119b87f7328ea6/8004688/package/bundle.zip
47+
APIDIFF_REFERENCES_DOTNET_macOS=https://dl.internalx.com/wrench/7.0.3xx/43ae6c749407e47fdf5fa07295119b87f7328ea6/8004688/package/bundle.zip
48+
APIDIFF_REFERENCES_DOTNET_MacCatalyst=https://dl.internalx.com/wrench/7.0.3xx/43ae6c749407e47fdf5fa07295119b87f7328ea6/8004688/package/bundle.zip
4949

5050
PACKAGE_HEAD_REV=$(shell git rev-parse HEAD)
5151

dotnet/targets/Xamarin.Shared.Sdk.targets

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,11 +1019,15 @@
10191019
<_IsDedupEnabled Condition="'$(_IsDedupEnabled)' == ''">true</_IsDedupEnabled>
10201020
<_DedupAssembly Condition="'$(_RunAotCompiler)' == 'true' And '$(IsMacEnabled)' == 'true' And '$(_IsDedupEnabled)' == 'true'">$(IntermediateOutputPath)aot-instances.dll</_DedupAssembly>
10211021

1022+
<!-- default to 'static' for Mac Catalyst to work around https://github.com/xamarin/xamarin-macios/issues/14686 -->
1023+
<_LibMonoLinkMode Condition="'$(_LibMonoLinkMode)' == '' And '$(_PlatformName)' == 'MacCatalyst'">static</_LibMonoLinkMode>
10221024
<_LibMonoLinkMode Condition="'$(_LibMonoLinkMode)' == '' And ('$(ComputedPlatform)' != 'iPhone' Or '$(_PlatformName)' == 'macOS')">dylib</_LibMonoLinkMode>
10231025
<_LibMonoLinkMode Condition="'$(_LibMonoLinkMode)' == ''">static</_LibMonoLinkMode>
10241026
<_LibMonoExtension Condition="'$(_LibMonoLinkMode)' == 'dylib'">dylib</_LibMonoExtension>
10251027
<_LibMonoExtension Condition="'$(_LibMonoLinkMode)' == 'static'">a</_LibMonoExtension>
10261028

1029+
<!-- default to 'static' for Mac Catalyst to work around https://github.com/xamarin/xamarin-macios/issues/14686 -->
1030+
<_LibXamarinLinkMode Condition="'$(_LibXamarinLinkMode)' == '' And '$(_PlatformName)' == 'MacCatalyst'">static</_LibXamarinLinkMode>
10271031
<_LibXamarinLinkMode Condition="'$(_LibXamarinLinkMode)' == '' And '$(ComputedPlatform)' != 'iPhone' And '$(_PlatformName)' != 'macOS'">dylib</_LibXamarinLinkMode>
10281032
<_LibXamarinLinkMode Condition="'$(_LibXamarinLinkMode)' == ''">static</_LibXamarinLinkMode>
10291033
<_LibXamarinExtension Condition="'$(_LibXamarinLinkMode)' == 'dylib'">dylib</_LibXamarinExtension>

eng/Version.Details.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
<Uri>https://github.com/dotnet/templating</Uri>
5858
<Sha />
5959
</Dependency>
60-
<Dependency Name="Microsoft.DotNet.XHarness.iOS.Shared" Version="8.0.0-prerelease.23403.1">
60+
<Dependency Name="Microsoft.DotNet.XHarness.iOS.Shared" Version="8.0.0-prerelease.23407.2">
6161
<Uri>https://github.com/dotnet/xharness</Uri>
62-
<Sha>7e3f2975a8767cd416594d7194ba617f6ef8e88e</Sha>
62+
<Sha>480b9159eb7e69b182a87581d5a336e97e0b6dae</Sha>
6363
</Dependency>
6464
</ToolsetDependencies>
6565
</Dependencies>

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<MicrosoftNETRuntimeMonoTargetsSdkPackageVersion>7.0.7</MicrosoftNETRuntimeMonoTargetsSdkPackageVersion>
1111
<MicrosoftTemplateEngineTasksVersion>7.0.100-alpha.1.21601.1</MicrosoftTemplateEngineTasksVersion>
1212
<MicrosoftDotNetCecilPackageVersion>0.11.4-alpha.23360.2</MicrosoftDotNetCecilPackageVersion>
13-
<MicrosoftDotNetXHarnessiOSSharedPackageVersion>8.0.0-prerelease.23403.1</MicrosoftDotNetXHarnessiOSSharedPackageVersion>
13+
<MicrosoftDotNetXHarnessiOSSharedPackageVersion>8.0.0-prerelease.23407.2</MicrosoftDotNetXHarnessiOSSharedPackageVersion>
1414
<!-- Manually updated versions -->
1515
<Emscriptennet7WorkloadVersion>$(MicrosoftNETWorkloadEmscriptenCurrentManifest80100TransportVersion)</Emscriptennet7WorkloadVersion>
1616
<EmscriptenWorkloadVersion>$(MicrosoftNETWorkloadEmscriptenCurrentManifest80100TransportVersion)</EmscriptenWorkloadVersion>

src/ObjCRuntime/NativeHandle.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ public IntPtr Handle {
1313
get { return handle; }
1414
}
1515

16+
#if XAMCORE_5_0
17+
public readonly static NativeHandle Zero = default (NativeHandle);
18+
#else
1619
public static NativeHandle Zero = default (NativeHandle);
20+
#endif
1721

1822
public NativeHandle (IntPtr handle)
1923
{

src/spritekit.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2294,15 +2294,23 @@ partial interface SKAction : NSSecureCoding, NSCopying {
22942294
SKAction FollowPath (CGPath path, double sec);
22952295

22962296
[Static, Export ("followPath:asOffset:orientToPath:duration:")]
2297+
#if XAMCORE_5_0
22972298
SKAction FollowPath (CGPath path, bool offset, bool orientToPath, double sec);
2299+
#else
2300+
SKAction FollowPath (CGPath path, bool offset, bool orient, double sec);
2301+
#endif
22982302

22992303
[MacCatalyst (13, 1)]
23002304
[Static, Export ("followPath:speed:")]
23012305
SKAction FollowPath (CGPath path, nfloat speed);
23022306

23032307
[MacCatalyst (13, 1)]
23042308
[Static, Export ("followPath:asOffset:orientToPath:speed:")]
2309+
#if XAMCORE_5_0
23052310
SKAction FollowPath (CGPath path, bool offset, bool orientToPath, nfloat speed);
2311+
#else
2312+
SKAction FollowPath (CGPath path, bool offset, bool orient, nfloat speed);
2313+
#endif
23062314

23072315
[Static, Export ("speedBy:duration:")]
23082316
SKAction SpeedBy (nfloat speed, double sec);

tests/common/BinLog.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,12 @@ public static IEnumerable<string> PrintToLines (string path)
196196

197197
public static IEnumerable<BuildLogEvent> GetBuildLogWarnings (string path)
198198
{
199-
return GetBuildMessages (path).Where (v => v.Type == BuildLogEventType.Warning);
199+
return GetBuildMessages (path)
200+
// Filter to warnings
201+
.Where (v => v.Type == BuildLogEventType.Warning)
202+
// We're often referencing earlier .NET projects (Touch.Unit/MonoTouch.Dialog), so ignore any out-of-support warnings.
203+
.Where (v => v.Message?.Contains ("is out of support and will not receive security updates in the future") != true)
204+
;
200205
}
201206

202207
public static IEnumerable<BuildLogEvent> GetBuildLogErrors (string path)

tests/common/Configuration.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ static void ParseConfigFiles ()
180180
}
181181
if (test_config.Any ())
182182
ParseConfigFiles (test_config);
183+
ParseConfigFiles (FindConfigFiles ("configure.inc"));
183184
ParseConfigFiles (FindConfigFiles ("Make.config.local"));
184185
ParseConfigFiles (FindConfigFiles ("Make.config"));
185186
}
@@ -195,7 +196,7 @@ static void ParseConfigFile (string file)
195196
if (string.IsNullOrEmpty (file))
196197
return;
197198

198-
foreach (var line in File.ReadAllLines (file)) {
199+
foreach (var line in File.ReadAllLines (file).Reverse ()) {
199200
var eq = line.IndexOf ('=');
200201
if (eq == -1)
201202
continue;

tests/common/DotNet.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,21 @@ public static ExecutionResult Execute (string verb, string project, Dictionary<s
187187
var outputStr = output.ToString ();
188188
Console.WriteLine ($"'{Executable} {StringUtils.FormatArguments (args)}' failed with exit code {rv.ExitCode}.");
189189
Console.WriteLine (outputStr);
190+
if (rv.ExitCode != 0) {
191+
var msg = new StringBuilder ();
192+
msg.AppendLine ($"'dotnet {verb}' failed with exit code {rv.ExitCode}");
193+
msg.AppendLine ($"Full command: {Executable} {StringUtils.FormatArguments (args)}");
194+
#if !MSBUILD_TASKS
195+
var errors = BinLog.GetBuildLogErrors (binlogPath).ToArray ();
196+
if (errors.Any ()) {
197+
var errorsToList = errors.Take (10).ToArray ();
198+
msg.AppendLine ($"Listing first {errorsToList.Length} error(s) (of {errors.Length} error(s)):");
199+
foreach (var error in errorsToList)
200+
msg.AppendLine ($" {string.Join ($"{Environment.NewLine} ", error.ToString ().Split ('\n', '\r'))}");
201+
}
202+
#endif
203+
Assert.Fail (msg.ToString ());
204+
}
190205
Assert.AreEqual (0, rv.ExitCode, $"Exit code: {Executable} {StringUtils.FormatArguments (args)}");
191206
}
192207
return new ExecutionResult (output, output, rv.ExitCode) {

0 commit comments

Comments
 (0)