.net-4.5.2

Changes to Math.Exp or double implementation in .net 4.5.2

北城余情 提交于 2021-02-16 09:40:10
问题 If I run the statement Math.Exp(113.62826122038274).ToString("R") on a machine with .net 4.5.1 installed, then I get the answer 2.2290860617259248E+49 However, if I run the same command on a machine with .net framework 4.5.2 installed, then I get the answer 2.2290860617259246E+49 (i.e. the final digit changes) I realise that this is broadly insignificant in pure numeric terms, but does anyone know of any changes that have been made in .net 4.5.2 that would explain the change? (I don't prefer

Changes to Math.Exp or double implementation in .net 4.5.2

五迷三道 提交于 2021-02-16 09:38:45
问题 If I run the statement Math.Exp(113.62826122038274).ToString("R") on a machine with .net 4.5.1 installed, then I get the answer 2.2290860617259248E+49 However, if I run the same command on a machine with .net framework 4.5.2 installed, then I get the answer 2.2290860617259246E+49 (i.e. the final digit changes) I realise that this is broadly insignificant in pure numeric terms, but does anyone know of any changes that have been made in .net 4.5.2 that would explain the change? (I don't prefer

How can users enable Background Server GC in a desktop app without changing app.config?

佐手、 提交于 2020-01-17 13:44:14
问题 I look after a WPF desktop app which many users run on varying hardware. Multiple threads constantly churn through a large volume of data. Turning on .NET Framework 4.5 Background server garbage collection has shown significant performance improvements, however this comes at the cost of more memory being used and different CPU usage patterns. This is a potential problem for users with less-powerful machines, so I want to give the users who'd benefit most an opt-in to having server GC enabled

How can users enable Background Server GC in a desktop app without changing app.config?

我的未来我决定 提交于 2020-01-17 13:41:21
问题 I look after a WPF desktop app which many users run on varying hardware. Multiple threads constantly churn through a large volume of data. Turning on .NET Framework 4.5 Background server garbage collection has shown significant performance improvements, however this comes at the cost of more memory being used and different CPU usage patterns. This is a potential problem for users with less-powerful machines, so I want to give the users who'd benefit most an opt-in to having server GC enabled

Azure websites with .NET 4.5.2

落花浮王杯 提交于 2020-01-02 16:19:28
问题 According to this semi-official answer here, Azure websites now supports .NET 4.5.2: https://stackoverflow.com/a/23554969/68231 However, when I visit the Kudu debug console, it doesn't show that .NET 4.5.2 is installed: And indeed, when I try to push out a website targeted to .NET 4.5.2, Kudu refuses to build and deploy the website in question, with errors like this: Areas\Integration\Controllers\TwitterController.cs(18,31): error CS0012: The type 'System.Object' is defined in an assembly

Azure websites with .NET 4.5.2

我的梦境 提交于 2020-01-02 16:19:10
问题 According to this semi-official answer here, Azure websites now supports .NET 4.5.2: https://stackoverflow.com/a/23554969/68231 However, when I visit the Kudu debug console, it doesn't show that .NET 4.5.2 is installed: And indeed, when I try to push out a website targeted to .NET 4.5.2, Kudu refuses to build and deploy the website in question, with errors like this: Areas\Integration\Controllers\TwitterController.cs(18,31): error CS0012: The type 'System.Object' is defined in an assembly

Mock HostingEnvironment.QueueBackgroundWorkItem in xunit test

眉间皱痕 提交于 2020-01-02 00:42:46
问题 I have a method using HostingEnvironment.QueueBackgroundWorkItem which I wish to unit test some behaviour before this call, however, the test is failing with System.InvalidOperationException : Operation is not valid due to the current state of the object. I suspect this I need to mock the HostingEnvironment but unaware of how to. 回答1: To resolve this issue I defined an interface public interface ITaskScheduler { void QueueBackgroundWorkItem(Action<CancellationToken> workItem); } In production

When exactly do Page.RegisterAsyncTask's get called?

最后都变了- 提交于 2019-12-24 12:18:43
问题 I am running into confusing behavior related to async code registered on an ASP.NET page with RegisterAsyncTask, ViewState, and checkboxes, and I need to know exactly when these async-tasks run relative to when ViewState is saved. I have a few checkboxes inside an ASP:PlaceHolder control. I am reading a record and populating the checkboxes, then I make the PlaceHolder visible. If all this is synchronous - maybe within Page_Load - all is well. If this is registered as an async task the

Where is the VC++ 2012 Runtime Bootstrapper package in Visual Studio 2013?

瘦欲@ 提交于 2019-12-19 08:14:44
问题 I have a .NET 4.5.2 application that's deployed via ClickOnce. It uses the Magick.NET library, which requires the Visual C++ Redistributable for Visual Studio 2012. I've tried it with the 2013 package, but it still needs the 2012 version to work. Unfortunately, the only version listed under the possible Prerequisites in Visual Studio 2013 is the 2013 version. Other version are nowhere to be found: How do I include the Visual C++ 2012 Runtime Libraries with my ClickOnce app in Visual Studio