Microsoft .net Framework 4.5.2 For Mac

четверг 23 январяadmin

Downloads for building and running applications with.NET Framework 4.5.2. Get web installer, offline installer, and language pack downloads for.

-->

If you are migrating from the .NET Framework 4.5 to 4.5.2, review the following topics for application compatibility issues that may affect your app:

ADO.NET

ADO.NET now attempts to automatically reconnect broken SQL connections

DetailsBeginning in the .NET Framework 4.5.1, the .NET Framework will attempt to automatically reconnect broken SQL connections. Although this will typically make apps more reliable, there are edge cases in which an app needs to know that the connection was lost so that it can take some action upon reconnection.
SuggestionIf this feature is undesirable due to compatibility concerns, it can be disabled by setting the ConnectRetryCount property of a connection string (or SqlConnectionStringBuilder) to 0.
ScopeEdge
Version4.5.1
TypeRuntime
Affected APIs

ASP.NET

ASP.NET MVC now escapes spaces in strings passed in via route parameters

DetailsIn order to conform to RFC 2396, spaces in route paths are now escaped when populating action parameters from a route. So, whereas /controller/action/some data would previously match the route /controller/action/{data} and provide some data as the data parameter, it will now provide some%20data instead.
SuggestionCode should be updated to unescape string parameters from a route. If the original URI is needed, it can be accessed with the RequestUri.OriginalString API.
ScopeMinor
Version4.5.2
TypeRuntime
Affected APIs

No longer able to set EnableViewStateMac to false

DetailsASP.NET no longer allows developers to specify <pages enableViewStateMac='false'/> or <@Page EnableViewStateMac='false' %>. The view state message authentication code (MAC) is now enforced for all requests with embedded view state. Only apps that explicitly set the EnableViewStateMac property to false are affected.
SuggestionEnableViewStateMac must be assumed to be true, and any resulting MAC errors must be resolved (as explained in this guidance, which contains multiple resolutions depending on the specifics of what is causing MAC errors).
ScopeMajor
Version4.5.2
TypeRuntime

Profiling ASP.Net MVC4 apps can lead to Fatal Execution Engine Error

DetailsProfilers using NGEN /Profile assemblies may crash profiled ASP.NET MVC4 applications on startup with a 'Fatal Execution Engine Exception'
SuggestionThis issue is fixed in the .NET Framework 4.5.2. Alternatively, the profiler may avoid this issue by specifying COR_PRF_DISABLE_ALL_NGEN_IMAGES in its event mask.
ScopeEdge
Version4.5
TypeRuntime

Core

A ConcurrentDictionary serialized in .NET Framework 4.5 with NetDataContractSerializer cannot be deserialized by .NET Framework 4.5.1 or 4.5.2

DetailsDue to internal changes to the type, ConcurrentDictionary<TKey,TValue> objects that are serialized with the .NET Framework 4.5 using the NetDataContractSerializer cannot be deserialized in the .NET Framework 4.5.1 or in the .NET Framework 4.5.2.Note that moving in the other direction (serializing with the .NET Framework 4.5.x and deserializing with the .NET Framework 4.5) works. Similarly, all 4.x cross-version serialization works with the .NET Framework 4.6.Serializing and deserializing with a single version of the .NET Framework is not affected.
SuggestionIf it is necessary to serialize and deserialize a ConcurrentDictionary<TKey,TValue> between the .NET Framework 4.5 and .NET Framework 4.5.1/4.5.2, an alternate serializer like the DataContractSerializer or BinaryFormatter serializer should be used instead of the NetDataContractSerializer.Alternatively, because this issue is addressed in the .NET Framework 4.6, it may be solved by upgrading to that version of the .NET Framework.
ScopeMinor
Version4.5.1
TypeRuntime

ConcurrentQueue<T>.TryPeek can return an erroneous null via its out parameter

DetailsIn some multi-threaded scenarios, TryPeek(T) can return true, but populate the out parameter with a null value (instead of the correct, peeked value).
SuggestionThis issue is fixed in the .NET Framework 4.5.1. Upgrading to that Framework will solve the issue.
ScopeMajor
Version4.5
TypeRuntime
Affected APIs

COR_PRF_GC_ROOT_HANDLEs are not being enumerated by profilers

DetailsIn the .NET Framework v4.5.1, the profiling API RootReferences2() is incorrectly never returning COR_PRF_GC_ROOT_HANDLE (they are returned as COR_PRF_GC_ROOT_OTHER instead). This issue is fixed beginning in the .NET Framework 4.6.
SuggestionThis issue has been fixed in the .NET Framework 4.6 and may be addressed by upgrading to that version of the .NET Framework.
ScopeMinor
Version4.5.1
TypeRuntime

Deserialization of objects across appdomains can fail

DetailsIn some cases, when an app uses two or more app domains with different application bases, trying to deserialize objects in the logical call context across app domains throws an exception.
SuggestionSee Mitigation: Deserialization of Objects Across App Domains
ScopeEdge
Version4.5.1
TypeRuntime

EventListener truncates strings with embedded nulls

DetailsEventListener truncates strings with embedded nulls. Null characters are not supported by the EventSource class. The change only affects apps that use EventListener to read EventSource data in process and that use null characters as delimiters.
SuggestionEventSource data should be updated, if possible, to not use embedded null characters.
ScopeEdge
Version4.5.1
TypeRuntime
Affected APIs

EventSource.WriteEvent impls must pass WriteEvent the same parameters that it received (plus ID)

DetailsThe runtime now enforces the contract that specifies the following: A class derived from EventSource that defines an ETW event method must call the base class EventSource.WriteEvent method with the event ID followed by the same arguments that the ETW event method was passed.
SuggestionAn IndexOutOfRangeException exception is thrown if an EventListener reads EventSource data in process for an event source that violates this contract.
ScopeMinor
Version4.5.1
TypeRuntime

Marshal.SizeOf and Marshal.PtrToStructure overloads break dynamic code

DetailsBeginning in the .NET Framework 4.5.1, dynamically binding to the methods SizeOf<T>(), SizeOf<T>(T), PtrToStructure(IntPtr, Object), PtrToStructure(IntPtr, Type), PtrToStructure<T>(IntPtr), or PtrToStructure<T>(IntPtr, T), (via Windows PowerShell, IronPython, or the C# dynamic keyword, for example) can result in MethodInvocationExceptions because new overloads of these methods have been added that may be ambiguous to the scripting engines.
SuggestionUpdate scripts to clearly indicate which overload should be used. This can typically done by explicitly casting the methods' type parameters as Type. See this link for more detail and examples of how to workaround the issue.
ScopeMinor
Version4.5.1
TypeRuntime

Some .NET APIs cause first chance (handled) EntryPointNotFoundExceptions

DetailsIn the .NET Framework 4.5, a small number of .NET methods began throwing first chance EntryPointNotFoundExceptions. 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.
SuggestionThis bug can be avoided by upgrading to .NET Framework 4.5.1. Alternatively, test automation can be updated to not break on first-chance EntryPointNotFoundExceptions.
ScopeEdge
Version4.5
TypeRuntime
Affected APIs

WinRT stream adapters no long call FlushAsync automatically on close

DetailsIn Windows Store apps, Windows Runtime stream adapters no longer call the FlushAsync method from the Dispose method.
SuggestionThis change should be transparent. Developers can restore the previous behavior by writing code like this:
ScopeTransparent
Version4.5.1
TypeRuntime

Data

ADO.NET now attempts to automatically reconnect broken SQL connections

DetailsBeginning in the .NET Framework 4.5.1, the .NET Framework will attempt to automatically reconnect broken SQL connections. Although this will typically make apps more reliable, there are edge cases in which an app needs to know that the connection was lost so that it can take some action upon reconnection.
SuggestionIf this feature is undesirable due to compatibility concerns, it can be disabled by setting the ConnectRetryCount property of a connection string (or SqlConnectionStringBuilder) to 0.
ScopeEdge
Version4.5.1
TypeRuntime
Affected APIs

SqlConnection.Open fails on Windows 7 with non-IFS Winsock BSP or LSP present

DetailsOpen() and OpenAsync(CancellationToken) fail in the .NET Framework 4.5 if running on a Windows 7 machine with a non-IFS Winsock BSP or LSP are present on the computer.To determine whether a non-IFS BSP or LSP is installed, use the netsh WinSock Show Catalog command, and examine every Winsock Catalog Provider Entry item that is returned. If the Service Flags value has the 0x20000 bit set, the provider uses IFS handles and will work correctly. If the 0x20000 bit is clear (not set), it is a non-IFS BSP or LSP.
SuggestionThis bug has been fixed in the .NET Framework 4.5.2, so it can be avoided by upgrading the .NET Framework. Alternatively, it can be avoided by removing any installed non-IFS Winsock LSPs.
ScopeMinor
Version4.5
TypeRuntime
Affected APIs

Entity Framework

EF no longer throws for QueryViews with specific characteristics

DetailsEntity Framework no longer throws a StackOverflowException exception when an app executes a query that involves a QueryView with a 0.1 navigation property that attempts to include the related entities as part of the query. For example, by calling .Include(e => e.RelatedNavProp).
SuggestionThis change only affects code that uses QueryViews with 1-0.1 relationships when running queries that call .Include. It improves reliability and should be transparent to almost all apps. However, if it causes unexpected behavior, you can disable it by adding the following entry to the <appSettings> section of the app's configuration file:
ScopeEdge
Version4.5.2
TypeRuntime

Opt-in break to revert from different 4.5 SQL generation to simpler 4.0 SQL generation

DetailsQueries that produce JOIN statements and contain a call to a limiting operation without first using OrderBy now produce simpler SQL. After upgrading to .NET Framework 4.5, these queries produced more complicated SQL than previous versions.
SuggestionThis feature is disabled by default. If Entity Framework generates extra JOIN statements that cause performance degradation, you can enable this feature by adding the following entry to the <appSettings> section of the application configuration (app.config) file:
ScopeTransparent
Version4.5.2
TypeRuntime

Serialization

NetDataContractSerializer fails to deserialize a ConcurrentDictionary serialized with a different .NET version

DetailsBy design, the NetDataContractSerializer can be used only if both the serializing and deserializing ends share the same CLR types. Therefore, it is not guaranteed that an object serialized with one version of the .NET Framework can be deserialized by a different version.ConcurrentDictionary<TKey,TValue> is a type that is known to not to deserialize correctly if serialized with the .NET Framework 4.5 or earlier and deserialized with the .NET Framework 4.5.1 or later.
SuggestionThere are a number of possible work-arounds for this issue:
  • Upgrade the serializing computer to use the .NET Framework 4.5.1, as well.
  • Use DataContractSerializer instead of NetDataContractSerializer as this does not expect the exact same CLR types at both serializing and deserializing ends.
  • Use Dictionary<TKey,TValue> instead of ConcurrentDictionary<TKey,TValue> since it does not exhibit this particular 4.5->4.5.1 break.
ScopeMinor
Version4.5.1
TypeRuntime
Affected APIs

Windows Communication Foundation (WCF)

MinFreeMemoryPercentageToActiveService is now respected

DetailsThis setting establishes the minimum memory that must be available on the server before a WCF service can be activated. It is designed to prevent OutOfMemoryException exceptions. In the .NET Framework 4.5, this setting had no effect. In the .NET Framework 4.5.1, the setting is observed.
SuggestionAn exception occurs if the free memory available on the web server is less than the percentage defined by the configuration setting. Some WCF services that successfully started and ran in a constrained memory environment may now fail.
ScopeMinor
Version4.5.1
TypeRuntime

Windows Presentation Foundation (WPF)

Calling DataGrid.CommitEdit from a CellEditEnding handler drops focus

DetailsCalling CommitEdit() from one of the DataGrid's CellEditEnding event handlers causes the DataGrid to lose focus.
SuggestionThis bug has been fixed in the .NET Framework 4.5.2, so it can be avoided by upgrading the .NET Framework. Alternatively, it can be avoided by explicitly re-selecting the DataGrid after calling CommitEdit().
ScopeEdge
Version4.5
TypeRuntime
Affected APIs

Intermittently unable to scroll to bottom item in ItemsControls (like ListBox and DataGrid) when using custom DataTemplates

DetailsIn some instances, a bug in the .NET Framework 4.5 is causing ItemsControls (like ListBox, ComboBox, DataGrid, etc.) to not scroll to their bottom item when using custom DataTemplates. If the scrolling is attempted a second time (after scrolling back up), it will work then.
SuggestionThis issue has been fixed in the .NET Framework 4.5.2 and may be addressed by upgrading to that version (or a later version) of the .NET Framework. Alternatively, users can still drag scroll bars to the final items in these collections, but may need to try twice to do so successfully.
ScopeMinor
Version4.5
TypeRuntime

Scrolling a WPF TreeView or grouped ListBox in a VirtualizingStackPanel can cause a hang

DetailsIn the .NET Framework v4.5, scrolling a WPF TreeView in a virtualized stack panel can cause hangs if there are margins in the viewport (between the items in the TreeView, for example, or on an ItemsPresenter element). Additionally, in some cases, different sized items in the view can cause instability even if there are no margins.
SuggestionThis bug can be avoided by upgrading to .NET Framework 4.5.1. Alternatively, margins can be removed from view collections (like TreeViews) within virtualized stack panels if all contained items are the same size.
ScopeMajor
Version4.5
TypeRuntime
Affected APIs

WPF spawns a wisptis.exe process which can freeze the mouse

DetailsAn issue was introduced in 4.5.2 that causes wisptis.exe to be spawned that can freeze mouse input.
SuggestionA fix for this issue is available in a servicing release of the .NET Framework 4.5.2 (hotfix rollup 3026376), or by upgrading to the .NET Framework 4.6
ScopeMajor
Version4.5.2
TypeRuntime
-->

Hi WSUS Admins,

The Microsoft .NET Framework 4.5.2 will be made available via Windows Server Update Services on 13 January 2015 . Change branches visual studio for mac.

You can learn more about .NET Framework 4.5.2 here.

Useful information about this release:

Microsoft .net Framework 4.5.2 For Mac
  1. The .NET Framework 4.5.2 is being released for the following supported platforms: Windows Vista SP2, Windows 7 SP1, Windows 8, Windows 8.1, Windows Server 2008 SP2, Windows Server 2008 R2 SP1, Windows Server 2012, Windows Server 2012 R2, Windows RT* and Windows 8.1 RT*.
  2. The .NET Framework 4.5.2 Language Packs will also be available via WSUS for the same platforms. This is to both support the upgrade of previous language packs for .NET Framework 4 or 4.5 or 4.5.1 and for computers, that either have the localized version of the base operating system or have one or more Multilingual User Interface (MUI) packs installed.
  3. Enterprises that have a specific need to block offering .NET Framework 4.5.2 on computers which can directly connect to Microsoft Update servers can do so by deploying the blocker registry key as described in following Microsoft Knowledge Base:
    KB2971109: How to temporarily block the installation of the .NET Framework 4.5.2 and its corresponding language packs

* For Windows RT and Windows 8.1 RT the update will only be offered on Automatic Updates (not WSUS) channel.