在visual studio中创建新的c#项目

在visual studio中创建新的c#项目

问题描述:

嗨专家,



我是脚本新手,我想如何从脚本中在visual studio中创建新的c#项目(避免手动步骤) 。



提前致谢。



问候,

Vinay.S

Hi Experts,

I am new to scripting, I wanted to how how can we create new c# project in visual studio from scripts (to avoid manual steps).

Thanks in advance.

Regards,
Vinay.S

最简单的方法是创建一个不需要用户干预的自定义模板。当然,这意味着您无法在创建过程中修改项目设置。或者,您可以编写自己的驱动程序,使用 Visual Studio的可扩展性功能 [ ^ ]。
The easiest way to do this would be to create a custom template that does not require user intervention. This would, of course, mean that you could not modify the project settings during the create process. Alternatively you could write your own driver program that uses the extensibility features of Visual Studio[^].