-
Notifications
You must be signed in to change notification settings - Fork 5.4k
AssemblyName constructor accepts invalid assembly names such as /hello/world #123951
Copy link
Copy link
Open
Labels
area-System.ReflectionquestionAnswer questions and provide assistance, not an issue with source code or documentation.Answer questions and provide assistance, not an issue with source code or documentation.untriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-System.ReflectionquestionAnswer questions and provide assistance, not an issue with source code or documentation.Answer questions and provide assistance, not an issue with source code or documentation.untriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner