如何在项目/解决方案/工作室启动时启动EXE?

发布于 2024-08-06 04:08:37 字数 357 浏览 6 评论 0原文

无论如何,是否可以自定义解决方案/项目文件,以便在加载到时启动 EXE Visual Studio 或者作为第二个选项,当 Visual Studio 启动时?我知道我可以链接到 BAT 文件或类似文件,但如果可能的话,我宁愿使其更加无缝。

我确实检查了将自定义任务添加到项目文件中的可能性,因为它们只是 MSBuild 脚本但我找不到合适的事件来触发它。它们都是以构建为中心的事件。

Is there anyway to customize the solution / project file so that it launches an EXE when it's loaded into Visual Studio or, as a second option, when Visual Studio is started? I know I can make a link to a BAT file or similar but I'd rather make it more seamless if possible.

I did check the possibility of adding custom tasks into the project file, since they are just MSBuild scripts but I couldn't find a suitable event to trigger it on.. They're all build-centric events.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浪漫人生路 2024-08-13 04:08:37

查看这个问题(加载解决方案时枚举打开的窗口)

Private Sub SolutionEvents_Opened() Handles SolutionEvents.Opened
  // VB.net code that runs the exe
End Sub

Look at this question (Enumerate opened windows upon solution loading)

Private Sub SolutionEvents_Opened() Handles SolutionEvents.Opened
  // VB.net code that runs the exe
End Sub
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文