xamarin-macios/msbuild
Rolf Bjarne Kvinge 674ded4af4
[xcode16] Use [Experimental] instead of [RequiresPreviewFeatures]. (#21178)
This is because `EnablePreviewFeatures=true` doesn't quite work, since it
requires the building .NET and the target .NET to be on the same version.

We might want to build with .NET 9, but the Xcode branch is targeting .NET 8,
so it doesn't work.

This behavior is explained here:
https://github.com/dotnet/designs/blob/main/accepted/2021/preview-features/preview-features.md#meaning-of-property-in-multi-targeted-projects

The best solution seems to switch to using the Experimental attribute instead,
which was designed for our scenario (and explicitly to fix the problem we're
running into): bba3216250/accepted/2023/preview-apis/preview-apis.md

This also meant we had to augment `-nowarn` for bgen to:

* Pass any nowarn values to the compiler when bgen compiles stuff.
* Pass `$(NoWarn)` (the MSBuild property) to bgen when building a binding project.

---------

Co-authored-by: Alex Soto <alex@soto.dev>
2024-09-10 16:11:58 +02:00
..
Messaging/Xamarin.Messaging.Build Revert "Migrate Messaging Build agent to .NET 8 (#20705)" (#20790) 2024-07-01 18:25:55 +02:00
Xamarin.HotRestart.PreBuilt [msbuild] Add support for signing with the placeholder key. (#20823) 2024-07-12 17:34:51 +02:00
Xamarin.Localization.MSBuild [msbuild] Show a slightly better warning message when trying to expand TeamIdentifierPrefix/AppIdentifierPrefix without a provisioning profile. (#20759) 2024-07-04 16:38:31 +02:00
Xamarin.Mac.Tasks [msbuild] Move all tasks from Xamarin.[iOS|Mac].Tasks into Xamarin.MacDev.Tasks. (#20118) 2024-02-22 16:34:17 +01:00
Xamarin.MacDev.Tasks Merge remote-tracking branch 'xamarin/main' into xcode16 2024-07-16 22:58:16 -04:00
Xamarin.ObjcBinding.Tasks [msbuild] Remove support for XI/Classic. (#976) 2016-10-13 10:47:46 +02:00
Xamarin.Shared [xcode16] Use [Experimental] instead of [RequiresPreviewFeatures]. (#21178) 2024-09-10 16:11:58 +02:00
Xamarin.iOS.Tasks [msbuild] Move all tasks from Xamarin.[iOS|Mac].Tasks into Xamarin.MacDev.Tasks. (#20118) 2024-02-22 16:34:17 +01:00
Xamarin.iOS.Tasks.Windows [msbuild] Don't support RuntimeIdentifiers for Hot Restart. (#20750) 2024-07-01 19:26:57 +02:00
.gitignore [msbuild] Use a single generated versions file for all platforms. (#19593) 2023-12-13 12:52:47 +01:00
Directory.Build.props Revert "Migrate Messaging Build agent to .NET 8 (#20705)" (#20790) 2024-07-01 18:25:55 +02:00
ILMerge.targets Revert "Migrate Messaging Build agent to .NET 8 (#20705)" (#20790) 2024-07-01 18:25:55 +02:00
Makefile Revert "Migrate Messaging Build agent to .NET 8 (#20705)" (#20790) 2024-07-01 18:25:55 +02:00
Xamarin.MacDev.Tasks.sln [msbuild] Remove the Xamarin.*.Task.Core assemblies. (#15768) 2022-08-29 11:59:28 +02:00