Progress bar with HttpClient

From .Net 4.5 onwards: Use IProgress<T> Since .Net 4.5 you can handle asynchronous progress reporting with the IProgress<T> interface. You can write an extension method for downloading files using the HttpClient that can be called like this where progress is the implementation of IProgress<float> for your progress bar or other UI stuff: // Seting up … Read more

Visual Studio 2013 and .NET 4.6

By putting together various pieces from the previous answers I was finally able to get a matching .Net Framework 4.6 and the Targeting Pack for it, and once both were installed the v4.6 Framework shows up as an available target framework Visual Studio 2012. I downloaded the standalone installer for Framework 4.6 (NDP46-KB3045557-x86-x64-AllOS-ENU.exe) from http://www.microsoft.com/en-us/download/details.aspx?id=48130, … Read more

Visual Studio 2012 Install Fails: Program Compatibility Mode is on

Previous posts are correct in that compatibility mode appears to be based entirely on file names. There is a simple method for determining precisely which name Windows expects: Right-click the file, select Properties and navigate to the Details tab. There should be an entry labelled “Original filename”. Simply rename the file accordingly and it should … Read more

tech