Skip to content

Commit

Permalink
C# tests building!
Browse files Browse the repository at this point in the history
  • Loading branch information
John Detter committed Oct 21, 2024
1 parent 093afff commit 5d47384
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions SpacetimeDB.ClientSDK.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<AssemblyVersion>0.12.0</AssemblyVersion>
<Version>$(AssemblyVersion)</Version>
<DefaultItemExcludes>$(DefaultItemExcludes);*~/**</DefaultItemExcludes>
<!-- Disable default compile items to prevent duplicate inclusion -->
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
<!-- We want to save DLLs for Unity which doesn't support NuGet. -->
<RestorePackagesPath>packages</RestorePackagesPath>
</PropertyGroup>
Expand All @@ -35,12 +37,11 @@
<None Update="README.md" Pack="true" PackagePath="" />
</ItemGroup>

<!-- Exclude Unity-related scripts from dotnet build -->
<!-- Explicitly include all .cs files except Unity-related scripts -->
<ItemGroup>
<!-- Compile all .cs files except for Unity-specific ones -->
<Compile Include="**/*.cs" Exclude="unity-tests/client/Assets/**/*.cs" />
<Compile Include="src/**/*.cs" Exclude="unity-tests/client/Assets/**/*.cs" />

<!-- Optionally include Unity-related scripts for Unity builds when BuildingUnity is true -->
<!-- Optionally include Unity-related scripts for Unity builds -->
<Compile Include="unity-tests/client/Assets/**/*.cs" Condition="'$(BuildingUnity)' == 'true'" />
</ItemGroup>

Expand Down

0 comments on commit 5d47384

Please sign in to comment.