Edit

Share via


MSB4226 diagnostic code

This article describes the MSB4226 error code.

Message text

MSB4226: The imported project 'value' was not found. Also, tried to find 'value' in the fallback search path(s) for 'value' - 'value' . These search paths are defined in 'value'. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths. MSB4226: The imported project 'value' was not found. Also, tried to find 'value' in the fallback search path(s) for 'value' - 'value' . Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths.

Description

This error occurs when MSBuild tries to import a file, but the file couldn't be found. The fallback paths mentioned in the error text are only relevant for Visual Studio 2015 and earlier. If you're using a newer version of Visual Studio and MSBuild, you can ignore the information about fallback search paths.

Resolution

See the guidance for MSB4019.

Applies to

All versions of MSBuild