From 757060fbfdef58465c3259581cac174c38784120 Mon Sep 17 00:00:00 2001 From: Diogo Martins Date: Wed, 17 Jun 2026 13:31:34 +0100 Subject: [PATCH] sln: add the binding projects so examples resolve in IDEs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The examples ProjectReference Glyph11.Native / Glyph11.Pico, but those projects weren't in src/Glyph11.sln — so IDEs couldn't resolve them (CLI builds were fine). Add both to the solution. To keep release.yml from shipping them (the solution pack would have packed the bindings without their native binaries), point the managed Release job at Glyph11/Glyph11.csproj specifically — the bindings publish via package-native.yml / package-pico.yml. Also gitignore the local benchmarking feed. Verified: solution builds; packing Glyph11.csproj produces only Glyph11. --- .github/workflows/release.yml | 11 +++++++---- .gitignore | 3 +++ src/Glyph11.sln | 28 ++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c4585de..21706a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,16 +33,19 @@ jobs: 9.0 10.0 + # Pack only the Glyph11 package, not the whole src solution — the solution now also + # contains the binding projects (so the examples resolve in IDEs), and those publish + # via package-native.yml / package-pico.yml with their native binaries bundled. - name: Restore dependencies - run: dotnet restore + run: dotnet restore Glyph11/Glyph11.csproj working-directory: src - - name: Build solution - run: dotnet build --configuration Release --no-restore + - name: Build + run: dotnet build Glyph11/Glyph11.csproj --configuration Release --no-restore working-directory: src - name: Pack - run: dotnet pack --configuration Release -p:ContinuousIntegrationBuild=true --no-build --output ./artifacts + run: dotnet pack Glyph11/Glyph11.csproj --configuration Release -p:ContinuousIntegrationBuild=true --no-build --output ./artifacts working-directory: src - name: List gathered packages diff --git a/.gitignore b/.gitignore index 64548dd..3dea208 100644 --- a/.gitignore +++ b/.gitignore @@ -459,3 +459,6 @@ $RECYCLE.BIN/ !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json + +# Local NuGet feed for benchmarking unpublished packages (never committed). +local-feed/ diff --git a/src/Glyph11.sln b/src/Glyph11.sln index 0004c8f..ddbd871 100644 --- a/src/Glyph11.sln +++ b/src/Glyph11.sln @@ -12,6 +12,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Glyph11.Native.Example", ". EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Glyph11.Pico.Example", "..\Examples\Glyph11.Pico.Example\Glyph11.Pico.Example.csproj", "{CE3462D0-F32A-4ED0-91E1-6B03980FB656}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Glyph11.Native", "..\bindings\dotnet\Glyph11.Native\Glyph11.Native.csproj", "{C6187C79-0229-4E86-9D90-7613A368D7D9}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Glyph11.Pico", "..\bindings\dotnet\Glyph11.Pico\Glyph11.Pico.csproj", "{D4818609-70E0-4F92-8638-A5B096C54CAB}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -94,6 +98,30 @@ Global {CE3462D0-F32A-4ED0-91E1-6B03980FB656}.Release|x64.Build.0 = Release|Any CPU {CE3462D0-F32A-4ED0-91E1-6B03980FB656}.Release|x86.ActiveCfg = Release|Any CPU {CE3462D0-F32A-4ED0-91E1-6B03980FB656}.Release|x86.Build.0 = Release|Any CPU + {C6187C79-0229-4E86-9D90-7613A368D7D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C6187C79-0229-4E86-9D90-7613A368D7D9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C6187C79-0229-4E86-9D90-7613A368D7D9}.Debug|x64.ActiveCfg = Debug|Any CPU + {C6187C79-0229-4E86-9D90-7613A368D7D9}.Debug|x64.Build.0 = Debug|Any CPU + {C6187C79-0229-4E86-9D90-7613A368D7D9}.Debug|x86.ActiveCfg = Debug|Any CPU + {C6187C79-0229-4E86-9D90-7613A368D7D9}.Debug|x86.Build.0 = Debug|Any CPU + {C6187C79-0229-4E86-9D90-7613A368D7D9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C6187C79-0229-4E86-9D90-7613A368D7D9}.Release|Any CPU.Build.0 = Release|Any CPU + {C6187C79-0229-4E86-9D90-7613A368D7D9}.Release|x64.ActiveCfg = Release|Any CPU + {C6187C79-0229-4E86-9D90-7613A368D7D9}.Release|x64.Build.0 = Release|Any CPU + {C6187C79-0229-4E86-9D90-7613A368D7D9}.Release|x86.ActiveCfg = Release|Any CPU + {C6187C79-0229-4E86-9D90-7613A368D7D9}.Release|x86.Build.0 = Release|Any CPU + {D4818609-70E0-4F92-8638-A5B096C54CAB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D4818609-70E0-4F92-8638-A5B096C54CAB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D4818609-70E0-4F92-8638-A5B096C54CAB}.Debug|x64.ActiveCfg = Debug|Any CPU + {D4818609-70E0-4F92-8638-A5B096C54CAB}.Debug|x64.Build.0 = Debug|Any CPU + {D4818609-70E0-4F92-8638-A5B096C54CAB}.Debug|x86.ActiveCfg = Debug|Any CPU + {D4818609-70E0-4F92-8638-A5B096C54CAB}.Debug|x86.Build.0 = Debug|Any CPU + {D4818609-70E0-4F92-8638-A5B096C54CAB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D4818609-70E0-4F92-8638-A5B096C54CAB}.Release|Any CPU.Build.0 = Release|Any CPU + {D4818609-70E0-4F92-8638-A5B096C54CAB}.Release|x64.ActiveCfg = Release|Any CPU + {D4818609-70E0-4F92-8638-A5B096C54CAB}.Release|x64.Build.0 = Release|Any CPU + {D4818609-70E0-4F92-8638-A5B096C54CAB}.Release|x86.ActiveCfg = Release|Any CPU + {D4818609-70E0-4F92-8638-A5B096C54CAB}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE