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.

Microsoft Build
Microsoft Build
A Microsoft platform for building applications with Visual Studio and .NET on Windows.
381 questions
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.
724 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AnnaXiu-MSFT 12,936 Reputation points

    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.