It took me hours to troubleshoot this one: I didn't have the VC++ component installed, and was getting an unhelpful NullReferenceException.
The solution to this problem is:
The line var state = instance2.GetState(); must be moved inside the if (fetched > 0) { ... } block.
|
var state = instance2.GetState(); |
|
if (fetched > 0) |
|
{ |
|
if ((state & InstanceState.Registered) == InstanceState.Registered) |
By the way, the error message could also be more explicit about what a "compatible" Visual Studio means (the requirement for VC++ component).
It took me hours to troubleshoot this one: I didn't have the VC++ component installed, and was getting an unhelpful NullReferenceException.
The solution to this problem is:
The line
var state = instance2.GetState();must be moved inside theif (fetched > 0) { ... }block.SharpGenTools/SharpGen/Parser/SdkResolver.cs
Lines 68 to 71 in 27480d4
By the way, the error message could also be more explicit about what a "compatible" Visual Studio means (the requirement for VC++ component).