Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance DynamicallyAccessedMembers Attribute #49778

Merged
merged 46 commits into from
Mar 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
54516c7
eh fix
LakshanF Oct 29, 2020
dbe9ca4
Merge remote-tracking branch 'upstream/master'
LakshanF Oct 29, 2020
70e04d7
Merge remote-tracking branch 'upstream/master'
LakshanF Jan 1, 2021
f4fc3f8
Merge remote-tracking branch 'upstream/master'
LakshanF Jan 6, 2021
ee6401d
Merge remote-tracking branch 'upstream/master'
LakshanF Jan 7, 2021
e87f26c
Merge remote-tracking branch 'upstream/master'
LakshanF Feb 9, 2021
af6bcb0
Merge remote-tracking branch 'upstream/master'
LakshanF Feb 10, 2021
9cc84c0
Merge remote-tracking branch 'upstream/master'
LakshanF Feb 10, 2021
2f7bc29
Merge remote-tracking branch 'upstream/master'
LakshanF Feb 11, 2021
42eadd3
test change that inadvertently got checked in earlier
LakshanF Feb 11, 2021
d4d9e31
Merge remote-tracking branch 'upstream/master'
LakshanF Feb 12, 2021
7317d3c
Merge remote-tracking branch 'upstream/master'
LakshanF Feb 17, 2021
f04fb8d
Merge remote-tracking branch 'upstream/master'
LakshanF Feb 22, 2021
3427371
Merge remote-tracking branch 'upstream/master'
LakshanF Feb 23, 2021
5cf8134
Merge branch 'master' of https://github.com/LakshanF/runtime
LakshanF Feb 23, 2021
584e0e3
Merge remote-tracking branch 'upstream/master'
LakshanF Feb 24, 2021
715dcbd
Merge branch 'master' of https://github.com/LakshanF/runtime
LakshanF Feb 24, 2021
8dab23e
Merge remote-tracking branch 'upstream/master'
LakshanF Feb 25, 2021
56fcb12
Merge branch 'master' of https://github.com/LakshanF/runtime
LakshanF Feb 25, 2021
7679b91
Merge remote-tracking branch 'upstream/master'
LakshanF Feb 26, 2021
1fdfdbf
Merge remote-tracking branch 'upstream/master'
LakshanF Feb 26, 2021
f50c6f9
Merge branch 'master' of https://github.com/LakshanF/runtime
LakshanF Feb 26, 2021
db9be82
Suppresses the trimmer warning on TypeAnalysis ctor
LakshanF Feb 26, 2021
b623513
Incorporating FB
LakshanF Feb 26, 2021
045e38d
Update src/libraries/System.Diagnostics.DiagnosticSource/src/System/D…
LakshanF Mar 1, 2021
a9dda65
Update src/libraries/System.Diagnostics.DiagnosticSource/src/System/D…
LakshanF Mar 1, 2021
4ccd2ae
Update src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tr…
LakshanF Mar 1, 2021
ea460c3
Fix DynamicDependency as per PR feedback
LakshanF Mar 1, 2021
31667cf
Merge branch 'EventSrcWrnFix2' of https://github.com/LakshanF/runtime…
LakshanF Mar 1, 2021
3e56d85
an earlier change got reverted
LakshanF Mar 1, 2021
aa2a21d
fixed proj file netcore app condition check
LakshanF Mar 1, 2021
3d61a44
fixed NETCORE_ENGINEERING_TELEMETRY build failures
LakshanF Mar 1, 2021
5775e1a
fixeing another NETCORE_ENGINEERING_TELEMETRY build failures
LakshanF Mar 1, 2021
f1d3a1b
Adding RequiresUnreferencedCode to TypeAnalysis ctor instead of suppr…
LakshanF Mar 2, 2021
589ee3f
PR FB and suppressing warnings for safe calls
LakshanF Mar 3, 2021
bb4a18d
propagated the warning all the way up
LakshanF Mar 3, 2021
024c8d6
CI build break fix for one file
LakshanF Mar 3, 2021
7dd337f
Merge branch 'main' into EventSrcWrnFix2
LakshanF Mar 4, 2021
6d51f12
excluding NativeRTEventSrc from being build in a project
LakshanF Mar 4, 2021
bfd3bc3
Merge branch 'EventSrcWrnFix2' of https://github.com/LakshanF/runtime…
LakshanF Mar 4, 2021
0540809
Missed couple of supppressions on NativeRTEventSrc
LakshanF Mar 4, 2021
f0ca444
build break fixes
LakshanF Mar 4, 2021
a3808fe
Merge remote-tracking branch 'upstream/main' into main
LakshanF Mar 9, 2021
ca38974
Merge remote-tracking branch 'upstream/main' into main
LakshanF Mar 9, 2021
bcc0670
Merge remote-tracking branch 'upstream/main' into main
LakshanF Mar 17, 2021
0df1840
Enhancement to DynamicallyAccessedMembersAttribute
LakshanF Mar 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ namespace System.Diagnostics.CodeAnalysis
/// </remarks>
[AttributeUsage(
AttributeTargets.Field | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter |
AttributeTargets.Parameter | AttributeTargets.Property | AttributeTargets.Method,
AttributeTargets.Parameter | AttributeTargets.Property | AttributeTargets.Method |
AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Struct,
Inherited = false)]
#if SYSTEM_PRIVATE_CORELIB
public
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/System.Runtime/ref/System.Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5911,7 +5911,7 @@ public sealed partial class DoesNotReturnIfAttribute : System.Attribute
public DoesNotReturnIfAttribute(bool parameterValue) { }
public bool ParameterValue { get { throw null; } }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.GenericParameter | System.AttributeTargets.Method | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue, Inherited=false)]
[System.AttributeUsageAttribute(System.AttributeTargets.Field | System.AttributeTargets.GenericParameter | System.AttributeTargets.Method | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.ReturnValue | AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Struct, Inherited=false)]
public sealed partial class DynamicallyAccessedMembersAttribute : System.Attribute
{
public DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes memberTypes) { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ CannotRemoveAttribute : Attribute 'System.Diagnostics.CodeAnalysis.AllowNullAttr
Compat issues with assembly System.Net.Primitives:
CannotRemoveAttribute : Attribute 'System.Diagnostics.CodeAnalysis.AllowNullAttribute' exists on parameter 'value' on member 'System.Net.Cookie.Name.set(System.String)' in the contract but not the implementation.
Compat issues with assembly System.Runtime:
CannotChangeAttribute : Attribute 'System.AttributeUsageAttribute' on 'System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute' changed from '[AttributeUsageAttribute(AttributeTargets.Field | AttributeTargets.GenericParameter | AttributeTargets.Method | AttributeTargets.Parameter | AttributeTargets.Property | AttributeTargets.ReturnValue, Inherited=false)]' in the contract to '[AttributeUsageAttribute(AttributeTargets.Class | AttributeTargets.Field | AttributeTargets.GenericParameter | AttributeTargets.Interface | AttributeTargets.Method | AttributeTargets.Parameter | AttributeTargets.Property | AttributeTargets.ReturnValue | AttributeTargets.Struct, Inherited=false)]' in the implementation.
CannotChangeAttribute : Attribute 'System.AttributeUsageAttribute' on 'System.Runtime.Versioning.SupportedOSPlatformAttribute' changed from '[AttributeUsageAttribute(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Enum | AttributeTargets.Event | AttributeTargets.Field | AttributeTargets.Method | AttributeTargets.Module | AttributeTargets.Property | AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]' in the contract to '[AttributeUsageAttribute(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Enum | AttributeTargets.Event | AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Method | AttributeTargets.Module | AttributeTargets.Property | AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]' in the implementation.
CannotChangeAttribute : Attribute 'System.AttributeUsageAttribute' on 'System.Runtime.Versioning.UnsupportedOSPlatformAttribute' changed from '[AttributeUsageAttribute(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Enum | AttributeTargets.Event | AttributeTargets.Field | AttributeTargets.Method | AttributeTargets.Module | AttributeTargets.Property | AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]' in the contract to '[AttributeUsageAttribute(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Enum | AttributeTargets.Event | AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Method | AttributeTargets.Module | AttributeTargets.Property | AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]' in the implementation.
Compat issues with assembly System.Security.Cryptography.Algorithms:
Expand Down