Repository navigation
Add InternalsVisibleToAttribute and compilation attributes to global attributes reference (Fixes #42831) - #56644
Conversation
BillWagner
left a comment
There was a problem hiding this comment.
Thanks @Manish-1kumar
I like the addition of the InternalsVisibleTo attribute. However, we don't want to promote strong naming in modern .NET applications.
| | <xref:System.Reflection.AssemblyDelaySignAttribute> | Specifies that the assembly is delay-signed when emitted. For more information, see [Delay-sign an assembly](../../../standard/assembly/delay-sign.md). | | ||
| | <xref:System.Reflection.AssemblyKeyFileAttribute> | Specifies the name of the file containing the key pair used to generate a strong name. For more information, see [Strong-named assemblies](../../../standard/assembly/strong-named.md). | | ||
| | <xref:System.Reflection.AssemblyKeyNameAttribute> | Specifies the name of a key container within the CSP used to generate a strong name. | |
There was a problem hiding this comment.
These shouldn't be added.
See https://github.com/dotnet/runtime/blob/main/docs/project/strong-name-signing.md for an explanation of why we are no longer recommending strong naming.
There was a problem hiding this comment.
Thanks! Removed the strong-naming attributes and kept InternalsVisibleTo in 18b2853.
There was a problem hiding this comment.
After rebasing onto the latest main, that change is now in 42f79d3.
18b2853 to
e1bf42d
Compare
…attributes reference - Add Compilation and assembly access attributes section - Add InternalsVisibleToAttribute for friend assembly member accessibility - Add strong-name and delay signing assembly attributes - Cross-link to friend assemblies and signing guides Fixes dotnet#42831
e1bf42d to
42f79d3
Compare
|
@BillWagner I've removed the strong-naming attributes and kept only |
Summary
This pull request addresses #42831 by adding InternalsVisibleToAttribute and related compilation attributes to the assembly-level global attributes documentation.
Changes Made
Fixes #42831
Internal previews
Build report