Skip to content

Commit

Permalink
fix: Fixed warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Jan 5, 2025
1 parent b7f22de commit 7e79b4c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
3 changes: 3 additions & 0 deletions src/Chroma/src/LangChain.Databases.Chroma.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<PropertyGroup>
<TargetFrameworks>net4.6.2;netstandard2.0;net8.0;net9.0</TargetFrameworks>
<NoWarn>$(NoWarn);CA1720;CA1510;CS3016;CS3001;SKEXP0001;SKEXP0020</NoWarn>
<IsTrimmable>false</IsTrimmable>
<IsAotCompatible>false</IsAotCompatible>
<NoWarn>$(NoWarn);IL2026;IL3050</NoWarn>
</PropertyGroup>

<PropertyGroup Label="NuGet">
Expand Down
18 changes: 9 additions & 9 deletions src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
<PackageVersion Include="Microsoft.Data.Sqlite" Version="9.0.0" />
<PackageVersion Include="Microsoft.Data.Sqlite.Core" Version="9.0.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.Milvus" Version="1.29.0-alpha" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.AzureAISearch" Version="1.29.0-alpha" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.Chroma" Version="1.29.0-alpha" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.DuckDB" Version="1.29.0-alpha" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.Pinecone" Version="1.29.0-alpha" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.Qdrant" Version="1.29.0-alpha" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.Redis" Version="1.29.0-alpha" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.Sqlite" Version="1.29.0-alpha" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.Weaviate" Version="1.29.0-alpha" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.Milvus" Version="1.32.0-alpha" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.Chroma" Version="1.32.0-alpha" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.DuckDB" Version="1.32.0-alpha" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.AzureAISearch" Version="1.32.0-preview" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.Pinecone" Version="1.32.0-preview" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.Qdrant" Version="1.32.0-preview" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.Redis" Version="1.32.0-preview" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.Sqlite" Version="1.32.0-preview" />
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.Weaviate" Version="1.32.0-preview" />
<PackageVersion Include="Microsoft.SemanticKernel.Core" Version="1.32.0" />
<PackageVersion Include="Moq" Version="4.20.72" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.MSTest" Version="1.1.2" />
Expand Down
3 changes: 3 additions & 0 deletions src/Sqlite/src/LangChain.Databases.Sqlite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net8.0;net9.0</TargetFrameworks>
<NoWarn>$(NoWarn);NETSDK1206;CA2100;CS3016;CS3001;CA1720</NoWarn>
<IsTrimmable>false</IsTrimmable>
<IsAotCompatible>false</IsAotCompatible>
<NoWarn>$(NoWarn);IL2026;IL3050</NoWarn>
</PropertyGroup>

<PropertyGroup Label="NuGet">
Expand Down
2 changes: 2 additions & 0 deletions src/Sqlite/src/SQLiteConversationRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ public async Task<List<StoredMessage>> ListMessages(Guid conversationId)
MessageId = Guid.Parse(reader.GetString(0)),
ConversationId = Guid.Parse(reader.GetString(1)),
Content = reader.GetString(2),
#pragma warning disable CA2263
Author = (MessageAuthor)Enum.Parse(typeof(MessageAuthor), reader.GetString(3))
#pragma warning restore CA2263
});
}

Expand Down

0 comments on commit 7e79b4c

Please sign in to comment.