diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index f28fd718..a30d7d9d 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -30,6 +30,13 @@ jobs: working-directory: spacetimedb-csharp-sdk run: | ( cd ../SpacetimeDB/crates/bindings-csharp/BSATN.Runtime && dotnet pack ) + + # Write out the nuget config file to `nuget.config`. This causes the spacetimedb-csharp-sdk repository + # to be aware of the local versions of the `bindings-csharp` packages in SpacetimeDB, and use them if + # available. Otherwise, `spacetimedb-csharp-sdk` will use the NuGet versions of the packages. + # This means that (if version numbers match) we will test the local versions of the C# packages, even + # if they're not pushed to NuGet. + # See https://learn.microsoft.com/en-us/nuget/reference/nuget-config-file for more info on the config file. ./scripts/write-nuget-config.sh ../SpacetimeDB - name: Restore dependencies diff --git a/scripts/write-nuget-config.sh b/scripts/write-nuget-config.sh index db010d86..b32baa1e 100755 --- a/scripts/write-nuget-config.sh +++ b/scripts/write-nuget-config.sh @@ -7,9 +7,7 @@ cd .. # Write out the nuget config file to `nuget.config`. This causes the spacetimedb-csharp-sdk repository # to be aware of the local versions of the `bindings-csharp` packages in SpacetimeDB, and use them if -# available. Otherwise, `spacetimedb-csharp-sdk` will use the NuGet versions of the packages. -# This means that (if version numbers match) we will test the local versions of the C# packages, even -# if they're not pushed to NuGet. +# available. # See https://learn.microsoft.com/en-us/nuget/reference/nuget-config-file for more info on the config file, # and https://tldp.org/LDP/abs/html/here-docs.html for more info on this bash feature. cat >nuget.config <