Run a solution from Visual Studio console without opening the IDE

前端 未结 1 1513
别跟我提以往
别跟我提以往 2021-02-01 09:54

I am using Visual Studio 2010 SP1.

What I first tried was this:

  1. Open the Visual Studio console tool from start menu
  2. Navigate to project folder (wh
1条回答
  •  粉色の甜心
    2021-02-01 10:18

    • Navigate to your solution folder
    • Run: msbuild myproject.sln /p:Configuration=Release (or Debug)
    • cd myproject (within your solution folder - it's a sub-folder)
    • cd bin
    • cd Release (or Debug)
    • Run: myproject.exe

    You can replace the three separate cd commands with a single one:

    cd myproject\bin\Release
    

    Or simply run your executable from the solution folder:

    myproject\bin\Release\myproject.exe
    

    0 讨论(0)
提交回复
热议问题