这个错误消息是什么意思?我能做些什么来纠正这个问题?
AssemblyInfo.cs退出,代码为9009
这个问题可能是在Visual Studio中的. net解决方案的构建后步骤中发生的。
这个错误消息是什么意思?我能做些什么来纠正这个问题?
AssemblyInfo.cs退出,代码为9009
这个问题可能是在Visual Studio中的. net解决方案的构建后步骤中发生的。
当前回答
至少在Visual Studio Ultimate 2013, Version 12.0.30723.00 Update 3中,不能用换行符分隔if/else语句:
工作原理:
if '$(BuildingInsideVisualStudio)' == 'true' (echo local) else (echo server)
不工作:
if '$(BuildingInsideVisualStudio)' == 'true' (echo local)
else (echo server)
其他回答
检查拼写。我试图调用一个可执行文件,但有名称拼写错误,它给了我退出与代码9009消息。
另一个变体:
今天我在win32中从cron调用python解释器并取ExitCode (%ERRORLEVEL%) 9009,因为cron使用的系统帐户没有python目录的路径。
Tfa的回答被否决了,但实际上会导致这个问题。 多亏了hanzolo,我在输出窗口中找到了以下内容:
3>'gulp' is not recognized as an internal or external command,
3>operable program or batch file.
3>D:\dev\<filepath>\Web.csproj(4,5): error MSB3073: The command "gulp clean" exited with code 9009.
在运行npm install -g gulp后,我不再得到这个错误。如果在Visual Studio中出现此错误,请检查输出窗口并查看问题是否是未设置的环境变量。
我通过简单地重新启动Visual Studio来解决这个问题——我刚刚在控制台窗口中运行了dotnet工具安装xxx, VS还没有选择新的环境变量和/或路径设置,所以快速重新启动解决了这个问题。
我的解决办法很简单:你试过关机再开机吗?于是我重新启动电脑,问题就解决了。