简体   繁体   English

如何在VS解决方案文件的Windows资源管理器的上下文菜单中“构建”项目?

[英]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.

相关问题 如何在Windows资源管理器的“新建”上下文菜单中添加一个项目以打开一个窗口? - How do I add an item to Windows Explorer's “New” context menu which opens a window? 从Windows资源管理器的文件上下文菜单中执行AutoIt脚本 - Executing an AutoIt script from Windows Explorer's file context menu Windows资源管理器上下文菜单上的InfoTip - InfoTip on Windows explorer context menu item 如何将上下文菜单项添加到Windows资源管理器,这会将我带到explorer.exe的同一实例中的某些特定位置 - How add context menu item to Windows Explorer which takes me to some specific location in the same instance of explorer.exe 单击上下文菜单项时,将上下文菜单项插入资源管理器并传递完整文件名 - Insert a Context menu Item to Explorer and pass the Full File Name when Context Menu item is Clicked 我在资源管理器中有一个上下文菜单项,现在如何最好地在文件上调用进程? - I have a context menu item in Explorer, now how is it best to call my process on the file? 在 Windows Explorer 上下文菜单中订购 - Order in the Windows Explorer context menu 通过 Windows 10 文件资源管理器中的上下文菜单水平翻转 - Flip Horizontally Through the Context Menu in the Windows 10 File Explorer Windows资源管理器上下文菜单集成,获取右键单击的文件 - Windows Explorer Context Menu Integration, get file that was right clicked on 如何在 windows 上的上下文菜单中为新应用程序添加新命令 11 文件资源管理器 - How to add a new command for a new application in context menu on windows 11 File Explorer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM