[英]VS2015: What is the best way to setup a Powershell module solution?
What I have: 我有的:
What I need: 我需要的:
Note: PowerShell module project in VS2015 would be perfect for me if it had "Postbuild" capabilities. 注意: VS2015中的PowerShell模块项目如果具有“Postbuild”功能,对我来说将是完美的。 Unfortunately it has not.
不幸的是它没有。
I would use a Makefile project (New \\ Project \\ Templates \\ Visual C++ \\ General \\ Makefile Project). 我将使用Makefile项目(New \\ Project \\ Templates \\ Visual C ++ \\ General \\ Makefile Project)。 Go to its Properties \\ NMake tab and compose "Build Command Line" and other commands, as required.
转到其Properties \\ NMake选项卡,根据需要编写“Build Command Line”和其他命令。 In your case, the build command should copy needed files to the target location.
在您的情况下,构建命令应将所需文件复制到目标位置。 Do not be confused by names "Visual C++" and "NMake".
不要被名称“Visual C ++”和“NMake”混淆。 You can use any commands you want.
您可以使用任何所需的命令。
Finally, in a solution configure project dependencies or build order with this new project included. 最后,在解决方案中配置包含此新项目的项目依赖项或构建顺序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.