* Add DynamicDependencyAttribute
* Add tests for DynamicDependencyAttribute
* Test PreserveDependency on illink, disable on mono
* Add more tests for DynamicDependency
* Fix whitespace and failing test
* Fix mono build with LangVersion latest
* Use null sentinel
Instead of type itself for DynamicallyAccessedMemberTypes.All
* Changes to attribute caching
- Use IMemberDefinition as key
- Remove optimization for DynamicDependencyAttribute case
- Add optimization to check for presence of attributes in the cache
- Add checking of member types for the attributes
* Use Attribute type in cache, and move helpers to DynamicDependency
* Remove DynamicDependencyAttribute implementation
* Don't disable flow analysis for Dynamic/PreserveDependency
* Add tests for DynamicallyAccessedMemberTypes
* Update docs/error-codes.md
Co-authored-by: Vitek Karas <vitek.karas@microsoft.com>
* PR feedback
- Remove assert
- Move helpers to signature parser
- Consolidate warning messages
* Fix up tests
* Make PreserveDependency deprecated
We will keep supporting it for now, and remove support for it once
runtime has been converted to DynamicDependency
* PR feedback
- Remove left-over dead code, imports
- Fix typos
- Don't respect Condition on DynamicDependencyAttribute
* Use new logging helpers
* More PR feedback
* Use Resolve () instead
* Update one more logging callsite
Co-authored-by: Vitek Karas <vitek.karas@microsoft.com>