.NET docs: What's new for September 1, 2021 - September 30, 2021
Welcome to what's new in the .NET docs from September 1, 2021 through September 30, 2021. This article lists some of the major changes to docs during this period.
.NET fundamentals
New articles
- ListViewGroupCollection methods throw new InvalidOperationException
- JSON source-generation API refactoring
- TryParse and BindAsync methods are validated
- New nullable annotation in AssociatedMetadataTypeTypeDescriptionProvider
- RuntimeIdentifier warning if self-contained is unspecified
- CA2252: Opt in to preview features before using them
- MSBuild no longer supports calling GetType()
- New JsonSerializer source generator overloads
- Static abstract members in interfaces
- Introduction to trim warnings
- SYSLIB0032: Recovery from corrupted process state exceptions is not supported
- SYSLIB0033: Rfc2898DeriveBytes.CryptDeriveKey is obsolete
- SYSLIB0034: CmsSigner(CspParameters) constructor is obsolete
- SYSLIB0035: ComputeCounterSignature without specifying a CmsSigner is obsolete
- Use HTTP/3 with HttpClient
- Tutorial: Use the
ComWrappersAPI - Razor: Logging ID changes
- CA5404: Do not disable token validation checks
- CA5405: Do not always skip token validation in delegates
- CA1418: Validate platform compatibility
- CA1849: Call async methods when in an async method
- IL2001: Descriptor file tried to preserve fields on type that has no fields
- IL2002: Descriptor file tried to preserve methods on type that has no methods
- IL2003: Could not resolve dependency assembly specified in a 'PreserveDependency' attribute
- IL2004: Could not resolve dependency type specified in a 'PreserveDependency' attribute
- IL2005: Could not resolve dependency member specified in a 'PreserveDependency' attribute
- IL2007: Could not resolve assembly specified in descriptor file
- IL2008: Could not resolve type specified in descriptor file
- IL2009: Could not resolve method specified in descriptor file
- IL2010: Invalid value on a method substitution
- IL2011: Unknown body modification action
- IL2012: Could not find field on type in substitution file
- IL2013: Substituted fields must be static or constant
- IL2014: Missing value for field substitution
- IL2015: Invalid value for field substitution
- IL2016: Could not find event on type
- IL2017: Could not find property on type
- IL2018: Could not find the get accessor of property on type in descriptor file
- IL2019: Could not find the set accessor of property on type in descriptor file
- IL2022: Could not find matching constructor for custom attribute specified in custom attribute annotations file
- IL2023: There is more than one
returnchild element specified for a method in a custom attribute annotations file - IL2024: There is more than one value specified for the same method parameter in a custom attribute annotations file
- IL2025: Duplicate preserve of a member in a descriptor file
- IL2027: Known trimmer attribute used more than once on a single member
- IL2028: Known trimmer attribute does not have the required number of parameters
- IL2029: Attribute element in custom attribute annotations file does not have required argument
fullnameor it is empty - IL2030: Could not resolve an assembly specified in a custom attribute annotations file
- IL2031: Could not resolve custom attribute specified in a custom attribute annotations file
- IL2032: Unrecognized value passed to the parameter 'parameter' of 'System.Activator.CreateInstance' method
- IL2033: 'PreserveDependencyAttribute' is deprecated
- IL2034: 'DynamicDependencyAttribute' could not be analyzed
- IL2035: Unresolved assembly in 'DynamicDependencyAttribute'
- IL2036: Unresolved type in 'DynamicDependencyAttribute'
- IL2037: Unresolved member in 'DynamicDependencyAttribute'
- IL2038: Missing
nameargument on a resource element in a substitution file - IL2039: Invalid
actionvalue on resource element in a substitution file - IL2040: Could not find embedded resource specified in a substitution file
- IL2041: 'DynamicallyAccessedMembersAttribute' is not allowed on methods
- IL2042: Could not find a unique backing field to propagate the 'DynamicallyAccessedMembersAttribute' annotation on a property
- IL2043: 'DynamicallyAccessedMembersAttribute' on property conflicts with the same attribute on its accessor method
- IL2044: Could not find any type in a namespace specified in a descriptor file
- IL2045: Custom attribute is referenced in code but the trimmer was instructed to remove all of its instances
- IL2046: All interface implementations and method overrides must have annotations matching the interface or overriden virtual method 'RequiresUnreferencedCodeAttribute' annotations
- IL2048: Internal trimmer attribute 'RemoveAttributeInstances' is being used on a member
- IL2049: Unrecognized internal attribute
- IL2050: Correctness of COM interop cannot be guaranteed
- IL2051: Property element does not have required argument
namein custom attribute annotations file - IL2052: Could not find property specified in custom attribute annotations file
- IL2053: Invalid value used in property element in custom attribute annotations file
- IL2054: Invalid argument value in custom attribute annotations file
- IL2055: Call to 'System.Type.MakeGenericType' cannot be statically analyzed by the trimmer
- IL2056: A 'System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute' annotation on a property conflicts with the same attribute on its backing field
- IL2057: Unrecognized value passed to the
typeNameparameter of 'System.Type.GetType(String)' - IL2058: Parameters passed to 'Assembly.CreateInstance' cannot be statically analyzed
- IL2059: Unrecognized value passed to the
typeparameter of 'System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor' - IL2060: Call to 'System.Reflection.MethodInfo.MakeGenericMethod' cannot be statically analyzed by the trimmer
Updated articles
- Code style rule options - Update editorconfig example
- Deploy a Worker Service to Azure - Update Deploy a Worker Service to Azure article
- Tutorial: Debug a .NET console application using Visual Studio - .NET 6 update
- Tutorial: Create a .NET class library using Visual Studio - .NET 6 update
- Tutorial: Publish a .NET console application using Visual Studio - .NET 6 update
- Tutorial: Test a .NET class library with .NET using Visual Studio - .NET 6 update
- Tutorial: Create a .NET console application using Visual Studio - .NET 6 update
- Breaking changes in .NET 5 - Add compatibility columns
- Breaking changes in .NET 6 - Add compatibility columns
- MSBuild reference for .NET SDK projects - Added EnablePreviewFeatures, GenerateRequiresPreviewFeaturesAttribute, SatelliteResourceLanguages, AssemblyMetadata, InternalsVisibleTo, GenerateRuntimeConfigurationFiles, OptimizeImplicitlyTriggeredBuild
C# language
New articles
Updated articles
- Projection operations (C#) - Add code for set operators, and update existing doc
- Set operations (C#) - Add code for set operators, and update existing doc
- Nullable reference types - Update nullable reference types for C# 10
F# language
Updated articles
- F# code formatting guidelines
- Update formatting.md
- Revise F# formatting guide
- Symbol and operator reference - Remove overkill bulled list
ML.NET
New articles
Community contributors
The following people contributed to the .NET docs during this period. Thank you! Learn how to contribute by following the links under "Get involved" in the what's new landing page.
- Uzivatel919 (7)
- pkulikov - Petr Kulikov (6)
- GitHubPang (5)
- Youssef1313 - Youssef Victor (4)
- dulanov - Daulet Dulanov (3)
- bergerb - Brent (2)
- knocte - Andres G. Aragoneses (2)
- omajid - Omair Majid (2)
- AdrianEdelen - Adrian Edelen (1)
- arturohernandez10 (1)
- bb-froggy (1)
- DejanPopovic1 - Dean Popovic (1)
- dunkyl (1)
- gamingrobot - Morgan Creekmore (1)
- Gh0stWalk3r - Gregor Dostal (1)
- jaroldwong - Jarold Wong (1)
- jwood803 - Jon Wood (1)
- jzabroski - John Zabroski (1)
- jzsampaio - Juarez Sampaio (1)
- kcootedinh - Kieran Coote-Dinh (1)
- kthompson - Kevin Thompson (1)
- limuyuan - Morris Li (1)
- mahdiva - Mahdi Varposhti (1)
- marzo23 (1)
- MSDN-WhiteKnight - MSDN.WhiteKnight (1)
- okyrylchuk - Oleg Kyrylchuk (1)
- Pentiminax - Pentiminax (1)
- Psycho900 (1)
- ranma42 - Andrea Canciani (1)
- rstm-sf - Rustam (1)
- smoothdeveloper - Gauthier Segay (1)
- StingyJack - Andrew Stanton (1)
- usewits - Abe Wits (1)
- zanaptak (1)
- zedy-wj - Wenjie Yu(MSFT) (1)