Failed to load type "Microsoft.Build.Framework.SdkReference" in a project opened in VS 2017 U1 (15.3)

After performing a (apparently successful) upgrade from VS 2017 15.1 to 15.3, I can no longer load a single C # project (I canโ€™t open an existing one, I canโ€™t create a new one). All errors with this error:

Failed to load type 'Microsoft.Build.Framework.SdkReference' from the assembly 'Microsoft.Build.Framework, Version = 15.1.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a'.

I found one link to someone who ran into this problem with RC version 15.3 but no one has it, so I have no idea how about my environment it might cause this problem. I tried to clear the cache and user data, restore, complete the uninstall / reinstall and remove the third-party components. I have no ideas.

There are absolutely tons of information that I could provide here, so I'm not sure where to start. I am grateful for any ideas, or at least for others having the same problem.

+6
source share
2 answers
  • open the developer command line command for VS2017 (I opened it as admin)
  • gacutil / u Microsoft.Build.Framework

Microsoft.Build.Framework [GAC]

  1. gacutil/i "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Build.Framework.dll"

15.1.0.

.

+3

( )

+1

All Articles