Here is how I fixed my missing .Net target framework 4.0 issue in VS2010.
Visual Studio 2010 stopped detecting the .Net framework 4.0. Specifically, this framework version was missing from the “Target framework” drop-down on a project’s property page. Versions 2.0, 3.0 and 3.5 were present in the list, but not 4.0. Reinstalling the framework and rebooting had no effect.
The problem was that the file,”
FrameworkList.xml” was missing from folder “
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\RedistList“. Copying this file from another machine solved the problem.
I am now able to target .Net 4.0 again:
- I found this solution at the end of this discussion.
- There is also a stackoverflow question dedicated to this issue.
I’ve just published my first Visual Studio Extension. It is a very simple one-command extension that allows you to view the contents of the folder that contains the current project in the Visual Studio Browser. At the moment, only Visual Studio 2010 is supported.
Instructions for Use
To view open the browser on the project’s folder, just click on the button in the Solution Explorer’s toolbar. The button is only visible when you have a solution loaded in Visual Studio.
The contents of the folder that contains the current project will be displayed in Visual Studio. That’s it!
Some time ago I wrote about my chosen colour scheme for Visual Studio. I’ve updated it several times since, so I’ve uploaded the latest version to StudioStyles. It looks like this:
Unfortunately, StudioStyles doesn’t support all the styles for VB.Net, so you’ll have to tweak it a bit if you want VB.Net goodness.