[Breaking change]: AssemblyName members HashAlgorithm, ProcessorArchitecture, and VersionCompatibility are obsolete and not supported #27087
Labels
breaking-change
Indicates a .NET Core breaking change
🏁 Release: .NET 7
Work items for the .NET 7 release
doc-idea
Indicates issues that are suggestions for new topics [org][type][category]
Pri1
High priority, do before Pri2 and Pri3
source incompatible
Source code may encounter a breaking change in behavior when targeting the new version.
Description
AssemblyName has number of properties that are not proper part of assembly name. They do not not roundtrip through AssemblyName string representation and they are ignored by the assembly loader in .NET Core. They were marked as obsolete in dotnet/runtime#59522.
Version
.NET 7 Preview 1
Previous behavior
Usage of these AssemblyName members did not produce any build warnings, but their functionality could not be relied upon at runtime.
New behavior
Usage of these AssemblyName members will produce build warnings with diagnostic ID
SYSLIB0037
.Type of breaking change
Reason for change
Annotating unsupported APIs as obsolete.
Recommended action
Do not use these members in scenarios where it was expected for the values to be roundtripped through the string representation of the AssemblyName.
Feature area
Core .NET libraries
Affected APIs
The text was updated successfully, but these errors were encountered: