From 3bd602b5197300139f9afbc5065cec599bf8dc49 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 2 Sep 2026 11:44:38 +0000 Subject: [PATCH] Add Cloud Agent development environment config Pin the .NET 10 SDK via a repository Dockerfile and restore/build the solution on install so Cloud Agents can build and test the connector. Co-authored-by: Pavlo Mishchenko --- .cursor/Dockerfile | 22 ++++++++++++++++++++++ .cursor/environment.json | 8 ++++++++ 2 files changed, 30 insertions(+) create mode 100644 .cursor/Dockerfile create mode 100644 .cursor/environment.json diff --git a/.cursor/Dockerfile b/.cursor/Dockerfile new file mode 100644 index 000000000..1659e9de5 --- /dev/null +++ b/.cursor/Dockerfile @@ -0,0 +1,22 @@ +# Development environment for the SingleStore .NET Connector. +# +# The .NET 10 SDK is pinned because CI targets net10.0 (see +# .github/workflows/config.yml) and this single SDK can build every framework +# the connector multi-targets (net462/471/48, netstandard2.0/2.1, net6.0/8.0/9.0/10.0) +# by restoring reference packs on demand. +FROM mcr.microsoft.com/dotnet/sdk:10.0 + +ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 \ + DOTNET_NOLOGO=1 \ + DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 + +# git and curl support source control and tooling; the MySQL/MariaDB client is +# used by the repository's SingleStore integration-test helper scripts under +# .github/workflows and .ci. +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + ca-certificates \ + curl \ + git \ + default-mysql-client \ + && rm -rf /var/lib/apt/lists/* diff --git a/.cursor/environment.json b/.cursor/environment.json new file mode 100644 index 000000000..f0f5275d6 --- /dev/null +++ b/.cursor/environment.json @@ -0,0 +1,8 @@ +{ + "name": "SingleStore .NET Connector", + "user": "root", + "build": { + "dockerfile": "Dockerfile" + }, + "install": "dotnet restore SingleStoreConnector.slnx && dotnet build -c Release" +}