Closed clarotech closed 4 years ago
@clarotech you need to use Amazon.AspNetCore.DataProtection.SSM
as a direct dependency, which contains the extension method PersistKeysToAWSSystemsManager
.
Additionally, you don't have to add the transitive dependencies such as mazon.Extensions.Configuration.SystemsManager
& AWSSDK.SimpleSystemsManagement
.
Using .NET Core 3.1
References `
When using the following code, an error is raised on services.AddDataProtection().PersistKeysToAWSSystemsManager("/MyApplication/DataProtection"); stating
'IDataProtectionBuilder' does not contain a definition for 'PersistKeysToAWSSystemsManager' and no accessible extension method 'PersistKeysToAWSSystemsManager' accepting a first argument of type 'IDataProtectionBuilder' could be found (are you missing a using directive or an assembly reference?)
The following Using statements are present
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Newtonsoft.Json.Serialization; using NFR_Admin.Services; using Syncfusion.Licensing; using Amazon.SimpleSystemsManagement; using Microsoft.AspNetCore.DataProtection; using Microsoft.AspNetCore.DataProtection.Extensions
Is there a compatibility issue somewhere?