Skip to content

AssemblyName constructor accepts invalid assembly names such as /hello/world #123951

@lostmsu

Description

@lostmsu

Description

/hello/world is not a valid assembly name, but is accepted as one in .NET 10

Reproduction Steps

new AssemblyName("/hello/world")

Expected behavior

System.IO.FileLoadException: The given assembly name was invalid.

Actual behavior

Returns an instance of AssemblyName

Regression?

In .NET 8 the parser would discard such a name.

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.ReflectionquestionAnswer questions and provide assistance, not an issue with source code or documentation.untriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions