feat: add local NuGet development workflow

Add a local NuGet feed configuration, a Directory.Build.props
template for Godot users, and automate source generator bundling
into the NuGet package.
This commit is contained in:
2026-07-19 00:30:36 +08:00
parent 1da0ca30d3
commit 5594515a53
4 changed files with 47 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<!--
Directory.Build.props for Godot C# projects consuming OECS.
Godot regenerates .csproj files on certain editor actions, which can
wipe custom <ItemGroup> entries. This file is never touched by Godot.
Placement: put this file in the root of your Godot project (next to
the .sln file), or in any parent directory.
You also need a nuget.config next to your .sln with the local feed:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="local-oecs" value="path/to/oecs-sharp/nupkgs" />
</packageSources>
</configuration>
-->
<Project>
<ItemGroup>
<PackageReference Include="OECS" Version="0.1.*" />
</ItemGroup>
</Project>