我有一個使用teamcity作爲構建/部署服務器的Windows Server 2003框。我在一個新的asp.net的MVC 4項目的檢查,這是crapping出與以下錯誤:在那個盒子asp.net mvc 4網站拒絕在teamcity上構建
App_Start\BundleConfig.cs(2, 18): error CS0234: The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Controllers\AccountController.cs(8, 7): error CS0246: The type or namespace name 'DotNetOpenAuth' could not be found (are you missing a using directive or an assembly reference?)
Global.asax.cs(7, 18): error CS0234: The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Models\AccountModels.cs(4, 45): error CS0234: The type or namespace name 'Schema' does not exist in the namespace 'System.ComponentModel.DataAnnotations' (are you missing an assembly reference?)
App_Start\BundleConfig.cs(9, 44): error CS0246: The type or namespace name 'BundleCollection' could not be found (are you missing a using directive or an assembly reference?)
我已經安裝asp.net的MVC 4,重新啓動機器,並嘗試了一切,而不運氣好的話。
任何想法?
這些特定的程序集不是ASP.NET MVC 4的一部分,而是單獨的下載(即nuget包)。檢查這些nuget軟件包是否被下拉到構建服務器的源代碼的一部分 –
這是什麼結果?我也有這個問題,打開包恢復功能,僅在TC盒上出現問題。 –