Questions tagged [.net-4.5.2]

.Net 4.5.2 is the version of the popular Microsoft .Net framework prior to version 4.6. It is backward compatible with .Net 4.5 & .Net 4.5.1 & adds several new features. Use for questions specifically related to .NET Framework 4.5.2. For questions on .NET Framework generally, use the .net tag.

.Net 4.5.2 is the version of the popular Microsoft .Net framework. It is backward compatible with .Net 4.5 & .Net 4.5.1 and adds several new features.

What's New in .NET Framework 4.5.2
.NET Framework 4.5.2 System Requirements

Released by Microsoft Corporation
Version Number: 4.0.30319.34000
Release Date: 2014-05-05

139 questions
124
votes
2 answers

How to select .NET 4.5.2 as a target framework in Visual Studio

I have installed .NET Framework 4.5.2 on Windows 8.1. But in Visual Studio 2013 I do not see the .NET Framework 4.5.2 option (see screenshot). How do I target my project for .NET 4.5.2?
IT Hit WebDAV
  • 5,652
  • 12
  • 61
  • 98
24
votes
4 answers

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

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…
Fergus Bown
  • 1,666
  • 9
  • 16
23
votes
1 answer

Why does Json.NET require System.Xml.Linq v5.0.5 for serialization of a simple object?

I have the following object: public class ProjectInfo { public string ConnectionStringName { get; set; } public string DefaultEntityNamespace { get; set; } public string DefaultSharedNamespace { get; set; } public string…
jgauffin
  • 99,844
  • 45
  • 235
  • 372
20
votes
3 answers

Mock HostingEnvironment.QueueBackgroundWorkItem in xunit test

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…
PMC
  • 4,698
  • 3
  • 37
  • 57
19
votes
4 answers

'Forms' is not a member of 'Windows'

I tried to change the Target Framework on my app recently from .NET Framework 4.5 to 4.5.2, but if I do I get the following error when trying to build: "'Forms' is not a member of 'Windows'" (that is, System.Windows.Forms). Changing to 4.5.1 works…
andre_ss6
  • 1,195
  • 1
  • 13
  • 34
17
votes
7 answers

Issue Installing Entity Framework 7 RC1

I 'm trying to install EF7 rc1 to an existing project: PM> Install-Package EntityFramework.MicrosoftSqlServer –Pre but I get the following error: Install failed. Rolling back... Package 'Microsoft.Extensions.Logging 1.0.0-rc1-final' does not…
E-Bat
  • 4,792
  • 1
  • 33
  • 58
13
votes
2 answers

Unspecified error trying to install .NET 4.5.2 Developer Pack

I downloaded the .NET 4.5.2 Developer Pack and have since been struggling to install it on one particular 64-bit Windows 7 machine so that I can use it with Visual Studio 2013, which was successfully installed. (Worked just fine on all other…
Balah
  • 2,530
  • 2
  • 16
  • 24
13
votes
1 answer

Azure Websites, Can one deploy .NET 4.5.2 websites

From this SO post I see 4.5.1 is supported in WAWS and when you select 4.5, you are really running 4.5.1. How about the recently released 4.5.2 ? Is there any official documentation anywhere on which framework updates have been applied to WAWS?
eagle779
  • 694
  • 6
  • 17
12
votes
2 answers

How can I compile a .NET 4.5 app with a reference to .NET 4.5.2 assembly?

I discovered that an app targeting 4.5 can load and run an assembly targeting 4.5.2 - but I can't compile such a setup! Question: How can I compile a .NET 4.5 app with a reference to .NET 4.5.2 assembly? Experiment details: MyLib.csproj - Targets…
Jonathan
  • 6,939
  • 4
  • 44
  • 61
9
votes
2 answers

Why does the SelectedIndexChanged event fire in a ListBox when the selected item is modified?

We are given a Windows Form Application created from Microsoft Visual Studio's template (designer code on PasteBin 1 2 3 4) with a default ListBox exampleListBox and Button exampleButton. We populate the ListBox with numbers from 1 to 10. for (int i…
Zsw
  • 3,920
  • 4
  • 29
  • 43
8
votes
2 answers

"Use of unassigned local variable" in if statement with TryParse with the use of dynamic

I've just typed in the following code to a VS2015 .Net v4.5.2 console application: dynamic fromString = "blah", toString = "blah2"; DateTime fromDate, toDate; if (DateTime.TryParse(fromString.ToString(), out fromDate) &&…
Kate
  • 1,556
  • 1
  • 16
  • 33
7
votes
2 answers

Is there a way to install .net framework 4.5.2 or higher on Mac OS X?

I want to compile c# project with .net 4.5.2 framework in Xamarin Studio. When I open project and look for Target Framework, there is .NET Framework 4.5.2 (not installed). So it doesn't compile. Is there a way to install .net framework 4.5.2 or…
Max Polkovnik
  • 319
  • 1
  • 5
  • 18
7
votes
3 answers

How to unit test RelayCommand that Executes an async method?

As there is no RelayCommandAsync (at least not that I know of), how to test this scenario. For example: public RelayCommand LoadJobCommand { get { return this.loadJobCommand ?? ( this.loadJobCommand = new…
O.O
  • 11,077
  • 18
  • 94
  • 182
7
votes
3 answers

WPF NotifyIcon Crash On First Run - The root Visual of a VisualTarget cannot have a parent

Update: Issue appears to be introduced with .NET 4.5.2. Problem does not occur with either 4.5.1 or 4.5. I have a strange issue I am having difficulty debugging. We have a WPF application built on top of the NotifyIcon made by Philipp…
denver
  • 2,863
  • 2
  • 31
  • 45
6
votes
1 answer

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

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.…
1
2 3
9 10