Find the related error, can not find the reason, the other project files are loaded in, but I do not know why this load does not go in. I took a look at the. csproj file of the other project, check with the. csproj file where the error occurred.
Put them <import project= "$ (msbuildbinpath) \microsoft.csharp.targets"/>
<import project= "$ (msbuildextensionspath) \microsoft\visualstudio\v9.0\webapplications\ Microsoft.WebApplication.targets "/>
Switch
<import project= "$ (msbuildbinpath) \microsoft.csharp.targets"/>
<import project= "$ (msbuildextensionspath) \microsoft\visualstudio\v8.0\webapplications\ Microsoft.WebApplication.targets "condition=" ' $ (solutions.vsversion) ' = = ' 8.0 ' "/>
<import project= "$ (msbuildextensionspath) \microsoft\visualstudio\v9.0\webapplications\ Microsoft.WebApplication.targets "condition=" ' $ (solutions.vsversion) ' = = ' 9.0 ' "/>
Can be loaded into the project file. This is generally downloaded on the Internet project, or a friend to the project always out of this problem, the beginning has not been solved, today do not know how to inspiration. To compare the configuration of the <Import> node in the respective. csproj file. The result really solved the problem, good. Oh happy.
The following methods I searched on the Internet, I use the vs2008 version. It is estimated that he is using the vs2005 version.
People often very hard to find their own source program on the Internet, when we were ecstatic to open, but prompted "not found the imported items" $:\boo.microsoft.build.targets. Make sure that the path in the <Import> declaration is correct and that the file exists on the disk.
WORKAROUND: Open the project file (. csproj) with Notepad, and then locate the <import > node to do the following:
<import project= "$ (MSBuildToolsPath) \microsoft.csharp.targets"/>
To be replaced by:
<import project= "$ (msbuildbinpath) \microsoft.csharp.targets"/>