Unable to build the aspnet code using MSBuild.

Dhamodharan 1 Reputation point

I am trying to build asp net project using MSBuild command line tools, I have checkout my code in my machine along with the sln file, but when i try to build the sln file using msbuild, the throwing:

error MSB1009 Project file does not exist

But i have my sln file resides in the root directory.

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
938 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,926 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 25,551 Reputation points Microsoft Vendor

    Hi @Dhamodharan ,

    Welcome to Microsoft Q&A!

    Could you share me the command you use?

    Please check if your file name and path is correct or not. You can create a new project to try again.
    You can also refer to the document:


    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments