成功构建后的 Visual Studio 2019 C++ 运行 .exe

问题描述

如何使我的 Visual Studio 2019,在我的 C++ Build 成功编译后运行自定义 exe?

我尝试插入 PostEvent 构建,执行以下命令:“start C:\Test.exe”但可执行文件在编译运行时启动(编译仅在我退出 Test.exe 时完成)。

我想在编译器成功构建后直接启动程序。

提前致谢。

enter image description here

解决方法

它不漂亮,但很管用:powershell "Start-Process c:\test.exe"