Unable to read the project file, make sure that the path in the declaration is correct and that the file exists on the disk

Source: Internet
Author: User


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"/>


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.