question

Dhamodharan-9471 avatar image
0 Votes"
Dhamodharan-9471 asked AnnaXiu-MSFT answered

Unable to build the aspnet code using MSBuild.

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.

vs-debuggingvs-msbuild
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AnnaXiu-MSFT avatar image
0 Votes"
AnnaXiu-MSFT answered

Hi @Dhamodharan-9471 ,

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:
https://docs.microsoft.com/en-us/visualstudio/msbuild/how-to-build-specific-targets-in-solutions-by-using-msbuild-exe?view=vs-2019

Sincerely,
Anna


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.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.