5

I have VS.NET 2010 Premium installed, but there seems to be an issue when trying to target existing .NET frameworks. When I open properties for a web application project, the only option I get is to install a framework. If I open properties for any other project type I get the full list.

So far I've done the following to no avail:

  • Repaired and re-installed Microsoft.NET Framework 4 Client Profile
  • Repaired and re-installed Microsoft.NET Framework 4 Extended
  • Repaired and re-installed Microsoft.NET Framework 4 Multi-Targeting Pack
  • Repaired and re-installed VS.NET 2010 Premium
  • Reapplied and re-installed VS.NET 2010 SP1.

I did find one question on that appear to be related related, but there were no answers unfortunately.

Visual Studio 2010 "No Target Framework"

Any ideas?

Community
  • 1
  • 1
James O'Sullivan
  • 498
  • 1
  • 4
  • 12

1 Answers1

3

I have had this issue as well across a number of different machines and have had to rediscover the answer each time!

The solution that has worked consistently for me is to change the Environment variables on the machine for the User Variables "TEMP" and "TMP". I repoint both of these variables to "c:\Temp" rather than the default location which includes your user name (with apostrophe) in the path.

enter image description here

After struggling through each Visual Studio setting related to account specific paths (Projects, Templates, etc.) this has been the only change I have needed to make to fix the problem.

Matt O'Brien

Matt O'Brien
  • 168
  • 7
  • It did indeed turn out to be an apostrophe causing the problem. A few days ago I got my username renamed and my user profile recreated. After doing that everything worked fine. – James O'Sullivan Nov 01 '12 at 15:10
  • 1
    Timing is everything. I got a new machine last week and couldn't afford a rename scenario so I was able to resolve the issue on my existing profile. Having said that, I would not recommend user accounts with an apostrophe in it! – Matt O'Brien Nov 01 '12 at 15:23
  • your solution Worked perfect – Mihir Apr 16 '13 at 11:11