我将预构建事件设置为:
$(TargetDir)MyConsoleApp
但是当我运行应用程序时,我得到以下输出:
------ Build started: Project: BlahBlahBlah, Configuration: Debug x86 ------
'd:\users\user\documents\visual' is not recognized as an internal or external
command, operable program or batch file.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(902,9):
error MSB3073: The command "d:\users\user\documents\visual studio 2010\Projects\
BlahBlahBlah\BlahBlahBlah\bin\Debug\MyConsoleApp" exited with code 9009.
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
指定目标上的文件 MyConsoleApp 确实存在并且可以从 Windows 资源管理器中正常运行。