Skip to content

Commit b390b7a

Browse files
committed
Use the debug version of Chisel for the Mongo and SqlClient samples
Don't actually publish this on the main branch since it's often painful to use because of transient errors where you have to rebuild / clean / rebuild many times to get it working.
1 parent 9e63d4e commit b390b7a

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

samples/MongoDbSample/MongoDbSample.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@
77
<Nullable>enable</Nullable>
88
</PropertyGroup>
99

10-
<ItemGroup>
10+
<Import Project="../../src/Chisel/build/Chisel.props" Condition="$(Configuration) == 'Debug'" />
11+
<Import Project="../../src/Chisel/build/Chisel.targets" Condition="$(Configuration) == 'Debug'" />
12+
13+
<ItemGroup Condition="$(Configuration) != 'Debug'">
1114
<PackageReference Include="Chisel" Version="1.1.2" PrivateAssets="all" />
15+
</ItemGroup>
16+
17+
<ItemGroup>
1218
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.0" />
1319
<PackageReference Include="MongoDB.Driver" Version="[2.30.0,3.0.0)" />
1420
<PackageReference Include="Testcontainers.MongoDb" Version="4.8.1" />

samples/SqlClientSample/SqlClientSample.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@
1212
<MicrosoftDataSqlClientVersion>6.1.3</MicrosoftDataSqlClientVersion>
1313
</PropertyGroup>
1414

15-
<ItemGroup>
15+
<Import Project="../../src/Chisel/build/Chisel.props" Condition="$(Configuration) == 'Debug'" />
16+
<Import Project="../../src/Chisel/build/Chisel.targets" Condition="$(Configuration) == 'Debug'" />
17+
18+
<ItemGroup Condition="$(Configuration) != 'Debug'">
1619
<PackageReference Include="Chisel" Version="1.1.2" PrivateAssets="all" />
20+
</ItemGroup>
21+
22+
<ItemGroup>
1723
<PackageReference Include="Microsoft.Data.SqlClient" Version="$(MicrosoftDataSqlClientVersion)" />
1824
<PackageReference Include="System.Memory.Data" Version="10.0.0" />
1925
</ItemGroup>

0 commit comments

Comments
 (0)