Open
Description
Context
When there is a mismatch between the Microsoft.Build
assembly referenced during the build and one available in hosting process during loading - the custom check will fail to load:
Failed to instantiate the custom check rule with the following exception: 'Could not load type 'Microsoft.Build.Experimental.BuildCheck.BuildAnalyzer' from assembly 'Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.'.
This situation can happen quite often as we currently have no forward no backward compatiblity mechanism for custom checks. Let's try to see if we can dig and present more information in such situation (e.g. the actuall Microsoft.Build versions used during building the Check and loading the Check).