Skip to content

.Net: Fix: (InMemory Connector #12363) strong name validation failure #12368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions dotnet/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
<RepoRoot>$([System.IO.Path]::GetDirectoryName($([MSBuild]::GetPathOfFileAbove('.gitignore', '$(MSBuildThisFileDirectory)'))))</RepoRoot>
</PropertyGroup>

<!-- Disable strong name verification to prevent assembly loading issues -->
<PropertyGroup>
<SignAssembly>false</SignAssembly>
<DelaySign>false</DelaySign>
</PropertyGroup>

<ItemGroup>
<!-- Add CLSCompliant=false to all projects by default. Projects can override. -->
<AssemblyAttribute Include="System.CLSCompliantAttribute">
Expand Down
25 changes: 25 additions & 0 deletions dotnet/samples/Demos/OnnxSimpleRAG/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<!-- Disable strong name verification for all assemblies -->
<generatePublisherEvidence enabled="false" />
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<!-- Binding redirect for SemanticKernel.Connectors.InMemory -->
<dependentAssembly>
<assemblyIdentity name="Microsoft.SemanticKernel.Connectors.InMemory"
publicKeyToken="f300afd708cefcd3"
culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="1.55.0.0" />
<!-- Disable strong name verification -->
<publisherPolicy apply="no" />
</dependentAssembly>
</assemblyBinding>

<!-- Disable strong name verification globally -->
<bypassTrustedAppStrongNames enabled="true" />
</runtime>

<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
</configuration>
Loading