Skip to content

Add more actionable custom Check loading error #10619

Open
@JanKrivanek

Description

@JanKrivanek

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:

image

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).

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions