[英]How to "Build” item in Windows Explorer's context menu of a VS solution file?
I am using Windows 10 x64 with Visual Studio 2017 Community. 我正在将Windows 10 x64与Visual Studio 2017社区一起使用。
How do I build a project or solution from windows explorer without the need to open visual studio just to build it? 如何从Windows资源管理器构建项目或解决方案,而无需仅打开Visual Studio来构建它?
I found this on stackoverflow but it is old. 我在stackoverflow上找到了它 ,但是它很旧。
Any new tools or techniques I'm unaware of? 我不知道任何新工具或新技术吗?
Thanks 谢谢
Any new tools or techniques I'm unaware of? 我不知道任何新工具或新技术吗?
There are no more new tools here except the MSBuildShellExtension v2.0. 除了MSBuildShellExtension v2.0之外,这里没有其他新工具。 This development of MSBuildShellExtension tool is based on MSBuild command line. MSBuildShellExtension工具的此开发基于MSBuild命令行。 If you want to develop a new tools for building a project or solution from windows explorer, you can develop the new tool based on the principle of MSBuild command line. 如果要开发用于从Windows资源管理器构建项目或解决方案的新工具,则可以基于MSBuild命令行的原理来开发新工具。 You can refer to MSBuild Command-Line for more detail. 您可以参考MSBuild命令行以获取更多详细信息。
If you don`t want to develop a new tool, the MSBuild command line is a good recommendation, which has been able to complete the build project very well without the need to open Visual Studio. 如果您不想开发新工具,则建议使用MSBuild命令行,它可以很好地完成构建项目,而无需打开Visual Studio。
You can launch the Command Prompt from the start menu, Switch to the MSBuild.exe path for Visual Studio 2017: C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\MSBuild\\15.0\\Bin
, then use MSBuild command line: MSBuild.exe MyProject.proj
. 您可以从开始菜单启动命令提示符,切换到Visual Studio 2017的MSBuild.exe路径: C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\MSBuild\\15.0\\Bin
,然后使用MSBuild命令行: MSBuild.exe MyProject.proj
。 You can also use MSBuild.exe to perform more complex builds. 您还可以使用MSBuild.exe执行更复杂的构建。
Hope this can help you. 希望这可以帮到你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.