diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml
index d1f143e2a4..c0bf3a0b27 100644
--- a/.github/workflows/publish-nuget.yml
+++ b/.github/workflows/publish-nuget.yml
@@ -25,6 +25,10 @@ jobs:
run: bash ./versioning.sh
id: versioning
+ - name: Build Common
+ working-directory: ./src/dotnet/Common
+ run: dotnet build --configuration Release -p:GITHUB_ACTIONS=true
+
- name: Build CoreClient
working-directory: ./src/dotnet/CoreClient
run: dotnet build --configuration Release -p:GITHUB_ACTIONS=true
@@ -33,6 +37,10 @@ jobs:
working-directory: ./src/dotnet/ManagementClient
run: dotnet build --configuration Release -p:GITHUB_ACTIONS=true
+ - name: Pack Common
+ working-directory: ./src/dotnet/Common
+ run: dotnet pack --configuration Release /p:PackageVersion=${{ steps.versioning.outputs.version }} -p:GITHUB_ACTIONS=true --output ./nupkg
+
- name: Pack CoreClient
working-directory: ./src/dotnet/CoreClient
run: dotnet pack --configuration Release /p:PackageVersion=${{ steps.versioning.outputs.version }} -p:GITHUB_ACTIONS=true --output ./nupkg
@@ -41,6 +49,10 @@ jobs:
working-directory: ./src/dotnet/ManagementClient
run: dotnet pack --configuration Release /p:PackageVersion=${{ steps.versioning.outputs.version }} -p:GITHUB_ACTIONS=true --output ./nupkg
+ - name: Publish Common to NuGet
+ working-directory: ./src/dotnet/Common
+ run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
+
- name: Publish CoreClient to NuGet
working-directory: ./src/dotnet/CoreClient
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
diff --git a/src/dotnet/Common/Common.csproj b/src/dotnet/Common/Common.csproj
index 16e0b851b1..e63ba10544 100644
--- a/src/dotnet/Common/Common.csproj
+++ b/src/dotnet/Common/Common.csproj
@@ -6,13 +6,43 @@
enable
FoundationaLLM.Common
FoundationaLLM.Common
+ Library
True
+
+ FoundationaLLM.Client.Common is a .NET library that the FoundationaLLM.Client.Core and FoundationaLLM.Client.Management client libraries share as a common dependency. Do not directly import and use this library.
+ FoundationaLLM;LLM;GPT;AI;SDK;Common
+ https://github.com/solliancenet/foundationallm
+ FoundationaLLM.Common
+ 0.0.0
+ fllm-icon-128.png
+ readme.md
+ FoundationaLLM Common
+ Solliance
+ git
+ true
+ snupkg
+ https://foundationallm.ai
+ Copyright © Solliance. All rights reserved.
+ true
+ true
+ true
+
+
+
+ true
+
+
+
+
+
+
+
diff --git a/src/dotnet/Common/readme.md b/src/dotnet/Common/readme.md
new file mode 100644
index 0000000000..23b91a2ec9
--- /dev/null
+++ b/src/dotnet/Common/readme.md
@@ -0,0 +1,8 @@
+# Foundationa**LLM** Common
+
+Foundationa**LLM** Common is a .NET library that the `FoundationaLLM.Client.Core` and `FoundationaLLM.Client.Management` client libraries share as a common dependency.
+
+> [!IMPORTANT]
+> **Do not directly import and use this library.**
+
+To use the Foundationa**LLM** client libraries, install the `FoundationaLLM.Client.Core` or `FoundationaLLM.Client.Management` NuGet package.