我在使用Visual Studio 2015进行一些编译后操作时,遇到了以下错误:
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4291,5): error MSB3073: The command 'if 'Release'=='Release' (...
我也尝试了以下内容(不带引号):
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4291,5): error MSB3073: The command 'if 'Release'=='Release' (...
...
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4291,5): error MSB3073: )' exited with code 9009. -- FAILED"
请问出现了什么问题?我尝试了以下的“编译后”事件脚本:<PostBuildEvent>if "$(ConfigurationName)"=="Release" (
...
)</PostBuildEvent>
我也尝试了以下内容(不带引号):
<PostBuildEvent>if $(ConfigurationName)==Release (
...
)</PostBuildEvent>
一个重要的注意事项:该问题仅在同一解决方案中的少数项目中发生,而其他项目正常工作。目前我还没有注意到代码上的任何区别。