Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2013 and .NET 4.6

I'm trying to set the 4.6 .NET framework for my project and in the settings, as it wasn't listed, I chose the last option - to install more frameworks. That directed me to a page where I selected VS2013, clicked on .NET 4.6 and downloaded the software but despite the installation being successful and restart of the computer, I still don't get to see the 4.6 .NET in the list of available options.

I've googled around for it and found mentioned that 4.6 is available on Win 8.1 (which is my system). However it doesn't say explicitly that it's available for VS 2013 (it doesn't say that it isn't, neither, though).

It's being said that .NET 4.6 is included in VS 2015 but I'm not clear if it's available for VS 2013. Is it? And how to get it to work?

Edit

After having installed the TP (a.k.a. Targeting Pack), I still get nothing new in the options, as the image depicts. Suggestions?

enter image description here

like image 399
Konrad Viltersten Avatar asked Aug 05 '15 14:08

Konrad Viltersten


People also ask

What version of .NET is Visual Studio 2013?

NET 4.5. For additional information, see Visual Studio 2013 Compatibility.

Can I use .NET core in Visual Studio 2013?

Yes, it's possible to build against the . NET Core 5 contracts in Visual Studio 2013 by creating a Portable Class Library that targets . NET Framework 4.5 and Windows 8.

Is .NET 4.6 still supported?

NET Framework 4.6, which shipped in Windows 10 Enterprise LTSC 2015. We will continue to support . NET Framework 4.6 on Windows 10 Enterprise LTSC 2015 through end of support of the OS version (October 2025).


2 Answers

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, and installed it first.

Then I downloaded and mounted the ISO for Visual Studio 2015 Professional ISO from https://www.visualstudio.com/downloads/download-visual-studio-vs, browsed to the netfx_46mtpack subdirectory, and installed netfx_46mtpack.msi.

The end result is a matching pair of versions for Framework 4.6 and the Targeting pack

And the Target framework shows up as a build target.

like image 137
jerhewet Avatar answered Sep 22 '22 06:09

jerhewet


You need to install the .NET Framework 4.6 Targeting Pack.

The .NET Framework 4.6 Targeting Pack is a package that enables developers to build applications targeting the .NET Framework 4.6 using either Visual Studio 2013, Visual Studio 2012 or third party IDEs. You need to download and install the .NET Framework 4.6 prior to installing the targeting pack.

like image 39
Brandon Avatar answered Sep 22 '22 06:09

Brandon