visual-studio - 使用 Visual Studio for Mac 在 Azure 存储上出现错误 System.DllNotFoundException : fusion. dll

标签 visual-studio azure-blob-storage macos-sierra

当我关注这个公会时,我正在使用 Visual Studio for Mac。
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-dotnet-how-to-use-blobs

用代码:

// Parse the connection string and return a reference to the storage account.
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(
CloudConfigurationManager.GetSetting("StorageConnectionString")); 

我得到了这个异常(exception):

System.DllNotFoundException: fusion.dll



我尝试在 Window 上的 Visual Studio 中做,没问题。这是 Visual Studio for Mac 的问题
你能指导我如何修复它吗?
谢谢

最佳答案

System.DllNotFoundException: fusion.dll



AFAIK, Fusion.dll是一种与适用于 Windows 操作系统的 Microsoft .NET Framework 相关联的 DLL 文件。 VS 2017 for Mac 可以为移动、Web、Xamarin 和 .NET Core 等构建应用程序。我认为这个问题是由使用包 Microsoft.WindowsAzure.ConfigurationManager 引起的。 .

enter image description here

请尽量使用最新版本的WindowsAzure.Storage并删除 Microsoft.WindowsAzure.ConfigurationManager 包,然后构建您的 CloudStorageAccount实例如下来缩小这个问题。
CloudStorageAccount storageAccount = CloudStorageAccount.Parse("the-value-of-your-storage-connectionstring"); 

关于visual-studio - 使用 Visual Studio for Mac 在 Azure 存储上出现错误 System.DllNotFoundException : fusion. dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48057194/

相关文章:

macos - iosnoop、iotop、opensnoop、execsnoop、opensnoop、dtruss 和其他基于 dtrace 的命令不适用于 osx El Capitan、macOS Sierra

visual-studio - 在VS2008中运行批处理文件

javascript - 如何使用node.js将blob移动到Azure中的子目录中

c# - 来自 Azure Blob 下载图像的链接,但我只需要观看(Asp.NET Core)

c# - Azure,存储共享访问签名 2.0 的访问被拒绝

docker-credential-osxkeychain 想要使用您的 secret 信息

swift - 以编程方式使用 NSTextField 的 NSPopover

visual-studio - 是否可以从 Visual Studio 2013 创建 Windows 8 应用商店应用程序?

c# - 由于奇怪的错误,无法在 Visual Studio 2008 C# Windows 窗体中看到设计器 View

c# - 重命名 .NET 2.0 可执行文件