在我的項目中嘗試使用Microsoft.Azure.Management.Fluent時出現此錯誤。.net核心版本衝突
嚴重性代碼項目說明文件號線在抑制狀態 錯誤NU1607 ProjectX.Auth.Web版本衝突檢測的 Microsoft.IdentityModel.Clients.ActiveDirectory。直接從項目中引用包 來解決此問題。
ProjectX.Auth.Web(> = 1.0.0) - > Microsoft.AspNetCore.All(> = 2.0.0) - > Microsoft.Extensions.Configuration.AzureKeyVault(> = 2.0.0) - > Microsoft.IdentityModel.Clients.ActiveDirectory(> = 3.14.1)
ProjectX.Auth.Web(> = 1.0.0) - > ProjectX.Auth.Infrastructure(> = 1.0.0) - > ProjectX.Shared .Infrastructure(> = 1.0.0) - > ProjectX.Shared.ServiceBus(> = 1.0.0) - > Microsoft.Azure.Management.Fluent(> = 1.2.0) - > Microsoft.Azure.Management.ResourceManager .Fluent(> = 1.2.0) - > Microsoft.Rest.ClientRuntime.Azure.Authentication(> = 2.3.1) - > M icrosoft.IdentityModel.Clients.ActiveDirectory(> = 3.13.9)。
任何想法如何解決這個問題?
您是否嘗試過'直接從項目中引用包來解決此問題? –
@KirkLarkin - >我試圖添加Nuget包到項目中:ProjectX.Auth.Web = Microsoft.IdentityModel.Clients.ActiveDirectory(> = 3.14.1)和ProjectX.Shared.ServiceBus - > Microsoft.IdentityModel.Clients.ActiveDirectory (> = 3.13.9)。如果那是你的意思? –
@RuneJensen嘗試'安裝包Microsoft.IdentityModel.Clients.ActiveDirectory'在依賴關係鏈中的所有'ProjectX.'項目 - 將包括'ProjectX.Auth.Infrastructure'和'ProjectX.Shared.Infrastructure' – vzwick