-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProjectReferences.props
More file actions
37 lines (34 loc) · 2.65 KB
/
Copy pathProjectReferences.props
File metadata and controls
37 lines (34 loc) · 2.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<Project>
<!-- This file is imported ONLY when building the SampleApp as part of the main
Ploch.Data solution, to validate that sample code compiles against the current
library source. It replaces Ploch.Data NuGet PackageReferences with ProjectReferences.
Triggered by: dotnet build -p:UsePlochProjectReferences=true
See .claude/rules/sample-app.md for details. -->
<!-- Remove all Ploch.Data PackageReferences (they will be replaced by ProjectReferences) -->
<ItemGroup>
<PackageReference Remove="Ploch.Data.Model" />
<PackageReference Remove="Ploch.Data.EFCore" />
<PackageReference Remove="Ploch.Data.EFCore.SqLite" />
<PackageReference Remove="Ploch.Data.EFCore.SqlServer" />
<PackageReference Remove="Ploch.Data.GenericRepository.EFCore" />
<!-- Only one of the DI packages can be referenced at a time (they share the same
namespace and method signatures). Remove both, but only add the one the SampleApp
actually uses as a ProjectReference below. -->
<PackageReference Remove="Ploch.Data.GenericRepository.EFCore.SqLite" />
<PackageReference Remove="Ploch.Data.GenericRepository.EFCore.SqlServer" />
<PackageReference Remove="Ploch.Data.GenericRepository.EFCore.IntegrationTesting" />
</ItemGroup>
<!-- Add ProjectReferences to the library source projects.
Paths are anchored to this file's location (samples/SampleApp/) via MSBuildThisFileDirectory. -->
<ItemGroup>
<ProjectReference Include="$(MSBuildThisFileDirectory)..\..\src\Data.Model\Ploch.Data.Model.csproj" />
<ProjectReference Include="$(MSBuildThisFileDirectory)..\..\src\Data.EFCore\Ploch.Data.EFCore.csproj" />
<ProjectReference Include="$(MSBuildThisFileDirectory)..\..\src\Data.EFCore.SqLite\Ploch.Data.EFCore.SqLite.csproj" />
<ProjectReference Include="$(MSBuildThisFileDirectory)..\..\src\Data.EFCore.SqlServer\Ploch.Data.EFCore.SqlServer.csproj" />
<ProjectReference Include="$(MSBuildThisFileDirectory)..\..\src\Data.GenericRepository\Data.GenericRepository.EFCore\Ploch.Data.GenericRepository.EFCore.csproj" />
<!-- Only add the SqLite DI project — the SampleApp uses SQLite. Adding both would
cause an ambiguity error because they share the same namespace and method names. -->
<ProjectReference Include="$(MSBuildThisFileDirectory)..\..\src\Data.GenericRepository\Data.GenericRepository.EFCore.SqLite\Ploch.Data.GenericRepository.EFCore.SqLite.csproj" />
<ProjectReference Include="$(MSBuildThisFileDirectory)..\..\src\Data.GenericRepository\Data.GenericRepository.EFCore.IntegrationTesting\Ploch.Data.GenericRepository.EFCore.IntegrationTesting.csproj" />
</ItemGroup>
</Project>