Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more actionable custom Check loading error #10619

Open
JanKrivanek opened this issue Sep 4, 2024 · 0 comments
Open

Add more actionable custom Check loading error #10619

JanKrivanek opened this issue Sep 4, 2024 · 0 comments

Comments

@JanKrivanek
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants