{"id":2433,"date":"2010-02-26T13:16:00","date_gmt":"2010-02-26T13:16:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudio\/2010\/02\/26\/my-visual-studio-2008-is-broken-after-uninstalling-net-framework-4-0\/"},"modified":"2019-02-14T15:39:48","modified_gmt":"2019-02-14T23:39:48","slug":"my-visual-studio-2008-is-broken-after-uninstalling-net-framework-4-0","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/my-visual-studio-2008-is-broken-after-uninstalling-net-framework-4-0\/","title":{"rendered":"My Visual Studio 2008 is broken after uninstalling .NET Framework 4.0"},"content":{"rendered":"<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\"><\/font>&nbsp;<\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">If you find out that after trying out one of the beta versions of the new Visual Studio 2010 and uninstalling it together with the .NET Framework 4 or uninstalling only .NET Framework 4, every time you try to load a project on Visual Studio 2008 you face the following error:<\/font><\/p>\n<p class=\"MsoNormal\" align=\"center\"><span><\/span><\/p>\n<p class=\"MsoNormal\" align=\"center\"><span class=\"MsoIntenseEmphasis\"><font size=\"3\"><font color=\"#4f81bd\"><strong><em><font face=\"Calibri\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/02\/msbuildtoolsversionerror.jpg\">&nbsp;<\/font><\/em><\/strong><\/font><\/font><\/span><\/p>\n<p class=\"MsoNormal\" align=\"center\"><span class=\"MsoIntenseEmphasis\"><font size=\"3\"><font color=\"#4f81bd\"><strong><em><font face=\"Calibri\">\u201cUnable to read the project file \u2018Project.proj\u2019. <\/font><\/em><\/strong><\/font><\/font><\/span><\/p>\n<p class=\"MsoNormal\" align=\"center\"><span class=\"MsoIntenseEmphasis\"><strong><em><font size=\"3\"><font color=\"#4f81bd\"><font face=\"Calibri\">MSBuildToolsPath is not specified for the ToolsVersion \u201c4.0\u201d defined at \u201cHKEY_LOCAL_MACHINESOFTWAREMicrosoftMSBuildToolsVersions4.0\u201d, or the value specified evaluates to the empty string.\u201d<\/font><\/font><\/font><\/em><\/strong><\/span><\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">&nbsp;<\/font><\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">This might be caused by the Windows SDK v7.0A still present on the machine or at least some of the registry keys it uses. To fix this issue you need to do the following:<\/font><\/p>\n<p class=\"MsoListParagraphCxSpFirst\"><span><span><font face=\"Calibri\" size=\"3\">1)<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Make sure Visual Studio 2010 is completely uninstalled (go to \u201cControl Panel -&gt; Programs -&gt; Programs and features\u201d and make sure it is not listed)<\/font><\/p>\n<p class=\"MsoListParagraphCxSpMiddle\"><span><span><font face=\"Calibri\" size=\"3\">2)<\/font><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><font face=\"Calibri\" size=\"3\">Make sure the following registry keys do not exist in the machine:<\/font><\/p>\n<p class=\"MsoListParagraphCxSpMiddle\"><em><span><font size=\"3\">HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSBuild4.0<\/font><\/span><\/em><\/p>\n<p class=\"MsoListParagraphCxSpMiddle\"><em><span><font size=\"3\">HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSBuildToolsVersion4.0<\/font><\/span><\/em><\/p>\n<p class=\"MsoListParagraphCxSpMiddle\"><font face=\"Calibri\" size=\"3\">&nbsp;<\/font><\/p>\n<p class=\"MsoListParagraphCxSpMiddle\"><font face=\"Calibri\" size=\"3\">If you are working on a 64bit OS you will need to delete them from the 32 bit part of the registry. To accomplish that click \u201cStart Menu -&gt; Run\u2026\u201d and type the following command:<\/font><\/p>\n<p class=\"MsoListParagraphCxSpLast\"><em><span><font size=\"3\">%WinDir%SysWOW64regedit.exe<\/font><\/span><\/em><\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">&nbsp;<\/font><\/p>\n<p class=\"MsoNormal\"><font face=\"Calibri\" size=\"3\">After doing so, Visual Studio 2008 should be fully functional again.<\/font><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/msbuildtoolsversionerror.jpg\">msbuildtoolsversionerror.jpg<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; If you find out that after trying out one of the beta versions of the new Visual Studio 2010 and uninstalling it together with the .NET Framework 4 or uninstalling only .NET Framework 4, every time you try to load a project on Visual Studio 2008 you face the following error: &nbsp; \u201cUnable to [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":255385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[237,37],"class_list":["post-2433","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-net","tag-msbuild"],"acf":[],"blog_post_summary":"<p>&nbsp; If you find out that after trying out one of the beta versions of the new Visual Studio 2010 and uninstalling it together with the .NET Framework 4 or uninstalling only .NET Framework 4, every time you try to load a project on Visual Studio 2008 you face the following error: &nbsp; \u201cUnable to [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/2433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=2433"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/2433\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/255385"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=2433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=2433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=2433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}