Can't install Windows Azure Service Bus nuget package

杀马特。学长 韩版系。学妹 提交于 2019-12-12 02:53:34

问题


I'm trying to add a nuget package to my project using the nuget package manager (right click and choosing "Manage Nugets").

I found the Windows Azure Service Bus and i'm clicking install. 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.

did anyone encounter this or know how to solve this?

thanks


回答1:


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). This fixed the dependency problem for me.




回答2:


Tried installing WindowsAzure.ServiceBus package to a clean project and it did not repro for me.

I suspect that you have some special comments or sth like that in your web.config. Could you please share with us what you web.config look like? or feel free to file an issue on http://nuget.codeplex.com and describe the repro steps.



来源:https://stackoverflow.com/questions/20351904/cant-install-windows-azure-service-bus-nuget-package

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!