diff --git a/build.psm1 b/build.psm1 index c5f82c86..b1516c6f 100644 --- a/build.psm1 +++ b/build.psm1 @@ -60,7 +60,6 @@ function Start-Build $agent_dir = Join-Path $shell_dir "agents" $app_dir = Join-Path $shell_dir "AIShell.App" - $pkg_dir = Join-Path $shell_dir "AIShell.Abstraction" $module_dir = Join-Path $shell_dir "AIShell.Integration" $openai_agent_dir = Join-Path $agent_dir "AIShell.OpenAI.Agent" @@ -69,7 +68,6 @@ function Start-Build $config = $Configuration.ToLower() $out_dir = Join-Path $PSScriptRoot "out" - $pkg_out_dir = Join-Path $out_dir "package" $app_out_dir = Join-Path $out_dir $config "app" $module_out_dir = Join-Path $out_dir $config "module" "AIShell" $module_help_dir= Join-Path $PSScriptRoot "docs" "cmdlets" @@ -85,22 +83,10 @@ function Start-Build } } - ## Create the package folder. Build will fail when nuget.config references to non-existing path. - if (-not (Test-Path $pkg_out_dir)) { - New-Item $pkg_out_dir -ItemType Directory > $null - } - Write-Host "`n[Build AI Shell ...]`n" -ForegroundColor Green $app_csproj = GetProjectFile $app_dir dotnet publish $app_csproj -c $Configuration -o $app_out_dir -r $RID --sc - if ($LASTEXITCODE -eq 0) { - ## Move the nuget package to the package folder. - Write-Host "`n[Deploy the NuGet package ...]`n" -ForegroundColor Green - $pkg_csproj = GetProjectFile $pkg_dir - dotnet pack $pkg_csproj -c $Configuration --no-build -o $pkg_out_dir - } - if ($LASTEXITCODE -eq 0 -and $AgentToInclude -contains 'openai-gpt') { Write-Host "`n[Build the OpenAI agent ...]`n" -ForegroundColor Green $openai_csproj = GetProjectFile $openai_agent_dir diff --git a/shell/AIShell.Abstraction/AIShell.Abstraction.csproj b/shell/AIShell.Abstraction/AIShell.Abstraction.csproj index 278a33cb..d6ed2e77 100644 --- a/shell/AIShell.Abstraction/AIShell.Abstraction.csproj +++ b/shell/AIShell.Abstraction/AIShell.Abstraction.csproj @@ -3,22 +3,9 @@ AIShell.Abstraction - - AIShell.Abstraction - Microsoft Corporation - MIT - © Microsoft Corporation. All rights reserved. - The abstraction layer SDK for building a plugin agent for AIShell. - README.md - true - - - - - diff --git a/shell/AIShell.Integration/AIShell.Integration.csproj b/shell/AIShell.Integration/AIShell.Integration.csproj index 67ebcda4..ba36b1f0 100644 --- a/shell/AIShell.Integration/AIShell.Integration.csproj +++ b/shell/AIShell.Integration/AIShell.Integration.csproj @@ -18,13 +18,16 @@ - contentFiles All + + + + PreserveNewest diff --git a/shell/agents/AIShell.Interpreter.Agent/AIShell.Interpreter.Agent.csproj b/shell/agents/AIShell.Interpreter.Agent/AIShell.Interpreter.Agent.csproj index 1ecc15f5..377e598a 100644 --- a/shell/agents/AIShell.Interpreter.Agent/AIShell.Interpreter.Agent.csproj +++ b/shell/agents/AIShell.Interpreter.Agent/AIShell.Interpreter.Agent.csproj @@ -19,10 +19,15 @@ - - contentFiles - all - + + + + + + false + + runtime + diff --git a/shell/agents/AIShell.Ollama.Agent/AIShell.Ollama.Agent.csproj b/shell/agents/AIShell.Ollama.Agent/AIShell.Ollama.Agent.csproj index 92a6cdcf..56068bee 100644 --- a/shell/agents/AIShell.Ollama.Agent/AIShell.Ollama.Agent.csproj +++ b/shell/agents/AIShell.Ollama.Agent/AIShell.Ollama.Agent.csproj @@ -16,10 +16,12 @@ - - contentFiles - all - + + + false + + runtime + diff --git a/shell/agents/AIShell.OpenAI.Agent/AIShell.OpenAI.Agent.csproj b/shell/agents/AIShell.OpenAI.Agent/AIShell.OpenAI.Agent.csproj index cb1afe1a..c0335823 100644 --- a/shell/agents/AIShell.OpenAI.Agent/AIShell.OpenAI.Agent.csproj +++ b/shell/agents/AIShell.OpenAI.Agent/AIShell.OpenAI.Agent.csproj @@ -24,10 +24,15 @@ - - contentFiles - all - + + + + + + false + + runtime + diff --git a/shell/nuget.config b/shell/nuget.config index d59ba4bc..a10ce9b3 100644 --- a/shell/nuget.config +++ b/shell/nuget.config @@ -2,7 +2,6 @@ -