* Add .NET 10 P1 release note base files * add get started * add base binary file * revert links for build * fix links * update last link * Apply suggestions from code review Co-authored-by: Rich Lander <rlander@microsoft.com> * Fix linter errors * add languages * add ef core 10 documentation * add more efcore release notes * fix lint issue in ef docs * update efcore * Preview 1 F# release notes (#9737) * Initial F# entry with links-needs cleanup * Remove template comments from F# release notes * Apply suggestions from code review Thanks! All these changes are great. Co-authored-by: Tomas Grosup <tomasgrosup@microsoft.com> * a bit of consistency here to jump down layers * Fix typo in F# release notes --------- Co-authored-by: Tomas Grosup <tomasgrosup@microsoft.com> Co-authored-by: James Montemagno <james.montemagno@gmail.com> * Update release-notes/10.0/get-started.md Co-authored-by: Jon Galloway <jongalloway@gmail.com> * Update release-notes/10.0/preview/preview1/10.0.0-preview.1.md Co-authored-by: Jon Galloway <jongalloway@gmail.com> * update wpf * C# and VB release notes for Preview 1 (#9739) * First draft of C# and VB release notes * Apply suggestions from code review Co-authored-by: Martin Costello <martin@martincostello.com> * Update release-notes/10.0/preview/preview1/visualbasic.md Co-authored-by: Kathleen Dollard <kathleen.dollard@microsoft.com> * Add additional features My first draft had missed a few features. * Apply suggestions from code review Co-authored-by: Kathleen Dollard <kathleen.dollard@microsoft.com> * Update release-notes/10.0/preview/preview1/csharp.md --------- Co-authored-by: Martin Costello <martin@martincostello.com> Co-authored-by: James Montemagno <james.montemagno@gmail.com> Co-authored-by: Kathleen Dollard <kathleen.dollard@microsoft.com> * .NET 10 Preview 1 - WinForms Release Notes (#9722) * First draft First draft of release nites * Added AI message I did use AI to translate to markdown from docx formats. * Update release-notes/10.0/preview/preview1/winforms.md Co-authored-by: Loni Tra <lonitra@microsoft.com> * Applying feedback Applying the latest feedback and correcting a couple mistakes. * Applying final feedback Adding a few tweaks based on Tanya's feedback. * Best Practices * Final round of feedback * Update release-notes/10.0/preview/preview1/winforms.md * a bit of cleanup * Update winforms.md Duplicated text. * duplicated content --------- Co-authored-by: Loni Tra <lonitra@microsoft.com> Co-authored-by: Rich Lander <rich@lander.ca> Co-authored-by: Rich Lander <rlander@microsoft.com> Co-authored-by: Tanya Solyanik <tanyaso@microsoft.com> Co-authored-by: James Montemagno <james.montemagno@gmail.com> * small tweaks to ef preview 1 release notes * one more tiny tweak to ef core notes * release notes for PrunePackageReferences (#9744) * Fix markdown lint * Add containers release notes for .NET 10 Preview 1 (#9746) * Update containers section on main 10p1 readme * Add release notes for containers * Change Docker to container Co-authored-by: Matt Thalman <mthalman@microsoft.com> * Put Ubuntu announcement first * Apply suggestions from code review Co-authored-by: Rich Lander <rlander@microsoft.com> * Remove extra newlines * Update haedings and links --------- Co-authored-by: Matt Thalman <mthalman@microsoft.com> Co-authored-by: Rich Lander <rlander@microsoft.com> * .NET 10 P1 -- Runtime and Libraries changes (#9715) * Create runtime branch * Add cryptography notes * Fix typo * Add ISOWeek overloads for DateOnly type * ZipArchive * Remove duplicate ISOWeek method overloads section * Add String Normalization APIs for Span<char> * Fix formatting in String Normalization APIs section * Fix formatting for String Normalization APIs section * Fix formatting for String Normalization APIs section * Update String Normalization APIs section * Update String Normalization APIs section * Doc formatting fix * Adding TimeSpan note * Add JIT notes * Convert tabs to spaces * Better ZipArchive stats * Fix stack allocation description * Feedback Co-authored-by: Andy Ayers <andya@microsoft.com> * Add AVX10.2 experimental note, and feedback * "C-style" -> "typical" Co-authored-by: Rich Lander <rlander@microsoft.com> * Add stack allocation example * Numeric ordering, ordered dictionary, json options, matrix operations * Apply suggestions from code review * Update release-notes/10.0/preview/preview1/libraries.md Apply Rich's suggestion Co-authored-by: Rich Lander <rlander@microsoft.com> * Update release-notes/10.0/preview/preview1/libraries.md * Fix linter issues --------- Co-authored-by: Jeremy Barton <jbarton@microsoft.com> Co-authored-by: Tarek Mahmoud Sayed <10833894+tarekgh@users.noreply.github.com> Co-authored-by: carlossanlop <1175054+carlossanlop@users.noreply.github.com> Co-authored-by: Aman Khalid <amankhalid@microsoft.com> Co-authored-by: Andy Ayers <andya@microsoft.com> Co-authored-by: Pranav Senthilnathan <pranas@microsoft.com> * Add ASP.NET Core release notes for .NET 10 Preview 1 (#9740) * Remove extra line in release notes. * Add link to install packages on Chiseled images * Update C# 14 release notes * Remove extra newlines in release notes. * update md * .NET MAUI in .NET 10 Preview 1 (#9727) * [Draft] .NET MAUI in .NET 10 Preview 1 * Update release-notes/10.0/preview/preview1/dotnetmaui.md Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com> * Update release-notes/10.0/preview/preview1/dotnetmaui.md Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com> * Apply suggestions from code review Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com> * cleanup * add info about handlers * Update dotnetmaui.md added Android notes * Update dotnetmaui.md removed community contributions section since we don't have any yet. * cleanup * add ios information --------- Co-authored-by: James Montemagno <james.montemagno@gmail.com> Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com> * update md * trailing * Update wpf.md * Update release-notes/10.0/preview/preview1/10.0.0-preview.1.md Co-authored-by: Jon Galloway <jongalloway@gmail.com> * Update release-notes/10.0/preview/preview1/README.md Co-authored-by: Jon Galloway <jongalloway@gmail.com> * updates * Call out pruning warnings in P1 release notes (#9752) * Call out pruning warnings * Update release-notes/10.0/preview/preview1/sdk.md Co-authored-by: Martin Costello <martin@martincostello.com> * Update release-notes/10.0/preview/preview1/sdk.md --------- Co-authored-by: Martin Costello <martin@martincostello.com> * Update 10.0.0-preview.1.md * Add files via upload * Update releases-index.json * Add files via upload * Update release-notes/10.0/preview/preview1/10.0.0-preview.1.md Co-authored-by: Logan Bussell <loganbussell@microsoft.com> --------- Co-authored-by: Jon Galloway <jongalloway@gmail.com> Co-authored-by: Rich Lander <rlander@microsoft.com> Co-authored-by: Rich Lander <rich@lander.ca> Co-authored-by: maumar <maumar@microsoft.com> Co-authored-by: Kathleen Dollard <kdollard@microsoft.com> Co-authored-by: Tomas Grosup <tomasgrosup@microsoft.com> Co-authored-by: Bill Wagner <wiwagn@microsoft.com> Co-authored-by: Martin Costello <martin@martincostello.com> Co-authored-by: Kathleen Dollard <kathleen.dollard@microsoft.com> Co-authored-by: Merrie McGaw <mmcgaw@microsoft.com> Co-authored-by: Loni Tra <lonitra@microsoft.com> Co-authored-by: Tanya Solyanik <tanyaso@microsoft.com> Co-authored-by: Chet Husk <baronfel@users.noreply.github.com> Co-authored-by: Logan Bussell <loganbussell@microsoft.com> Co-authored-by: Matt Thalman <mthalman@microsoft.com> Co-authored-by: Jeremy Barton <jbarton@microsoft.com> Co-authored-by: Tarek Mahmoud Sayed <10833894+tarekgh@users.noreply.github.com> Co-authored-by: carlossanlop <1175054+carlossanlop@users.noreply.github.com> Co-authored-by: Aman Khalid <amankhalid@microsoft.com> Co-authored-by: Andy Ayers <andya@microsoft.com> Co-authored-by: Pranav Senthilnathan <pranas@microsoft.com> Co-authored-by: Daniel Roth <daroth@microsoft.com> Co-authored-by: David Ortinau <david.ortinau@microsoft.com> Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com> Co-authored-by: Nikolche Kolev <nikolev@microsoft.com> Co-authored-by: Rahul Bhandari <rbhanda@microsoft.com>
7.7 KiB
.NET MAUI in .NET 10 Preview 1 - Release Notes
This release was focused on quality improvements to .NET MAUI, .NET for Android, and .NET for iOS, Mac Catalyst, macOS, and tvOS. You can find detailed information about the improvements below:
.NET MAUI updates in .NET 10:
- What's new in .NET MAUI in .NET 10 documentation.
Known Issue: building
net8.0-*target frameworks with the .NET 10 SDK does not work in Preview 1.
CollectionView enhancements for iOS and Mac Catalyst
Two new handlers for CollectionView and CarouselView on iOS and Mac Catalyst that brought performance and stability improvements were available optionally in .NET 9. In this release they are now on by default.
You can opt out of these handlers by adding the following code to your MauiProgram class if you want to revert back.
#if IOS || MACCATALYST
builder.ConfigureMauiHandlers(handlers =>
{
handlers.AddHandler<Microsoft.Maui.Controls.CollectionView, Microsoft.Maui.Controls.Handlers.Items.CollectionViewHandler>();
handlers.AddHandler<Microsoft.Maui.Controls.CarouselView, Microsoft.Maui.Controls.Handlers.Items.CarouselViewHandler>();
});
#endif
We are excited for you to give these new handlers a try. As a reminder, if you have .NET 9 applications you can try them today with the following code:
#if IOS || MACCATALYST
builder.ConfigureMauiHandlers(handlers =>
{
handlers.AddHandler<Microsoft.Maui.Controls.CollectionView, Microsoft.Maui.Controls.Handlers.Items2.CollectionViewHandler2>();
handlers.AddHandler<Microsoft.Maui.Controls.CarouselView, Microsoft.Maui.Controls.Handlers.Items2.CarouselViewHandler2>();
});
#endif
.NET for Android
This release was focused on quality improvements. A detailed list can be found on dotnet/android GitHub releases.
Android 16 (Baklava) Beta 1
Google has released Beta 1 of the Android 16 (API-36) SDK. Support has been added for using these preview APIs.
To target the Android 16 preview API:
- Use the Android SDK Manager to download the Android 16 (Baklava) Platform
- Update your project's
TargetFrameworktonet10.0-android36
Updated Recommended Minimum Supported Android API
The .NET for Android project templates have been updated to specify 24 ("Nougat") as the default $(SupportedOSPlatformVersion) instead of 21 ("Lollipop"). This prevents users from hitting "desugaring" runtime crashes when using Java default interface methods.
While API-21 is still supported in .NET 10, we recommend updating existing projects to API-24 in order to avoid unexpected runtime errors.
Note: See the main GitHub pull request for more information.
Building with JDK-21 is now supported
.NET for Android projects can now be built with JDK-21.
Support for dotnet run for Android
.NET for Android projects can now be run using dotnet run:
// Run on the only attached Android physical device
dotnet run -p:AdbTarget=-d
// Run on the only running Android emulator
dotnet run -p:AdbTarget=-e
// Run on the specified Android physical device or emulator
dotnet run -p:AdbTarget="-s emulator-5554"
The AdbTarget property is passed to the adb (Android Debug Bridge) command tool.
Note: See the GitHub pull request for more information.
Enable marshal methods by default
A new way of creating the marshal methods needed for Java calling into C# code is now enabled by default. Introduced in .NET 9, we have continued work to stabilize the implementation for .NET 10. This features improves application startup performance.
If you are getting a hang on startup on .NET 10 previews that you didn't see on .NET 9, try disabling marshal methods. If this fixes the hang, please file an issue letting us know there are still issues with marshal methods.
<AndroidEnableMarshalMethods>false</AndroidEnableMarshalMethods>
Visual Studio Design-Time Builds no longer invoke aapt2
For design-time builds, aapt2 is no longer invoked; instead, the .aar files and underlying Android resources are parsed directly. This reduces the time of a Design-Time Build for some of our unit tests from over 2s to under 600ms.
.NET for iOS, Mac Catalyst, macOS, tvOS
This release was focused on quality improvements. A details list can be found on xamarin/xamarin-macios GitHub released including a list of Known issues.
Trimmer warnings enabled by default
In the past we've suppressed trimmer warnings, because the base class library produced trimmer warnings, which meant that it wouldn't be possible for developers to fix all the trimmer warnings.
However, in .NET 9 we believe we fixed all the trimmer warnings from our own code, so now we're ready to for developers to do the same, and thus we're enabling trimmer warnings by default.
This can be disabled, by adding this to the project file:
<PropertyGroup>
<SuppressTrimAnalysisWarnings>true</SuppressTrimAnalysisWarnings>
</PropertyGroup>
See the GitHub Issue for more infomration.
Bundling original resources in libraries
Library projects can have various types of bundle resources (storyboards, xibs, property lists, png images, CoreML models, texture atlases, etc.), and they're bundled into the compiled library as embedded resources.
If any processing can be done (such as compiling storyboards or xibs, or optimizing property lists/png images, etc), this has historically been done before embedding, but this complicates library builds a lot, because this processing:
- Needs to run on a Mac, because compiling xibs/storyboards can only be done on a Mac.
- Needs Apple's toolchain around.
- Makes it impossible to do any decision-making based on the original resources when building the app.
So we've added opt-in support for embedding the original resource in libraries in .NET 9, and making it opt-out in .NET 10.
The default behavior can be changed in the project file like this:
<PropertyGroup>
<BundleOriginalResources>false</BundleOriginalResources>
</PropertyGroup>
See the GitHub Issue for more information.