views:

894

answers:

3

My C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.CSharp.targets file is missing from my computer. I closed my IDE, went on lunch, and then when I opened my IDE again, no C# projects would load.

I can see:

  • C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Data.Entity.targets
  • C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.VisualBasic.targets
  • C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.VisualC.STLCLR.dll

and several others, but no Microsoft.CSharp.targets.

What happened and how do I fix it?

This isn't helping me.

A: 

Reboot! Why? Not sure! It worked for me :)

Failing that "devenv.exe /ResetSettings" to run Studio as if it were the first time.

Please backup customized settings first.

Kindness,

Dan

Daniel Elliott
A: 

A reboot didn't work for me.

AndrewJacksonZA
Editted answer to give another option :) GOOD LUCK!
Daniel Elliott
+1  A: 

I was quite hesitant to try this solution as the other machine running VS2008 was at a different patch/hotfix level, but it worked.

Possible cause? An event log/system monitoring program that the company is running indicated that SQL Server 2000 was uninstalled from my machine two days ago, but I've never installed SQL Server 2000 on my machine to begin with!

AndrewJacksonZA