gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 23:37:24 24 4
gpt4 key购买 nike

当我关注这个公会时,我正在使用 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com