2

I am working on a project that is currently using an early pre-release .net 4.0 version on HttpClient in System.Web.Http namespace. We know that this version causes conflicts with .net 4.5 version.

We are thinking of upgrading to Visual Studio 2012 and we know that this is going to install .net 4.5 (which we dont currently use). My question(s) is, how drastically different are the two version of the HttpClient class? Or, would the use of the latest .net 4.0 version of HttpClient be enough to get us to a stage where we could install .net 4.5 and not have any conflicts?

Cheers

NCBL

4

1 に答える 1

3

2 つのバージョンは API の観点からは同一であり、4.5 は機能の観点から 4.0 と下位互換性があります。4.5 バージョンはWebRequestHandler( ContinueTimeout& ServerCertificateValidationCallback) でいくつかの新機能をサポートしているため、それらは避けてください。

このライブラリを使用して 4.5 で実行している場合、競合が発生することはありません。4.5 バージョンは 4.0 バージョンと同じ名前で、フレームワークは inbox バージョンに統合されます。

于 2013-06-06T13:49:37.173 に答える