2017-04-18 07:52:04 +08:00
|
|
|
## Some .NET APIs cause first chance (handled) EntryPointNotFoundExceptions
|
2017-04-06 04:52:19 +08:00
|
|
|
|
|
|
|
### Scope
|
|
|
|
Edge
|
|
|
|
|
|
|
|
### Version Introduced
|
|
|
|
4.5
|
|
|
|
|
|
|
|
### Version Reverted
|
|
|
|
4.5.1
|
|
|
|
|
|
|
|
### Source Analyzer Status
|
|
|
|
Available
|
|
|
|
|
|
|
|
### Change Description
|
2017-04-21 02:19:05 +08:00
|
|
|
|
|
|
|
In the .NET Framework 4.5, a small number of .NET methods began throwing first
|
|
|
|
chance <xref:System.EntryPointNotFoundException?displayProperty=name>s. These
|
|
|
|
exceptions were handled within the .Net Framework, but could break test
|
|
|
|
automation that did not expect the first chance exceptions. These same APIs
|
|
|
|
break some ApiVerifier scenarios when HighVersionLie is enabled.
|
2017-04-06 04:52:19 +08:00
|
|
|
|
|
|
|
- [ ] Quirked
|
|
|
|
- [ ] Build-time break
|
|
|
|
|
|
|
|
### Recommended Action
|
2017-04-21 02:19:05 +08:00
|
|
|
|
|
|
|
This bug can be avoided by upgrading to .NET Framework 4.5.1. Alternatively,
|
|
|
|
test automation can be updated to not break on first-chance
|
|
|
|
<xref:System.EntryPointNotFoundException?displayProperty=name>s.
|
2017-04-06 04:52:19 +08:00
|
|
|
|
|
|
|
### Affected APIs
|
|
|
|
* `M:System.Diagnostics.Debug.Assert(System.Boolean)`
|
|
|
|
* `M:System.Diagnostics.Debug.Assert(System.Boolean,System.String)`
|
|
|
|
* `M:System.Diagnostics.Debug.Assert(System.Boolean,System.String,System.String)`
|
|
|
|
* `M:System.Diagnostics.Debug.Assert(System.Boolean,System.String,System.String,System.Object[])`
|
|
|
|
* `M:System.Xml.Serialization.XmlSerializer.#ctor(System.Type)`
|
|
|
|
* Investigate applicable APIs
|
|
|
|
|
|
|
|
### Category
|
|
|
|
Core
|
|
|
|
|
|
|
|
[More information](https://connect.microsoft.com/VisualStudio/feedback/details/732334/unable-to-find-an-entry-point-named-getcurrentpackageid-in-dll-kernel32-dll)
|
2017-04-18 07:52:04 +08:00
|
|
|
|
|
|
|
<!-- breaking change id: 85 -->
|