Nuget包不会安装

时间:2012-02-14 19:59:39

标签: c# .net visual-studio-2010 nuget nuget-package

我在项目中安装一些Elmah软件包时遇到问题(如果我为这些软件包提供了新的解决方案)

Attempting to resolve dependency 'elmah (= 1.2.0.1)'.
Attempting to resolve dependency 'elmah.corelibrary (= 1.2)'.
Successfully installed 'elmah.corelibrary 1.2.1'.
Successfully installed 'elmah 1.2.0.1'.
Successfully installed 'Elmah.MVC 1.3.2'.
Successfully added 'elmah.corelibrary 1.2.1' to WebUIProject.
Data at the root level is invalid. Line 1, position 1.
Successfully uninstalled 'elmah 1.2.0.1'.
Successfully uninstalled 'elmah.corelibrary 1.2.1'.
Install failed. Rolling back...
Data at the root level is invalid. Line 1, position 1.
以前有人见过这个吗?我有1.6版的nuget。

1 个答案:

答案 0 :(得分:1)

检查您的web.config文件是否存在任何异常。此异常意味着读取XML文件时出现问题。