2017-04-18 07:52:04 +08:00
## ObsoleteAttribute exports as both ObsoleteAttribute and DeprecatedAttribute in WinMD scenarios
2017-04-06 04:52:19 +08:00
### Scope
Edge
### Version Introduced
4.5.1
### Source Analyzer Status
Available
### Change Description
2017-04-21 02:19:05 +08:00
When you create a Windows Metadata library (.winmd file), the
< xref:System.ObsoleteAttribute ? displayProperty = name > attribute is exported as
both < xref:System.ObsoleteAttribute ? displayProperty = name > and
2018-02-21 02:29:52 +08:00
[Windows.Foundation.DeprecatedAttribute ](https://docs.microsoft.com/uwp/api/windows.foundation.metadata.deprecatedattribute ).
2017-04-06 04:52:19 +08:00
- [ ] Quirked
- [x] Build-time break
### Recommended Action
2017-04-21 02:19:05 +08:00
Recompilation of existing source code that uses the
< xref:System.ObsoleteAttribute ? displayProperty = name > attribute may generate
warnings when consuming that code from C++/CX or JavaScript.
We do not recommend applying both
< xref:System.ObsoleteAttribute ? displayProperty = name > and
2018-02-21 02:29:52 +08:00
[Windows.Foundation.DeprecatedAttribute ](https://docs.microsoft.com/uwp/api/windows.foundation.metadata.deprecatedattribute ) to code in managed assemblies; it may
2017-04-21 02:19:05 +08:00
result in build warnings.
2017-04-06 04:52:19 +08:00
### Affected APIs
* Not detectable via API analysis
### Category
Core
2017-04-18 07:52:04 +08:00
<!-- breaking change id: 48 -->