Fix secannotate errors introduced by #17076 in DiagnosticSource#17132
Conversation
|
cc: @morganbr |
|
Looks good to me. |
@morganbr, do we care about the results of secannotate on non-net46/netfx? Does it even produce valid results in those cases, given the inconsistency with which these attributes (which are then nops) are applied on such platforms? |
|
@stephentoub , it's a bit helpful to ensure they're clean so other security tools don't flag them. |
Ok. There are several hundred of these across the repo, so if that's an issue, we should delete / clean those up as well. https://github.com/dotnet/corefx/issues/12592 |
…fix_secannotate_errors Fix secannotate errors introduced by dotnet/corefx#17076 in DiagnosticSource Commit migrated from dotnet/corefx@4ac8e65
On the target that do not declare AllowPartiallyTrustedCallers (all except net46 and netfx), secannotate shows a critical error
This change uses
SecuritySafeCriticalattribute only on net46 and netfx.