Fix CustomAttributeData in the presence of generic attributes (#56879)
authorDavid Wrighton <davidwr@microsoft.com>
Thu, 5 Aug 2021 19:34:21 +0000 (12:34 -0700)
committerGitHub <noreply@github.com>
Thu, 5 Aug 2021 19:34:21 +0000 (12:34 -0700)
commit019d7787a28c7ad76ff9b09c5b411f9a74adc563
tree475fe243b687b09d0a3ace7b5c89cd26772c2155
parentdf05666d8f97c7a27c84a4701dae2f304a954e56
Fix CustomAttributeData in the presence of generic attributes (#56879)

* Fix CustomAttributeData in the presence of generic attributes
- Generic attributes need to force the actual exact method to be loaded not just the canonical scenario
- GenericAttribute testing had been disabled due to dotnet/msbuild#6734
- Move GenericAttribute test project to Pri0 as its the only generic custom attribute runtime testing that will occur before .NET 6.0 ships
- Test disabled on Mono as Mono currently doesn't support this feature.

Fixes #56492
src/coreclr/System.Private.CoreLib/src/System/Reflection/RuntimeCustomAttributeData.cs
src/tests/Common/dirs.proj
src/tests/issues.targets
src/tests/reflection/GenericAttribute/GenericAttributeMetadata.il
src/tests/reflection/GenericAttribute/GenericAttributeTests.cs
src/tests/reflection/GenericAttribute/GenericAttributeTests.csproj