build: Add msbuild flag to reference projs or local nugets

So we can use project refs for dev builds, and package refs for releases.
This commit is contained in:
John Colvin committed 2026-01-04 21:19:00 +00:00
1 parent 6568c29ad4
commit bb1e7c30c8
18 files changed
+230 -101

No files matched your search

@@ -4,6 +4,7 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<TargetFramework>net8.0</TargetFramework>
<Nullable>disable</Nullable>
<Version>$(SparkVersion)</Version>
</PropertyGroup>
<ItemGroup>
@@ -13,8 +14,17 @@
<PackageReference Include="SimMetrics.Net" Version="1.0.5" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\PubSub\PubSub.csproj" />
</ItemGroup>
<Choose>
<When Condition="'$(UseProjectRefs)' == 'true'">
<ItemGroup>
<ProjectReference Include="..\PubSub\PubSub.csproj" />
</ItemGroup>
</When>
<Otherwise>
<ItemGroup>
<PackageReference Include="PubSub" Version="$(SparkVersion)" />
</ItemGroup>
</Otherwise>
</Choose>
</Project>