.NET 10.0.1xx Preview 2 (10552)
Pre-releaseWe're excited to announce our second preview release for .NET 10!
Note: these are the base SDKs that add support for the platforms in question. For MAUI (which is built on top of our SDKs), visit: https://learn.microsoft.com/dotnet/maui/.
This release consists of the following versions:
- iOS: 18.2.10552-net10-p2
- tvOS: 18.2.10552-net10-p2
- Mac Catalyst: 18.2.10552-net10-p2
- macOS: 15.2.10552-net10-p2
Full release notes: .NET 10 release notes
Known issues: Known issues in .NET 10
Installation
You can use workload set version 10.0.100-preview.2.25167.2 in order to install these versions of the SDKs, please make sure to be using the second preview of the .NET SDK 10.0.100 before issuing the dotnet workload install command below. You can validate your installed dotnet version using dotnet --version do make sure it shows 10.0.100 or greater before proceeding.
dotnet workload install <workload id(s)> --version 10.0.100-preview.2.25167.2Available workload ids
- ios
- tvos
- macos
- maccatalyst
- android (see https://github.com/dotnet/android)
- maui (see https://github.com/dotnet/maui)
Example command installing all listed workloads.
dotnet workload install ios tvos macos maccatalyst maui android --version 10.0.100-preview.2.25167.2You can use dotnet workload --info to validate the workload versions installed in your system.
What's Changed
- [BGen] Remove support for the System.Drawing objects. by @mandel-macaque in #22247
- [BGen] Simplify BindAs for smart enums. by @mandel-macaque in #22222
- [Bgen] Simplify the BindAs generated code. by @mandel-macaque in #22216
- [CoreGraphics] Add missing availability attributes. Fixes #22107. by @rolfbjarne in #22145
- [CoreMedia] Remove !NET code. by @rolfbjarne in #22159
- [CoreVideo/WebKit] Refactor code a bit to unify indentation. by @rolfbjarne in #22179
- [CoreVideo] Remove !NET code. by @rolfbjarne in #22158
- [dotnet-linker] Generate IL offsets for code emitted directly to IL via Cecil by @rolfbjarne in #22149
- [dotnet] Improve listing older tooling workloads we might depend on. by @rolfbjarne in #22233
- [Foundation] Fix casing of NSCache.SetObjectForKey. Fixes #22103. by @rolfbjarne in #22141
- [Foundation] Remove NET conditions from some files. by @rolfbjarne in #22004
- [Intents] Clean up code. by @rolfbjarne in #22152
- [Metal] Remove incorrect deprecation attributes for MTLTextureDescriptor.SampleCount. Fixes #22108. by @rolfbjarne in #22142
- [msbuild] Demote W7091 to a message instead of warning. by @rolfbjarne in #22000
- [msbuild] Fix duplicate resources when bundling original resources. by @rolfbjarne in #21990
- [msbuild] Validate that we don't write outside the target directory when decompressing zip files. by @rolfbjarne in #21948
- [net10.0] [dotnet] Disable aggressive attribute trimming when using NativeAOT. Fixes #22065. by @rolfbjarne in #22151
- [Rgen] Add a central location for the aux variable naming. by @mandel-macaque in #22063
- [Rgen] Add a factory method that will create the aux variable for handles. by @mandel-macaque in #22067
- [RGen] Add a factory method to create the aux variable for a BindFrom (typeof(NSString)). by @mandel-macaque in #22113
- [Rgen] Add a factory method to create the aux variable for a BindFrom(typeof(NSValue)). by @mandel-macaque in #22112
- [Rgen] Add a method that will return a constructor data model from a method signature. by @mandel-macaque in #22100
- [Rgen] Add a new CreateBlock method for several concatenated blocks. by @mandel-macaque in #22115
- [RGen] Add a new flag to determine if a type is a core image filter. by @mandel-macaque in #22110
- [Rgen] Add a new struc that will represent the needed trivia for a symbol. by @mandel-macaque in #22017
- [Rgen] Add a property invocations struct to be used with the syntax factory. by @mandel-macaque in #22191
- [RGen] Add a roslyn based implementation of the GetValueTypeSize. by @mandel-macaque in #22037
- [RGen] Add an implementation of Stret.IsBuiltInType with Roslyn. by @mandel-macaque in #22036
- [Rgen] Add Async attr parsing to the transformer. by @mandel-macaque in #22068
- [RGen] Add attributes to the accessor struct in the generator. by @mandel-macaque in #22055
- [RGen] Add BindFrom factory method that will return the correct declaration. by @mandel-macaque in #22114
- [Rgen] Add code needed to parse the several snippet attrs. by @mandel-macaque in #22058
- [Rgen] Add code to parse the NativeAttribute. by @mandel-macaque in #22050
- [Rgen] Add expression factory to ignore nullable warnings. by @mandel-macaque in #22201
- [RGen] Add extension method to know if a symbol is wrapped. by @mandel-macaque in #22077
- [Rgen] Add factory method for the autorelease pool. by @mandel-macaque in #22131
- [Rgen] Add factory method for the throw null arg exception. by @mandel-macaque in #22134
- [RGen] Add factory method needed to create a aux variable for a BindFrom(typeof(NSNumber)). by @mandel-macaque in #22111
- [Rgen] Add factory method that creates a NSArray aux variable. by @mandel-macaque in #22066
- [Rgen] Add factory method that provide a using statement for a declaration. by @mandel-macaque in #22156
- [Rgen] Add factory method that will create an aux variable for strings. by @mandel-macaque in #22080
- [Rgen] Add factory method to cast a byte result to a bool. by @mandel-macaque in #22202
- [Rgen] Add factory method to generate the return variable. by @mandel-macaque in #22173
- [Rgen] Add factory methods to retrieve strings from a handle. by @mandel-macaque in #22200
- [Rgen] Add factory to generate the method needed to check the UIThread. by @mandel-macaque in #22132
- [Rgen] Add field getters and setters. by @mandel-macaque in #22006
- [Rgen] Add flags to use plain strings during the marshalling. by @mandel-macaque in #22116
- [Rgen] Add logging to the transformer. by @mandel-macaque in #22016
- [Rgen] Add method in the syntax factory to cast a bool to a byte. by @mandel-macaque in #22061
- [Rgen] Add method to get the pointer for the exception handler. by @mandel-macaque in #22135
- [Rgen] Add more information about the type in the TypeInfo struct. by @mandel-macaque in #22005
- [Rgen] Add needed factory methods to cast an enum to its primitive type. by @mandel-macaque in #22062
- [Rgen] Add parsing of the ThreadSafe attr to the transformer. by @mandel-macaque in #22056
- [Rgen] Add properties as part of the parent's list of accessors. by @mandel-macaque in #21984
- [Rgen] Add properties in the Property data model to decide if a field is needed. by @mandel-macaque in #22078
- [Rgen] Add properties to decide if a temp return variable is needed. by @mandel-macaque in #22139
- [Rgen] Add properties to the data model in the transformer. by @mandel-macaque in #22157
- [Rgen] Add property to let us know if a parameter needs the null checks. by @mandel-macaque in #22133
- [Rgen] Add skeleton code for the field properties in a class. by @mandel-macaque in #21993
- [RGen] Add some extra tests for properties. by @mandel-macaque in #21992
- [Rgen] Add support for the Methods/Constructors in the transformer. by @mandel-macaque in #22162
- [Rgen] Add support to parse StrongDictionary in the transformer. by @mandel-macaque in #22204
- [Rgen] Add support to parse the CoreImageFilter attribute. by @mandel-macaque in #22043
- [Rgen] Add support to parse the error domain attr. by @mandel-macaque in #22048
- [Rgen] Add support to parse the strong dict attr in the transformer. by @mandel-macaque in #22057
- [Rgen] Add support to the export method to provide custom marshalling. by @mandel-macaque in #22009
- [Rgen] Add support to the syntax factory to generate setters for fields. by @mandel-macaque in #21983
- [Rgen] Add support to the transformer to parse the old xamarin availability. by @mandel-macaque in #22023
- [Rgen] Add the BindingFlag attribute to some missing attribute names. by @mandel-macaque in #22049
- [RGen] Add the code generation for the data attributes. by @mandel-macaque in #22053
- [RGen] Add the code to parse the field attribute in the transformer. by @mandel-macaque in #22019
- [Rgen] Add the initial SDK parsing to the transformer. by @mandel-macaque in #22155
- [Rgen] Add the method data model missing pieces for the transformer. by @mandel-macaque in #22092
- [Rgen] Add the missing code to complete the property datamodel in the transformer. by @mandel-macaque in #22094
- [Rgen] Add the needed code to make the objc_msgSend signatures. by @mandel-macaque in #22029
- [Rgen] Add the needed code to parse a BindAsAttriubte. by @mandel-macaque in #22083
- [Rgen] Add the needed factory method to generate NSArrays for the BindFrom attr. by @mandel-macaque in #22118
- [Rgen] Add the parsing code for the BaseTypeAttribute in the transformer. by @mandel-macaque in #22021
- [Rgen] Add the selector fields to the generated classes. by @mandel-macaque in #22184
- [Rgen] Add the use of a temp variable in the property getter. by @mandel-macaque in #22182
- [Rgen] Allow disable porperties as zero copy. by @mandel-macaque in #22026
- [Rgen] Allow the transformer to parse smart enums. by @mandel-macaque in #22097
- [Rgen] Allow the transformer to use the tabbed string builder. by @mandel-macaque in #22020
- [Rgen] Allow to mark bindings as thread safe. by @mandel-macaque in #22045
- [Rgen] Allows to mark a property or accessor to marshal native exceptions by @mandel-macaque in #21997
- [Rgen] Boolean properties do not need a temp variable. by @mandel-macaque in #22207
- [RGen] Check that properties in the UI namespaces are in the right thread. by @mandel-macaque in #22189
- [Rgen] Compile all platforms provided in parallel. by @mandel-macaque in #22024
- [Rgen] Create a generic method that can be used to test all attr parsing. by @mandel-macaque in #22073
- [Rgen] Ensure that properties with a wrap return type use a temp variable by @mandel-macaque in #22193
- [Rgen] Ensure that the GetUINamespaces test works when platforms are disabled. by @mandel-macaque in #22198
- [Rgen] Ensure transformer tests can build with missing platforms. by @mandel-macaque in #22246
- [Rgen] Fix a bug in the ToMarshallType with arrays. by @mandel-macaque in #22194
- [Rgen] Fix a bug in how the target flags are managed. by @mandel-macaque in #22054
- [RGen] Fix bug in the extension that returned the type information. by @mandel-macaque in #22192
- [Rgen] Fix flacky tests when doing several compilations in parallel. by @mandel-macaque in #22195
- [Rgen] Generate casting expressions for native enums. by @mandel-macaque in #22059
- [Rgen] Generate the property signatures. by @mandel-macaque in #22172
- [RGen] Implement 'IsSmartEnum' for the transformer. by @mandel-macaque in #22090
- [RGen] Implement the BindAttribute parsing logic for the transformer. by @mandel-macaque in #22041
- [RGen] Implement the BindFrom attribute. by @mandel-macaque in #22087
- [Rgen] Implement the code in the transformer to parse Export attrs. by @mandel-macaque in #22018
- [Rgen] Implement the filtering in the transformer tool. by @mandel-macaque in #22012
- [Rgen] Implement the methods to decide if we need to use a stret call. by @mandel-macaque in #22038
- [Rgen] Implement the parsing of the backing field attr in the transformer. by @mandel-macaque in #22040
- [Rgen] Keep track if a type is a dictionary container. by @mandel-macaque in #22042
- [RGen] Keep track in the generator if a type needs a stret call. by @mandel-macaque in #22138
- [RGen] Make the transformer generator be netstandard2.1 to make editors happy. by @mandel-macaque in #22039
- [Rgen] Mark 'Constructor' named methods as constructors in the transformer. by @mandel-macaque in #22095
- [Rgen] Move all the attributes to be readonly record struct. by @mandel-macaque in #22069
- [Rgen] Move the tab string builder to use a IndentedTextWriter internally. by @mandel-macaque in #22120
- [Rgen] Move to use TypeInfo as the Type property in Parameters. by @mandel-macaque in #21998
- [Rgen] Provide a factory method that creates the objc msg send calls. by @mandel-macaque in #22190
- [RGen] Provide a method that returns the selector for an accessor. by @mandel-macaque in #21995
- [Rgen] Provide a method to return the current UI namespaces. by @mandel-macaque in #22047
- [Rgen] Provide a StreamWriter indent writer for the transformer. by @mandel-macaque in #22126
- [RGen] Provide async methods for the TabbedWriter. by @mandel-macaque in #22121
- [Rgen] Provide the intial implementation of the migration tool. by @mandel-macaque in #22011
- [Rgen] Provide the needed code to parse notification attrs. by @mandel-macaque in #22075
- [Rgen] Remove duplicated methods after bad merge. by @mandel-macaque in https://github.com/dotnet/ macios/pull/22136
- [Rgen] Remove probable debug variable. by @mandel-macaque in #22174
- [Rgen] Remove the special case in the NSArray aux variable. by @mandel-macaque in #22171
- [Rgen] Renamed CodeChanges to Binding to be more clear. by @mandel-macaque in #22031
- [Rgen] Set warnings to errors in the transformer tests. by @mandel-macaque in #22086
- [Rgen] Share DataModel between the generator and the transformer. by @mandel-macaque in #22015
- [Rgen] Start generating simple getter calls. by @mandel-macaque in #22206
- [Rgen] Start implementing the missing parts of the data model for the transformer. by @mandel-macaque in #22091
- [RGen] Support properties that return NSObjects and NSObject[]. by @mandel-macaque in #22211
- [RGen] Update signature ot the TryCreate methods to match those in the generator. by @mandel-macaque in #22099
- [Rgen] Update tabbed string building API. by @mandel-macaque in #22119
- [Rgen] Update the transformer code generator. by @mandel-macaque in #22051
- [RGen] Update the transformer generator to access the attr data. by @mandel-macaque in #22052
- [Rgen] Use a roslyn code generator to help generate the flag parsing of all attributes. by @mandel-macaque in #22032
- [Rgen] Use ITypeSymbol over INamedTypeSymbol since they interface is more general and will give less problems. by @mandel-macaque in #22085
- [Rgen] Use the api definiton for the transformer tests. by @mandel-macaque in #22022
- [Social] Make SLServiceKind a strong enum and update/simplify code accordingly. by @rolfbjarne in #22170
- [SpriteKit] Clean conditional code. by @rolfbjarne in #22002
- [src] Clean conditional NET code. by @rolfbjarne in #22146
- [src] Import xml docs for members, part 1. by @rolfbjarne in #22210
- [UIKit] Make UIRectEdge a flags enum. Fixes #22125. by @rolfbjarne in #22144
- [WebKit] Fix nullability in WKUIDelegate.RunJavaScriptTextInputPanel for XAMCORE_5_0. by @rolfbjarne in #22199
- Set default for UseSizeOptimizedLinq by @mandel-macaque in #22076
- Update coreclrhost.h download URL by @ivanpovazan in #22213
Full Changelog: dotnet-10.0.1xx-preview1-10322...dotnet-10.0.1xx-preview2-10552