5

I need to be able to target .Net framework version 4.6.1 for one of my projects. VS 2015 already ships with 4.6.1 as per Target .Net Platforms page.

But it isn't listed in the set of available platforms here:

enter image description here

I downloaded the 4.6.1 framework installer and tried installing. In the process it shows to repair or remove (not install) the framework version, which gives a sign that it is already installed. I moved ahead with repair. Restarted my computer. But even then the same problem exists.

I'm using VS 2015 on a Windows 7 64-bit system. Where am I going wrong? What is wrong here?

RBT
  • 24,161
  • 21
  • 159
  • 240
Bharat Gupta
  • 2,628
  • 1
  • 19
  • 27
  • Please check if it (.Net 4.6.1 in programs) is already installed. If so then restart your PC and then start VS. Hopefully you will get it. – Abhishek Kumar Apr 22 '16 at 09:03
  • @LexLi as I said I already chose to download other frameworks. I downloaded and installed (rather repaired) the framework. The problem still persists. – Bharat Gupta Apr 22 '16 at 09:34
  • @LexLi Ignorant replies are subject to image risks. Please read the question properly before providing your valuable opinion. – Bharat Gupta Apr 22 '16 at 09:35
  • @AbhishekKumar I have installed 4.6.1 by myself. I restarted my PC and started visual studio after that. It didn't work. – Bharat Gupta Apr 22 '16 at 09:37
  • I checked with ASoft .Net version detector. It shows 4.6.1 is installed. – Bharat Gupta Apr 22 '16 at 09:45
  • @BharatGupta It is a problem, which I have never faced. Could it an issue of framework detection by VS2015? You can better ask MS about it. We are all guessing here. (Atleast I am) – Abhishek Kumar Apr 22 '16 at 09:57
  • @LexLi, somebody got angry with the criticism and downvoted it :D – Bharat Gupta Apr 22 '16 at 11:34
  • Possible duplicate of [Targeting pack for .NET 4.5.2 not installed](http://stackoverflow.com/questions/27931925/targeting-pack-for-net-4-5-2-not-installed) – Lex Li Apr 22 '16 at 13:27
  • 2
    I understood the problem. I needed to install 4.6.1 **Dev Pack**. Its resolved. Thanks @LexLi – Bharat Gupta Apr 22 '16 at 15:33

2 Answers2

6

I had the same problem you mentioned - then I installed the .net 4.6.1 developer pack which can be found in this link - https://www.microsoft.com/en-us/download/details.aspx?id=49978 - And the .net 4.6.1 framework became available to me as a valid target in Visual Studio - hope this helps!

rshimoda
  • 1,137
  • 1
  • 13
  • 24
0

I thought I had this issue I was trying to make a Class library and it didn't give me the choice for a 4.6.1 framework. Turns out I was making a c# Class library for standard or core framework and it only offered limited versions of frameworks I needed a c# Class Library(.Net Framework).

  • This does not provide an answer to the question. Once you have sufficient [reputation](https://stackoverflow.com/help/whats-reputation) you will be able to [comment on any post](https://stackoverflow.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). - [From Review](/review/late-answers/30812935) – AFract Jan 18 '22 at 14:48