![](/img/trans.png)
[英]How do you get the current project directory from C# code when creating a custom MSBuild task?
[英]Creating C# project template from existing one in Powershell/MSBuild
Visual Studio允许从现有模板创建项目模板。 我想知道是否有一些选项可以通过某些powershell脚本来完成?
您无法使用Powershell脚本创建项目。 您需要以编程方式在vs扩展/加载项中创建项目。 检查本文: https : //msdn.microsoft.com/zh-cn/library/ms228767(v=vs.120).aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.