Programmatically generate Visual Studio Solution

后端 未结 4 2136
执念已碎
执念已碎 2020-12-10 08:29

I want to write a wizard in .net which programmatically generates Visual Studio Solution with some projects. I will have a XML file with details of files need to be included

4条回答
  •  轮回少年
    2020-12-10 09:05

    Well the Visual Studio SDK would be your path to go. There are methods where you can create files and I think also projects based on project templates. So for instance you can create a new "asp.net mvc" project or a class library. You could even create your own template.

    I am quite sure that you can do this only inside VS.

    Otherwise, there is nothing wrong to generate the project and sln files be generating the xml files, thats one of the good things that they are plain xml in the end. You just need to generate some Projectd Guids, but I think this would be fairly simple and totally "legal".

    good progress!

提交回复
热议问题