---
title: Изменение целевой платформы для миграции с .NET Framework 4.5.1 на 4.6.2
ms.date: 04/27/2018
ms.assetid: 18e05fb0-5189-48a1-a19e-e20e4f446278
author: chlowell
ms.author: ronpet
ms.openlocfilehash: c26ba0931f4b7357266706dbd1b76b0a4e54b538
ms.sourcegitcommit: 9e18e4a18284ae9e54c515e30d019c0bbff9cd37
ms.translationtype: HT
ms.contentlocale: ru-RU
ms.lasthandoff: 06/28/2018
ms.locfileid: "37071215"
---
# <a name="retargeting-changes-for-migration-from-net-framework-451-to-462"></a>Изменение целевой платформы для миграции с .NET Framework 4.5.1 на 4.6.2

[!INCLUDE[versionselector](../../../../includes/migration-guide/retargeting/versionselector.md)]

[!INCLUDE[introduction](../../../../includes/migration-guide/retargeting/introduction.md)]

Если выполняется миграция с .NET Framework версии 4.5.1 на 4.6.2, просмотрите следующие разделы о проблемах совместимости приложений, которые могут повлиять на работу приложения:

## <a name="aspnet"></a>ASP.NET

[!INCLUDE[HtmlTextWriter does not render `<br/>` element correctly](~/includes/migration-guide/retargeting/asp/htmltextwriter-does-not-render-br-element-correctly.md)]

[!INCLUDE[HttpRuntime.AppDomainAppPath Throws a NullReferenceException](~/includes/migration-guide/retargeting/asp/httpruntimeappdomainapppath-throws-nullreferenceexception.md)]

## <a name="clickonce"></a>ClickOnce

[!INCLUDE[Apps published with ClickOnce that use a SHA-256 code-signing certificate may fail on Windows 2003](~/includes/migration-guide/retargeting/clickonce/apps-published-with-clickonce-that-use-sha-256-code-signing-certificate-may.md)]

[!INCLUDE[ClickOnce supports SHA-256 on 4.0-targeted apps](~/includes/migration-guide/retargeting/clickonce/clickonce-supports-sha-256-on-40-targeted-apps.md)]

## <a name="core"></a>Ядро

[!INCLUDE[AesCryptoServiceProvider decryptor provides a reusable transform](~/includes/migration-guide/retargeting/core/aescryptoserviceprovider-decryptor-provides-reusable-transform.md)]

[!INCLUDE[Calls to ClaimsIdentity constructors](~/includes/migration-guide/retargeting/core/calls-claimsidentity-constructors.md)]

[!INCLUDE[Change in path separator character in FullName property of ZipArchiveEntry objects](~/includes/migration-guide/retargeting/core/change-path-separator-character-fullname-property-ziparchiveentry-objects.md)]

[!INCLUDE[Changes in path normalization](~/includes/migration-guide/retargeting/core/changes-path-normalization.md)]

[!INCLUDE[Long path support](~/includes/migration-guide/retargeting/core/long-path-support.md)]

[!INCLUDE[Path colon checks are stricter](~/includes/migration-guide/retargeting/core/path-colon-checks-are-stricter.md)]

## <a name="entity-framework"></a>Entity Framework

[!INCLUDE[Building an Entity Framework edmx with Visual Studio 2013 can fail with error MSB4062 if using the EntityDeploySplit or EntityClean tasks](~/includes/migration-guide/retargeting/ef/building-an-entity-framework-edmx-with-visual-studio-2013-can-fail-error.md)]

## <a name="jit"></a>JIT

[!INCLUDE[IL ret not allowed in a try region](~/includes/migration-guide/retargeting/jit/il-ret-not-allowed-try-region.md)]

[!INCLUDE[New 64-bit JIT compiler in the .NET Framework 4.6](~/includes/migration-guide/retargeting/jit/new-64-bit-jit-compiler-net-framework-46.md)]

## <a name="networking"></a>Сетевое взаимодействие

[!INCLUDE[Certificate EKU OID validation](~/includes/migration-guide/retargeting/networking/certificate-eku-oid-validation.md)]

[!INCLUDE[Only Tls 1.0, 1.1 and 1.2 protocols supported in System.Net.ServicePointManager and System.Net.Security.SslStream](~/includes/migration-guide/retargeting/networking/only-tls-10-11-12-protocols-supported-systemnetservicepointmanager.md)]

[!INCLUDE[TLS 1.x by default passes the SCH_SEND_AUX_RECORD flag to the underlying SCHANNEL API](~/includes/migration-guide/retargeting/networking/tls-1x-by-default-passes-schsendauxrecord-flag-underlying-schannel-api.md)]

## <a name="security"></a>Безопасность

[!INCLUDE[RSACng now correctly loads RSA keys of non-standard key size](~/includes/migration-guide/retargeting/security/rsacng-now-correctly-loads-rsa-keys-non-standard-key-size.md)]

[!INCLUDE[SignedXml.GetPublicKey returns RSACng on net462 (or lightup) without retargeting change](~/includes/migration-guide/retargeting/security/signedxmlgetpublickey-returns-rsacng-on-net462-or-lightup-without.md)]

## <a name="visual-basic-net"></a>Visual Basic .NET

[!INCLUDE[VB.NET no longer supports partial namespace qualification for System.Windows APIs](~/includes/migration-guide/retargeting/vb/vbnet-no-longer-supports-partial-namespace-qualification-for-systemwindows.md)]

## <a name="windows-communication-foundation-wcf"></a>Windows Communication Foundation (WCF)

[!INCLUDE[Calling CreateDefaultAuthorizationContext with a null argument has changed](~/includes/migration-guide/retargeting/wcf/calling-createdefaultauthorizationcontext-with-null-argument-has-changed.md)]

[!INCLUDE[Deadlock may result when using Reentrant services](~/includes/migration-guide/retargeting/wcf/deadlock-may-result-when-using-reentrant-services.md)]

[!INCLUDE[OperationContext.Current may return null when called in a using clause](~/includes/migration-guide/retargeting/wcf/operationcontextcurrent-may-return-null-when-called-using-clause.md)]

[!INCLUDE[WCF binding with the TransportWithMessageCredential security mode](~/includes/migration-guide/retargeting/wcf/wcf-binding-with-transportwithmessagecredential-security-mode.md)]

[!INCLUDE[WCF transport security supports certificates stored using CNG](~/includes/migration-guide/retargeting/wcf/wcf-transport-security-supports-certificates-stored-using-cng.md)]

[!INCLUDE[X509CertificateClaimSet.FindClaims Considers All claimTypes](~/includes/migration-guide/retargeting/wcf/x509certificateclaimsetfindclaims-considers-all-claimtypes.md)]

## <a name="windows-forms"></a>Windows Forms

[!INCLUDE[Application.FilterMessage no longer throws for re-entrant implementations of IMessageFilter.PreFilterMessage](~/includes/migration-guide/retargeting/winforms/applicationfiltermessage-no-longer-throws-for-re-entrant-implementations.md)]

[!INCLUDE[DataObject.GetData now retrieves data as UTF-8](~/includes/migration-guide/retargeting/winforms/dataobjectgetdata-now-retrieves-data-utf-8.md)]

[!INCLUDE[Icon.ToBitmap successfully converts icons with PNG frames into Bitmap objects](~/includes/migration-guide/retargeting/winforms/icontobitmap-successfully-converts-icons-with-png-frames-into-bitmap-objects.md)]

[!INCLUDE[Incorrect implementation of MemberDescriptor.Equals](~/includes/migration-guide/retargeting/winforms/incorrect-implementation-memberdescriptorequals.md)]

## <a name="windows-presentation-foundation-wpf"></a>Windows Presentation Foundation (WPF)

[!INCLUDE[Calls to System.Windows.Input.PenContext.Disable on touch-enabled systems may throw an ArgumentException](~/includes/migration-guide/retargeting/wpf/calls-systemwindowsinputpencontextdisable-on-touch-enabled-systems-may-throw.md)]

[!INCLUDE[WPF layout rounding of margins has changed](~/includes/migration-guide/retargeting/wpf/wpf-layout-rounding-margins-has-changed.md)]

## <a name="windows-workflow-foundation-wf"></a>Windows Workflow Foundation (WF)

[!INCLUDE[WorkflowDesigner.Load doesn't remove symbol property](~/includes/migration-guide/retargeting/wf/workflowdesignerload-doesnt-remove-symbol-property.md)]

## <a name="xml-xslt"></a>XML, XSLT

[!INCLUDE[XmlWriter throws on invalid surrogate pairs](~/includes/migration-guide/retargeting/xml/xmlwriter-throws-on-invalid-surrogate-pairs.md)]

[!INCLUDE[XSD Schema validation now correctly detects violations of unique constraints if compound keys are used and one key is empty](~/includes/migration-guide/retargeting/xml/xsd-schema-validation-now-correctly-detects-violations-unique-constraints-if.md)]

