Skip to content

Commit a71a00d

Browse files
authored
Merge pull request #2714 from Cratis/include-infra-in-ref
Add target to include Infrastructure DLL in ref folder for packaging fix
2 parents 899df4f + b6fa35f commit a71a00d

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

Directory.Packages.props

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
<!-- Cratis -->
1515
<PackageVersion Include="Cratis.Fundamentals" Version="7.7.1" />
1616
<PackageVersion Include="Cratis.Metrics.Roslyn" Version="7.7.1" />
17-
<PackageVersion Include="Cratis.Arc" Version="19.6.6" />
18-
<PackageVersion Include="Cratis.Arc.Core" Version="19.6.6" />
19-
<PackageVersion Include="Cratis.Arc.MongoDB" Version="19.6.6" />
20-
<PackageVersion Include="Cratis.Arc.ProxyGenerator.Build" Version="19.6.6" />
21-
<PackageVersion Include="Cratis.Arc.Swagger" Version="19.6.6" />
17+
<PackageVersion Include="Cratis.Arc" Version="19.6.7" />
18+
<PackageVersion Include="Cratis.Arc.Core" Version="19.6.7" />
19+
<PackageVersion Include="Cratis.Arc.MongoDB" Version="19.6.7" />
20+
<PackageVersion Include="Cratis.Arc.ProxyGenerator.Build" Version="19.6.7" />
21+
<PackageVersion Include="Cratis.Arc.Swagger" Version="19.6.7" />
2222
<!-- Microsoft -->
2323
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="10.0.103" />
2424
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.3" />

Source/Clients/DotNET/DotNET.csproj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,18 @@
4848
<ItemGroup>
4949
<PrivatePackageAssembly Include="$(ContractsImplementationAssembly)" />
5050
</ItemGroup>
51+
52+
<!--
53+
Packaging fix: Cratis.Chronicle.Infrastructure.dll ships in lib/ because of the PrivateAssets=all
54+
ProjectReference above, but the SDK only emits Cratis.Chronicle.dll in ref/. Consumers that compile
55+
against the ref assembly fail with CS0012 when the compiler encounters types from Infrastructure
56+
(e.g. PropertyPath used on IReadModelPropertiesBuilder.Set). Including the dll in ref/ as well fixes
57+
this without changing the runtime behaviour.
58+
-->
59+
<Target Name="IncludeInfrastructureInRefFolder" BeforeTargets="_GetTfmSpecificContentForPackage">
60+
<ItemGroup>
61+
<TfmSpecificPackageFile Include="$(TargetDir)Cratis.Chronicle.Infrastructure.dll"
62+
PackagePath="ref/$(TargetFramework)/" />
63+
</ItemGroup>
64+
</Target>
5165
</Project>

0 commit comments

Comments
 (0)