Skip to content

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

Open
@anuj-modi

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

Metadata

Metadata

Assignees

Labels

.NETIssue or Pull requests regarding .NET codebugSomething isn't working

Type

Projects

Status

Backlog: Planned

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions