Closed
Description
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
- Binary incompatible: Existing binaries may encounter a breaking change in behavior, such as failure to load/execute or different run-time behavior.
- Source incompatible: Source code may encounter a breaking change in behavior when targeting the new runtime/component/SDK, such as compile errors or different run-time behavior.
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