Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article describes the MSB4011 error code.
Message text
MSB4011: 'value' cannot be imported again. It was already imported at 'value'. This is most likely a build authoring error. This subsequent import will be ignored.
Description
This diagnostic code is emitted when you import the same project more than once in the same project file. This build issue isn't a blocking error.
Resolution
Although this issue isn't a blocking error, you can remove the duplicate import element to eliminate the warning.
Important
If an imported file uses properties and items defined in your project file, the placement of import
elements in the code can affect the behavior of the build. It's important to understand any differences in property values or items that are used in the imported project when choosing which duplicate to remove.
Applies to
All versions of MSBuild