4

I am trying on the project with mvcMusicStore, and installed framework v4.0 client.

and when I am trying to target framework to v4.0 from the project it cant be found, where was the problem ?

enter image description here

Brian Rasmussen
  • 114,645
  • 34
  • 221
  • 317
kitw
  • 323
  • 7
  • 15

2 Answers2

5

I think you will need to download the complete .Net 4.0 Framework in order to get the environment needed to be used in Visual Studio. The client profile from what I can find does not have what is necessary for development.

If the above doesn't work I would suggest trying a repair of Visual Studio as suggested by this SO question.

The Full Framework:

The Microsoft .NET Framework 4 web installer package downloads and installs the .NET Framework components required to run on the target machine architecture and OS. An Internet connection is required during the installation. .NET Framework 4 is required to run and develop applications to target the .NET Framework 4.

Tne Client Profile:

The Microsoft .NET Framework 4 Client Profile redistributable package installs the .NET Framework runtime and associated files that are required to run most client applications.

Community
  • 1
  • 1
Mark Hall
  • 53,938
  • 9
  • 94
  • 111
  • Thanks for the reply, the point is I did installed that complete version. and it return the above result. cant find higher framework. – kitw Dec 31 '12 at 02:52
  • 1
    @kitw You said in your question that you installed the Client Framework. I gave you the link for the Full Installation see if that works for you. Also is this Visual Studio 2010 if so the framework should already be pre installed. – Mark Hall Dec 31 '12 at 02:54
  • Sorry My mistyping in comment, what I mean is I did downloaded the link above and installed. and the result return the same, I cant found the framework in the pull-down menu..... and I downloaded v4.5 and the same thing happen, that only v3.5 and below can be choose, not others – kitw Dec 31 '12 at 02:57
  • @kitw take a look at this [SO Question](http://stackoverflow.com/questions/6389368/visual-studio-2010-not-recognizing-net-framework-4-0) see if repairing visual studio helps like they suggest. – Mark Hall Dec 31 '12 at 03:02
  • That still dont work, is there anyway to directly change the location for microsoft studio express 2010 target framework – kitw Dec 31 '12 at 04:22
  • 1
    @kitw If you try making a new project, do you have the .net 4.0 framework's as an option? – Mark Hall Dec 31 '12 at 04:24
  • When new project create, its default 4.0. and the above "pull-down" menu shows exactly the situation, "null" on the first item – kitw Dec 31 '12 at 05:03
  • I worked after reinstall everything .. included studio professional -.- – kitw Dec 31 '12 at 07:05
0

I was having same problem. and I resolved it by checking .Net Framework 4 Targeting pack in Invidual Components.

Please see screenshot:

enter image description here

Gray Programmerz
  • 479
  • 1
  • 5
  • 22