From 4c45fe93a1d288dc66df3d26059a167f6ae82785 Mon Sep 17 00:00:00 2001 From: Jonathan Pryor Date: Wed, 14 May 2014 13:02:10 -0400 Subject: [PATCH] [system.net.http] Set version to 4.0.0.0 on MOBILE MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit For a variety of reasons, we need to bump the assembly version of System.Net.Http.dll to "4.0.0.0" (from 2.0.5.0) on our MOBILE profiles, lest much pain and suffering occur, e.g.: http://motzcod.es/post/78863496592/portable-class-libraries-httpclient-so-happy > For some reason at compile time the facades don’t kick in > properly and it tries to use the NuGet version of > System.Net.Http which has some specific functionality for > older platforms. ... > All you need to do is create a new app.config file in your > Android and iOS project. The need to create a custom app.config is ugly and something to be avoided. Setting our System.Net.Http.dll version to v4.0.0.0 removes the need for the custom app.config. --- mcs/class/System.Net.Http/Assembly/AssemblyInfo.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mcs/class/System.Net.Http/Assembly/AssemblyInfo.cs b/mcs/class/System.Net.Http/Assembly/AssemblyInfo.cs index 8e2d0dfeff3..6aa0c9d0b8b 100644 --- a/mcs/class/System.Net.Http/Assembly/AssemblyInfo.cs +++ b/mcs/class/System.Net.Http/Assembly/AssemblyInfo.cs @@ -44,10 +44,18 @@ using System.Runtime.InteropServices; [assembly: AssemblyCompany (Consts.MonoCompany)] [assembly: AssemblyProduct (Consts.MonoProduct)] [assembly: AssemblyCopyright (Consts.MonoCopyright)] + +#if MOBILE +[assembly: AssemblyVersion ("4.0.0.0")] +[assembly: SatelliteContractVersion ("4.0.0.0")] +[assembly: AssemblyInformationalVersion ("4.0.50524.0")] +[assembly: AssemblyFileVersion ("4.0.50524.0")] +#else [assembly: AssemblyVersion (Consts.FxVersion)] [assembly: SatelliteContractVersion (Consts.FxVersion)] [assembly: AssemblyInformationalVersion (Consts.FxFileVersion)] [assembly: AssemblyFileVersion (Consts.FxFileVersion)] +#endif [assembly: NeutralResourcesLanguage ("en-US")] [assembly: CLSCompliant (true)] -- 2.25.1