The project file. csproj cannot be read. Make sure that the path in the Declaration is correct and the file exists on the disk.

Source: Internet
Author: User

 

Related error found. The cause cannot be found. Other project files are loaded, but I do not know why this cannot be loaded. I checked the. csproj file of other projects and checked it against the. csproj file that encountered an error,

<Import project = "$ (msbuildbinpath) \ microsoft.csharp.tar gets"/>
<Import project = "$ (msbuildextensionspath) \ Microsoft \ visualstudio \ v9.0 \ webapplications \ microsoft.webapplication.tar gets"/>
Changed:

 

<Import project = "$ (msbuildbinpath) \ microsoft.csharp.tar gets"/>

<Import project = "$ (msbuildextensionspath) \ Microsoft \ visualstudio \ v8.0 \ webapplications \ microsoft.webapplication.tar gets" condition = "'$ (solutions. vsversion) '= '8. 0' "/>
<Import project = "$ (msbuildextensionspath) \ Microsoft \ visualstudio \ v9.0 \ webapplications \ microsoft.webapplication.tar gets" condition = "'$ (solutions. vsversion) '= '9. 0' "/>

Can all be loaded into the project file! This is a project that is generally downloaded from the Internet, or the project that a friend gives always has such a problem and has never been solved. Today, I don't know how to get inspired. Check the configuration of the <import> node in the. csproj file! The problem was solved. Happy!

The following method is searched on the Internet. I use vs2008! It is estimated that he uses the vs2005 version.

You often find the source program you want on the Internet, and when we are excited to open it, the system prompts "the imported project is not found" $: \ boo.microsoft.build.tar gets ". Make sure that the path in the <import> statement is correct and the file exists on the disk.

Solution: Open the project file (. csproj) in notepad, find the <import> node, and perform the following operations:
<Import project = "$ (msbuildtoolspath) \ microsoft.csharp.tar gets"/>
Replace:
<Import project = "$ (msbuildbinpath) \ microsoft.csharp.tar gets"/> This is the final solution !!!

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.