Skip to content

.Net: Bug: NRedisStack is not StrongName signed and won't work for (.Net Framework target SDKs) #11807

Description

@anuj-modi

Describe the bug
NRedisStack is not strong name signed so "Microsoft.SemanticKernel.Connectors.Redis" won't load it when being used from .NET Framework (I am using 4.8.1)

To Reproduce

// Use Azure AD authentication for Redis
var redisOptions = ConfigurationOptions.Parse(options.VectorStoreEndpoint)
                    .ConfigureForAzureWithTokenCredentialAsync(tokenCredential)
                    .Result;
var connectionMultiplexer = ConnectionMultiplexer.Connect(redisOptions);
builder.Services.AddSingleton<IDatabase>(connectionMultiplexer.GetDatabase());
builder.AddRedisVectorStore();

Expected behavior
I would expect this to load successfully.

Observed Error

Exception: System.AggregateException: One or more errors occurred. ---> System.IO.FileLoadException: Could not load file or assembly 'NRedisStack, Version=0.12.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)

Platform

  • Language: C#, .NET Framework v4.8.1
  • Source: NuGet Package Microsoft.SemanticKernel.Connectors.Redis version 1.47.0-preview with NRedisStack 0.13.3
  • AI model: OpenAI:GPT-4o and text-embedding-3-large
  • IDE: Visual Studio
  • OS: Windows

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

.NETIssue or Pull requests regarding .NET codebugSomething isn't workingstaleIssue is stale because it has been open for a while and has no activity

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions