【问题标题】:Which should I catch: Hyak.Common.CloudException or Microsoft.WindowsAzure.CloudException?我应该抓住哪个:Hyak.Common.CloudException 或 Microsoft.WindowsAzure.CloudException?
【发布时间】:2015-04-30 22:27:13
【问题描述】:
catch (CloudException) 

在我决定之前不会编译!

我升级到新的 azure sdk,但我无法弄清楚...

【问题讨论】:

    标签: azure-sdk-.net


    【解决方案1】:

    是的,我从某个非常旧的版本更新到最新的 Windows Azure 管理计算库 Microsoft.WindowsAzure.Management.Compute 12.0.0.0。

    旧版本依赖于 Microsoft.WindowsAzure.Common。

    CloudException 在那里定义。

    新版本依赖于 Hyak.Common 和 Microsoft.Azure.Common。

    CloudException 现在在 Hyak.Common 中定义,新的管理库现在将抛出这个,而不是另一个。

    我现在也做了

    Uninstall-Package Microsoft.WindowsAzure.Common
    Uninstall-Package Microsoft.WindowsAzure.Common.Dependencies
    

    因为看来我不应该再依赖他们了

    【讨论】:

      猜你喜欢
      • 2012-12-31
      • 2011-02-05
      • 2019-04-07
      • 1970-01-01
      • 2013-01-27
      • 2012-03-10
      • 2019-01-15
      • 2011-07-25
      • 1970-01-01
      相关资源
      最近更新 更多