无法在 Monodevelop 中安装任何 NuGet 包
Unable to install any NuGet package in Monodevelop
我编译并安装了 Monodevelop 详细 here:
git clone https://github.com/mono/monodevelop.git
cd monodevelop
./configure --profile=stable
sudo make
sudo make install
然后我创建了一个新的MVC3项目,并尝试用NuGet添加一个包。但是,我尝试添加任何包时,都会在包控制台中收到与此类似的错误:
Adding Microsoft.Web.Infrastructure... Installing
'Microsoft.Web.Infrastructure 1.0.0.0'. Could not find a part of the path
"/tmp/nuget/bf2agvz5.hwr/lib/net40/Microsoft.Web.Infrastructure.dll".
示例:
Adding Microsoft.AspNet.WebHelpers... Attempting to resolve dependency
'Microsoft.AspNet.WebPages (≥ 3.2.3 && < 3.3.0)'. Attempting to
resolve dependency 'Microsoft.Web.Infrastructure (≥ 1.0.0.0)'.
Attempting to resolve dependency 'Microsoft.AspNet.Razor (≥ 3.2.3 && <
3.3.0)'. Attempting to resolve dependency 'Microsoft.AspNet.WebPages.WebData (≥ 3.2.3 && < 3.3.0)'. Attempting
to resolve dependency 'Microsoft.AspNet.WebPages.Data'. The
Microsoft.AspNet.Razor package has a license agreement which is
available at
http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm
Please review this license agreement and remove the package if you do
not accept the agreement. Check the package for additional
dependencies which may also have license agreements. Using this
package and any dependencies constitutes your acceptance of these
license agreements. The Microsoft.AspNet.WebPages package has a
license agreement which is available at
http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm
Please review this license agreement and remove the package if you do
not accept the agreement. Check the package for additional
dependencies which may also have license agreements. Using this
package and any dependencies constitutes your acceptance of these
license agreements. The Microsoft.AspNet.WebPages.Data package has a
license agreement which is available at
http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm
Please review this license agreement and remove the package if you do
not accept the agreement. Check the package for additional
dependencies which may also have license agreements. Using this
package and any dependencies constitutes your acceptance of these
license agreements. The Microsoft.AspNet.WebPages.WebData package has
a license agreement which is available at
http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm
Please review this license agreement and remove the package if you do
not accept the agreement. Check the package for additional
dependencies which may also have license agreements. Using this
package and any dependencies constitutes your acceptance of these
license agreements. The Microsoft.AspNet.WebHelpers package has a
license agreement which is available at
http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm
Please review this license agreement and remove the package if you do
not accept the agreement. Check the package for additional
dependencies which may also have license agreements. Using this
package and any dependencies constitutes your acceptance of these
license agreements. Installing 'Microsoft.Web.Infrastructure 1.0.0.0'.
Could not find a part of the path
"/tmp/nuget/bf2agvz5.hwr/lib/net40/Microsoft.Web.Infrastructure.dll".
或:
Adding Newtonsoft.Json... Newtonsoft.Json Package contains PowerShell
scripts which will not be run. Installing 'Newtonsoft.Json 6.0.8'.
Could not find a part of the path
"/tmp/nuget/3e1zcrod.0p6/lib/net20/Newtonsoft.Json.dll".
你有什么想法吗?
我正在使用 Ubuntu 14.04 和 MonoDevelop 6.0。
谢谢
好像是之前安装monodevelop导致的问题。我从 Ubuntu 包中安装了 monodevelop 4.0.12,当我决定从源代码编译 monodevelop 时,我卸载了这个版本。但是,运行ning sudo apt-get remove monodevelop 是不够的。
我不得不 运行:
sudo apt-get --purge remove monodevelop
也删除了配置文件,然后我再次编译了 monodevelop 6,NuGet 模块现在可以正常工作了。
再给有需要的人一个提示,如果你运行:
运行ning monodevelop从源代码编译的时候你可以得到更多的信息
make run
这将在控制台中显示很多消息,而 monodevelop 是 运行ning。
我编译并安装了 Monodevelop 详细 here:
git clone https://github.com/mono/monodevelop.git
cd monodevelop
./configure --profile=stable
sudo make
sudo make install
然后我创建了一个新的MVC3项目,并尝试用NuGet添加一个包。但是,我尝试添加任何包时,都会在包控制台中收到与此类似的错误:
Adding Microsoft.Web.Infrastructure... Installing
'Microsoft.Web.Infrastructure 1.0.0.0'. Could not find a part of the path
"/tmp/nuget/bf2agvz5.hwr/lib/net40/Microsoft.Web.Infrastructure.dll".
示例:
Adding Microsoft.AspNet.WebHelpers... Attempting to resolve dependency 'Microsoft.AspNet.WebPages (≥ 3.2.3 && < 3.3.0)'. Attempting to resolve dependency 'Microsoft.Web.Infrastructure (≥ 1.0.0.0)'. Attempting to resolve dependency 'Microsoft.AspNet.Razor (≥ 3.2.3 && < 3.3.0)'. Attempting to resolve dependency 'Microsoft.AspNet.WebPages.WebData (≥ 3.2.3 && < 3.3.0)'. Attempting to resolve dependency 'Microsoft.AspNet.WebPages.Data'. The Microsoft.AspNet.Razor package has a license agreement which is available at http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm Please review this license agreement and remove the package if you do not accept the agreement. Check the package for additional dependencies which may also have license agreements. Using this package and any dependencies constitutes your acceptance of these license agreements. The Microsoft.AspNet.WebPages package has a license agreement which is available at http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm Please review this license agreement and remove the package if you do not accept the agreement. Check the package for additional dependencies which may also have license agreements. Using this package and any dependencies constitutes your acceptance of these license agreements. The Microsoft.AspNet.WebPages.Data package has a license agreement which is available at http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm Please review this license agreement and remove the package if you do not accept the agreement. Check the package for additional dependencies which may also have license agreements. Using this package and any dependencies constitutes your acceptance of these license agreements. The Microsoft.AspNet.WebPages.WebData package has a license agreement which is available at http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm Please review this license agreement and remove the package if you do not accept the agreement. Check the package for additional dependencies which may also have license agreements. Using this package and any dependencies constitutes your acceptance of these license agreements. The Microsoft.AspNet.WebHelpers package has a license agreement which is available at http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm Please review this license agreement and remove the package if you do not accept the agreement. Check the package for additional dependencies which may also have license agreements. Using this package and any dependencies constitutes your acceptance of these license agreements. Installing 'Microsoft.Web.Infrastructure 1.0.0.0'. Could not find a part of the path "/tmp/nuget/bf2agvz5.hwr/lib/net40/Microsoft.Web.Infrastructure.dll".
或:
Adding Newtonsoft.Json... Newtonsoft.Json Package contains PowerShell scripts which will not be run. Installing 'Newtonsoft.Json 6.0.8'. Could not find a part of the path "/tmp/nuget/3e1zcrod.0p6/lib/net20/Newtonsoft.Json.dll".
你有什么想法吗? 我正在使用 Ubuntu 14.04 和 MonoDevelop 6.0。
谢谢
好像是之前安装monodevelop导致的问题。我从 Ubuntu 包中安装了 monodevelop 4.0.12,当我决定从源代码编译 monodevelop 时,我卸载了这个版本。但是,运行ning sudo apt-get remove monodevelop 是不够的。
我不得不 运行:
sudo apt-get --purge remove monodevelop
也删除了配置文件,然后我再次编译了 monodevelop 6,NuGet 模块现在可以正常工作了。
再给有需要的人一个提示,如果你运行:
运行ning monodevelop从源代码编译的时候你可以得到更多的信息make run
这将在控制台中显示很多消息,而 monodevelop 是 运行ning。