From a9bb956d7c201a95289d6d5164c3181801668233 Mon Sep 17 00:00:00 2001 From: Michelangelo Partipilo Date: Mon, 16 Mar 2026 17:35:11 +0100 Subject: [PATCH] Include analyzers in main NuGet package - Add ProjectReference to Weaviate.Client.Managed.Analyzers - Package analyzer DLL in analyzers/dotnet/cs path - Remove separate analyzer packaging from workflow - Users now get compile-time validation automatically when installing Weaviate.Client.Managed --- .github/workflows/main.yaml | 1 - .../Weaviate.Client.Managed.csproj | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 5af05c2..f7225e2 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -270,7 +270,6 @@ jobs: - name: Create NuGet package run: | dotnet pack -c Release -o out src/Weaviate.Client.Managed/ - dotnet pack -c Release -o out src/Weaviate.Client.Managed.Analyzers/ - name: Push package to NuGet run: dotnet nuget push './out/*.nupkg' --skip-duplicate --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json diff --git a/src/Weaviate.Client.Managed/Weaviate.Client.Managed.csproj b/src/Weaviate.Client.Managed/Weaviate.Client.Managed.csproj index d4679e3..f4add46 100644 --- a/src/Weaviate.Client.Managed/Weaviate.Client.Managed.csproj +++ b/src/Weaviate.Client.Managed/Weaviate.Client.Managed.csproj @@ -79,6 +79,21 @@ + + + + + + + + + +