Skip to content

[Breaking change]: AssemblyName members HashAlgorithm, ProcessorArchitecture, and VersionCompatibility are obsolete and not supported #27087

Closed
@jeffhandley

Description

@jeffhandley

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

Affected APIs

Metadata

Metadata

Assignees

Labels

🏁 Release: .NET 7Work items for the .NET 7 releasebreaking-changeIndicates a .NET Core breaking changesource incompatibleSource code may encounter a breaking change in behavior when targeting the new version.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions