Sau khi cập nhật lên Visual Studio 2012 Update 3 (trước đây tôi đã chạy Update 2), NuGet không tải được. Điều đó có nghĩa là Trình quản lý gói không còn hiển thị sau khi tôi đã tải một giải pháp sử dụng NuGet và được sử dụng để hoạt động. * Nó không hiển thị trong Menu Công cụ. * NuGet (Quản lý gói NuGet) không hiển thị trong menu sau khi nhấp chuột phải vào giải pháp * NuGet (Quản lý gói NuGet) không hiển thị trong menu sau khi nhấp chuột phải vào dự ánTại sao NuGet không tải được trong Visual Studio 2012 sau khi cập nhật lên VS Update 3?
Tiện ích mở rộng và cập nhật hộp thoại (TOOLS/Extensions and Updates ...) hiển thị NuGet Package Manager như được cài đặt và khi tôi nhấp vào nó nó cho thấy rằng nó có thể được gỡ cài đặt.
Ngoài ra khi tôi đã kiểm tra nhật ký cài đặt sau khi gỡ bỏ cài đặt và sau đó cài đặt lại các NuGet Package Manager (từ việc tải xuống tôi đã nhận trên trang web NuGet CodePlex) nó cho thấy rằng nó đã được cài đặt thành công:
/10/2013 11:39:05 AM - Beginning to install extension to Microsoft Visual Studio Professional 2012...
7/10/2013 11:39:05 AM - Install to Microsoft Visual Studio Professional 2012 completed successfully. The extension has been installed to C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 11.0\\COMMON7\IDE\EXTENSIONS\VYALGTD2.XZS\
tôi kiểm tra và thư mục này thực sự tồn tại và chứa NuGet dlls.
Khi tôi chuyển đến hộp thoại TOOLS/Options ... và chọn Package Manager, khung bên tay phải hiển thị văn bản: "Đã xảy ra lỗi khi tải trang thuộc tính này". Cùng một văn bản được hiển thị khi Package Manager được mở rộng và cả General hoặc Package Sources được chọn.
Tôi đã gỡ cài đặt và cài đặt lại NuGet nhiều lần và tôi đã cài đặt cả hai từ VSIX đã tải xuống và trực tiếp trong hộp thoại Tiện ích và Cập nhật và kết quả luôn giống nhau.
Tôi đã cài đặt phiên bản NuGet cũ hơn và tôi nhận được kết quả tương tự. Tôi đã gỡ cài đặt Visual Studio và cài đặt lại nó và tôi nhận được kết quả tương tự với phiên bản 1, Cập nhật 2 hoặc Cập nhật 3.
Tệp hoạt động Activity.log.xml hiển thị sự cố sau khi cố gắng tải NuGet:
<entry>
<record>211</record>
<time>2013/07/10 17:39:44.295</time>
<type>Information</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Successfully loaded component assembly from cache</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 11.0\COMMON7\IDE\EXTENSIONS\VYALGTD2.XZS\NuGet.VisualStudio.dll</path>
</entry>
<entry>
<record>212</record>
<time>2013/07/10 17:39:44.295</time>
<type>Information</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Successfully loaded component assembly from cache</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 11.0\COMMON7\IDE\EXTENSIONS\VYALGTD2.XZS\NuGet.Console.dll</path>
</entry>
<entry>
<record>213</record>
<time>2013/07/10 17:39:44.295</time>
<type>Information</type>
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source>
<description>Successfully loaded component assembly from cache</description>
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 11.0\COMMON7\IDE\EXTENSIONS\VYALGTD2.XZS\NuGetConsole.Host.PowerShellProvider.dll</path>
</entry>
<entry>
<record>214</record>
<time>2013/07/10 17:39:44.298</time>
<type>Information</type>
<source>VisualStudio</source>
<description>End package load [Visual Studio Component Model Host Package]</description>
<guid>{49D12072-378B-4FFA-A09E-40E0B5D097CC}</guid>
</entry>
<entry>
<record>215</record>
<time>2013/07/10 17:39:44.383</time>
<type>Information</type>
<source>VisualStudio</source>
<description>End package load [Microsoft.VisualStudio.Editor.Implementation.EditorPackage]</description>
<guid>{E269B994-EF71-4CE0-8BCD-581C217372E8}</guid>
</entry>
Phần này có vẻ ổn. Nhưng sau đó có những lời cảnh báo và các lỗi sau đây:
<entry>
<record>234</record>
<time>2013/07/10 17:39:57.070</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Performance warning: String load failed. Pkg:{00000000-0000-0000-0000-000000000000} LANG:0409 ID:1003
</description>
</entry>
<entry>
<record>235</record>
<time>2013/07/10 17:39:57.072</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Performance warning: String load failed. Pkg:{00000000-0000-0000-0000-000000000000} LANG:0409 ID:1004
</description>
</entry>
<entry>
<record>236</record>
<time>2013/07/10 17:39:57.073</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Performance warning: String load failed. Pkg:{5FB7364D-2E8C-44A4-95EB-2A382E30FEC7} (EditorExtensionsPackage) LANG:0409 ID:101
</description>
</entry>
<entry>
<record>237</record>
<time>2013/07/10 17:39:57.073</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Performance warning: String load failed. Pkg:{5FB7364D-2E8C-44A4-95EB-2A382E30FEC7} (EditorExtensionsPackage) LANG:0409 ID:106
</description>
</entry>
<entry>
<record>238</record>
<time>2013/07/10 17:39:57.073</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Performance warning: String load failed. Pkg:{5FB7364D-2E8C-44A4-95EB-2A382E30FEC7} (EditorExtensionsPackage) LANG:0409 ID:102
</description>
</entry>
<entry>
<record>239</record>
<time>2013/07/10 17:39:57.073</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Performance warning: String load failed. Pkg:{5FB7364D-2E8C-44A4-95EB-2A382E30FEC7} (EditorExtensionsPackage) LANG:0409 ID:101
</description>
</entry>
<entry>
<record>240</record>
<time>2013/07/10 17:39:57.074</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Performance warning: String load failed. Pkg:{5FB7364D-2E8C-44A4-95EB-2A382E30FEC7} (EditorExtensionsPackage) LANG:0409 ID:107
</description>
</entry>
<entry>
<record>241</record>
<time>2013/07/10 17:39:57.074</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Performance warning: String load failed. Pkg:{5FB7364D-2E8C-44A4-95EB-2A382E30FEC7} (EditorExtensionsPackage) LANG:0409 ID:103
</description>
</entry>
<entry>
<record>242</record>
<time>2013/07/10 17:39:57.074</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Performance warning: String load failed. Pkg:{5FB7364D-2E8C-44A4-95EB-2A382E30FEC7} (EditorExtensionsPackage) LANG:0409 ID:105
</description>
</entry>
<entry>
<record>243</record>
<time>2013/07/10 17:39:57.074</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Performance warning: String load failed. Pkg:{5FB7364D-2E8C-44A4-95EB-2A382E30FEC7} (EditorExtensionsPackage) LANG:0409 ID:104
</description>
</entry>
<entry>
<record>244</record>
<time>2013/07/10 17:40:00.908</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
<guid>{5FCC8577-4FEB-4D04-AD72-D6C629B083CC}</guid>
</entry>
<entry>
<record>245</record>
<time>2013/07/10 17:40:00.908</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [NuGet.Tools.NuGetPackage, NuGet.Tools, Version=2.6.40627.9000, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]</description>
<guid>{5FCC8577-4FEB-4D04-AD72-D6C629B083CC}</guid>
</entry>
<entry>
<record>246</record>
<time>2013/07/10 17:40:00.915</time>
<type>Error</type>
<source>VisualStudio</source>
<description>CreateInstance failed for package [NuGet.Tools.NuGetPackage, NuGet.Tools, Version=2.6.40627.9000, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]</description>
<guid>{5FCC8577-4FEB-4D04-AD72-D6C629B083CC}</guid>
<hr>80070002</hr>
<errorinfo>Could not load file or assembly 'NuGet.Tools, Version=2.6.40627.9000, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</errorinfo>
</entry>
<entry>
<record>247</record>
<time>2013/07/10 17:40:00.915</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [NuGet.Tools.NuGetPackage, NuGet.Tools, Version=2.6.40627.9000, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]</description>
<guid>{5FCC8577-4FEB-4D04-AD72-D6C629B083CC}</guid>
<hr>80004005 - E_FAIL</hr>
<errorinfo>Could not load file or assembly 'NuGet.Tools, Version=2.6.40627.9000, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</errorinfo>
</entry>
<entry>
<record>248</record>
<time>2013/07/10 17:40:00.915</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Package failed to load; error message suppressed by skip flag</description>
<guid>{5FCC8577-4FEB-4D04-AD72-D6C629B083CC}</guid>
</entry>
<entry>
Với sự đầu mối chính là trong hồ sơ 246 - Không thể tải tập tin hoặc lắp ráp 'NuGet.Tools, Version = 2.6.40627.9000, Văn hóa = trung tính, PublicKeyToken = b03f5f7f11d50a3a 'hoặc một trong các phụ thuộc của nó. Hệ thống không thể tìm thấy các tập tin được chỉ định.
Câu hỏi đặt ra là tại sao hệ thống không tìm thấy tệp hoặc thiếu phụ thuộc nào. Hỗ trợ MSDN Tech đã giúp tôi, nhưng sau đó quyết định rằng đây là một vấn đề họ sẽ không hỗ trợ và tôi nên đăng vấn đề ở đây.
Cảm ơn bạn Serg. Bây giờ dễ đọc hơn nhiều. – eesh
Nhắc tôi về linux, một ngôi nhà thẻ phụ thuộc –
Tương tự đã xảy ra với tôi, khi tôi cài đặt VS 2013. Giải pháp được chấp nhận cũng hoạt động cho nó. –