Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
无论如何自定义解决方案/项目文件,以便它在加载到 Visual Studio 时启动EXE,或者作为第二个选项,在启动 Visual Studio 时启动?我知道我可以链接到 BAT 文件或类似文件,但如果可能的话,我宁愿让它更加无缝。
我确实检查了将自定义任务添加到项目文件中的可能性,因为它们只是MSBuild脚本,但我找不到合适的事件来触发它。它们都是以构建为中心的事件。
看看这个问题(在解决方案加载时枚举打开的窗口)
Private Sub SolutionEvents_Opened() Handles SolutionEvents.Opened // VB.net code that runs the exe End Sub