简体   繁体   English

无法安装Windows Azure Service Bus nuget程序包

[英]Can't install Windows Azure Service Bus nuget package

I'm trying to add a nuget package to my project using the nuget package manager (right click and choosing "Manage Nugets"). 我正在尝试使用nuget软件包管理器将nuget软件包添加到我的项目中(右键单击并选择“管理Nugets”)。

I found the Windows Azure Service Bus and i'm clicking install. 我找到了Windows Azure Service Bus,然后单击“安装”。 Then I get the following error: 然后我得到以下错误:

Attempting to resolve dependency 'Microsoft.WindowsAzure.ConfigurationManager (≥ 2.0.2)'.
Successfully installed 'WindowsAzure.ServiceBus 2.2.1.1'.
Unexpected end of file while parsing Comment has occurred. Line 46, position 17.
Successfully uninstalled 'WindowsAzure.ServiceBus 2.2.1.1'.
Install failed. Rolling back...
Unexpected end of file while parsing Comment has occurred. Line 46, position 17.

I tried it over and over and even tried restarting vs2012. 我一遍又一遍地尝试,甚至尝试重新启动vs2012。

did anyone encounter this or know how to solve this? 有谁遇到或知道如何解决这个问题?

thanks 谢谢

I was getting a "Dependency Microsoft.WindowsAzure.ConfigurationManager could not be resolved" error and had to separately install the "Microsoft.WindowsAzure.ConfigurationManager" nuget package (VS 2015). 我遇到“无法解决依赖Microsoft.WindowsAzure.ConfigurationManager”错误,不得不单独安装“ Microsoft.WindowsAzure.ConfigurationManager” nuget程序包(VS 2015)。 This fixed the dependency problem for me. 这为我解决了依赖性问题。

Tried installing WindowsAzure.ServiceBus package to a clean project and it did not repro for me. 尝试将WindowsAzure.ServiceBus软件包安装到一个干净的项目中,但对我而言没有此问题。

I suspect that you have some special comments or sth like that in your web.config. 我怀疑您在web.config中有一些特殊的评论或类似的内容。 Could you please share with us what you web.config look like? 您能否与我们分享您的web.config外观? or feel free to file an issue on http://nuget.codeplex.com and describe the repro steps. 或随时在http://nuget.codeplex.com上提出问题并描述再现步骤。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM