diff --git a/.github/workflows/cake-build.yml b/.github/workflows/cake-build.yml index 35024dc..b7917d0 100644 --- a/.github/workflows/cake-build.yml +++ b/.github/workflows/cake-build.yml @@ -20,8 +20,14 @@ jobs: - name: Install Cake.Tool run: dotnet tool install --global Cake.Tool + - name: Restore NuGet packages + run: nuget restore src\Cody.Core\Cody.Core.csproj -PackagesDirectory src\packages + - name: Run Cake script run: | cd src + dotnet tool restore + corepack enable + corepack install --global pnpm@8.6.7 dotnet cake diff --git a/src/Cody.AgentTester/Cody.AgentTester.csproj b/src/Cody.AgentTester/Cody.AgentTester.csproj index 75c4316..55c0cc0 100644 --- a/src/Cody.AgentTester/Cody.AgentTester.csproj +++ b/src/Cody.AgentTester/Cody.AgentTester.csproj @@ -1,180 +1,67 @@ - - - - - Debug - AnyCPU - {53B1165F-1A99-4524-B5BB-8A4985C4D161} - Exe - Cody.AgentTester - Cody.AgentTester - v4.7.2 - 512 - true - true - - - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - VSTHRD010;VSTHRD200 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\MessagePack.2.3.75\lib\netstandard2.0\MessagePack.dll - - - ..\packages\MessagePack.Annotations.2.3.75\lib\netstandard2.0\MessagePack.Annotations.dll - - - ..\packages\Microsoft.Bcl.AsyncInterfaces.5.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll - - - ..\packages\Microsoft.VisualStudio.Threading.16.10.56\lib\net472\Microsoft.VisualStudio.Threading.dll - - - ..\packages\Microsoft.VisualStudio.Validation.16.10.26\lib\netstandard2.0\Microsoft.VisualStudio.Validation.dll - - - ..\packages\Microsoft.Win32.Registry.5.0.0\lib\net461\Microsoft.Win32.Registry.dll - - - ..\packages\Nerdbank.Streams.2.8.46\lib\netstandard2.0\Nerdbank.Streams.dll - - - ..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll - - - ..\packages\StreamJsonRpc.2.9.85\lib\netstandard2.0\StreamJsonRpc.dll - - - - ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll - - - ..\packages\System.Collections.Immutable.5.0.0\lib\net461\System.Collections.Immutable.dll - - - - - ..\packages\System.Diagnostics.DiagnosticSource.5.0.1\lib\net46\System.Diagnostics.DiagnosticSource.dll - - - ..\packages\System.IO.4.3.0\lib\net462\System.IO.dll - True - True - - - ..\packages\System.IO.Pipelines.5.0.1\lib\net461\System.IO.Pipelines.dll - - - ..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll - - - ..\packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll - True - True - - - ..\packages\System.Net.WebSockets.4.3.0\lib\net46\System.Net.WebSockets.dll - True - True - - - - ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll - - - ..\packages\System.Runtime.4.3.0\lib\net462\System.Runtime.dll - True - True - - - ..\packages\System.Runtime.CompilerServices.Unsafe.5.0.0\lib\net45\System.Runtime.CompilerServices.Unsafe.dll - - - ..\packages\System.Security.AccessControl.5.0.0\lib\net461\System.Security.AccessControl.dll - - - ..\packages\System.Security.Cryptography.Algorithms.4.3.0\lib\net463\System.Security.Cryptography.Algorithms.dll - True - True - - - ..\packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll - True - True - - - ..\packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll - True - True - - - ..\packages\System.Security.Cryptography.X509Certificates.4.3.0\lib\net461\System.Security.Cryptography.X509Certificates.dll - True - True - - - ..\packages\System.Security.Principal.Windows.5.0.0\lib\net461\System.Security.Principal.Windows.dll - - - ..\packages\System.Threading.Tasks.Dataflow.5.0.0\lib\net461\System.Threading.Tasks.Dataflow.dll - - - ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll - - - - - - - - - - - - - - - - {9ff2cc40-78e9-46c8-b2ef-30a1f1be82f2} - Cody.Core - - - - - - - - - - - - - - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - + + + + + Debug + AnyCPU + {53B1165F-1A99-4524-B5BB-8A4985C4D161} + Exe + Cody.AgentTester + Cody.AgentTester + v4.7.2 + 512 + true + true + + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + VSTHRD010;VSTHRD200 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + {9ff2cc40-78e9-46c8-b2ef-30a1f1be82f2} + Cody.Core + + + + + 2.9.85 + + + \ No newline at end of file diff --git a/src/Cody.AgentTester/packages.config b/src/Cody.AgentTester/packages.config deleted file mode 100644 index b57db68..0000000 --- a/src/Cody.AgentTester/packages.config +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Cody.sln b/src/Cody.sln index 01ff947..53fc386 100644 --- a/src/Cody.sln +++ b/src/Cody.sln @@ -22,6 +22,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D606EDCF-C31F-4C52-B8E7-68F87CCF91CF}" ProjectSection(SolutionItems) = preProject build.cake = build.cake + ..\.github\workflows\cake-build.yml = ..\.github\workflows\cake-build.yml EndProjectSection EndProject Global diff --git a/src/build.cake b/src/build.cake index 19200f0..1edef7a 100644 --- a/src/build.cake +++ b/src/build.cake @@ -134,6 +134,7 @@ Task("DownloadNode") Task("Build") .IsDependentOn("BuildCodyAgent") .IsDependentOn("DownloadNode") + .IsDependentOn("Restore") .Does(() => { MSBuild("./Cody.sln", new MSBuildSettings @@ -143,6 +144,17 @@ Task("Build") }); }); +Task("Restore") + .Does(() => +{ + Information($"Restore ..."); + + MSBuild("./Cody.sln", new MSBuildSettings { + Targets = { "Restore" }, + Verbosity = Verbosity.Minimal + }); +}); + Task("Publish") //.IsDependentOn("Build") .Does(() =>