How do I build a solution programmatically in C#?

前端 未结 7 1921
日久生厌
日久生厌 2020-12-02 14:46

How do I build a C# solution programmatically?

I should be able to pass the path of a solution and get the output messages (or just build the solution). How do I ach

7条回答
  •  青春惊慌失措
    2020-12-02 15:00

    Surely you can use MSBuild to build any Visual Studio solution file.

    I believe you can use Process.Start to invoke MSBuild with appropriate parameters.

提交回复
热议问题