当我关注这个公会时,我正在使用 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 引起的。 .请尽量使用最新版本的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/