asp.net应用程序在Hudson上构建失败

时间:2015-10-09 09:16:08

标签: asp.net build hudson

我正在使用Hudson为我的asp.net应用程序创建构建。在构建之前几天成功创建。突然间,它开始显示构建失败。我没有对我的代码进行任何更改。任何人都可以帮我理解这个错误。

    Task "Exec"
  Command:
  "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.com" "<https:..:443/hudson/job/Gateway%202.0%20Web%20Application/6289/artifact/trunk\Build\Gateway> Build Solution.sln" /rebuild "Debug"
  Cannot find one or more components. Please reinstall the application.
<https://../hudson/job/Gateway%202.0%20Web%20Application/6289/artifact/trunk\Build\Gateway> Solution.msbuild(135,7): error MSB3073: The command ""C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.com" "
<https://../hudson/job/Gateway%202.0%20Web%20Application/6289/artifact/trunk\Build\Gateway> Build Solution.sln" /rebuild "Debug"" exited with code -1.
Done executing task "Exec" -- FAILED.
Done building target "BuildCode" in project "Gateway Solution.msbuild" -- FAILED.
Done Building Project "<https://../hudson/job/Gateway%202.0%20Web%20Application/6289/artifact/trunk\Build\Gateway> Solution.msbuild" (default targets) -- FAILED.

Build FAILED.

"<https://../hudson/job/Gateway%202.0%20Web%20Application/6289/artifact/trunk\Build\Gateway> Solution.msbuild" (default target) (1) -> (BuildCode target) ->
  <https://../hudson/job/Gateway%202.0%20Web%20Application/6289/artifact/trunk\Build\Gateway> Solution.msbuild(135,7): error MSB3073: The command ""C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.com" "
<https://../hudson/job/Gateway%202.0%20Web%20Application/6289/artifact/trunk\Build\Gateway> Build Solution.sln" /rebuild "Debug"" exited with code -1.

    0 Warning(s)
    1 Error(s)

我有根本原因,这只是因为一些视觉工作室的更新。我已经恢复了更新,现在工作正常。

1 个答案:

答案 0 :(得分:0)

我有根本原因,这只是因为一些视觉工作室的更新。我已经恢复了更新,现在工作正常。 Visual Studio更新进行了一些注册表更改,并反映了重新启动服务器所需的更改。如果您的服务器正在生产中,则无法及时重启服务器。如果我们的应用程序在当前的visual studio上构建,那么我不需要更新它。