Skip to content

Commit

Permalink
fix: include database DLL in package (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
skarllot authored Apr 24, 2024
1 parent e93e00e commit e5da42e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@
<ProjectReference Include="..\Expressions.Writing\Expressions.Writing.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<None Include="$(OutputPath)\Raiqub.Expressions.Database.dll" Pack="true" PackagePath="lib/net8.0" Visible="true" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<None Include="$(OutputPath)\Raiqub.Expressions.Database.dll" Pack="true" PackagePath="lib/net6.0" Visible="true" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
<None Include="$(OutputPath)\Raiqub.Expressions.Database.dll" Pack="true" PackagePath="lib/netstandard2.1" Visible="true" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="8.0.4" />
</ItemGroup>
Expand All @@ -45,4 +33,15 @@
<None Include="README.md" Pack="true" PackagePath="." />
</ItemGroup>

<PropertyGroup>
<TargetsForTfmSpecificBuildOutput>
$(TargetsForTfmSpecificBuildOutput);PackReferencedProjectOutputs
</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>
<Target Name="PackReferencedProjectOutputs" DependsOnTargets="BuildOnlySettings;ResolveReferences">
<ItemGroup>
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('PrivateAssets', 'All'))" />
</ItemGroup>
</Target>

</Project>
19 changes: 11 additions & 8 deletions src/Expressions.Marten/Expressions.Marten.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@
<ProjectReference Include="..\Expressions.Writing\Expressions.Writing.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<None Include="$(OutputPath)\Raiqub.Expressions.Database.dll" Pack="true" PackagePath="lib/net8.0" Visible="true" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<None Include="$(OutputPath)\Raiqub.Expressions.Database.dll" Pack="true" PackagePath="lib/net6.0" Visible="true" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Marten" Version="7.8.0" />
</ItemGroup>
Expand All @@ -29,4 +21,15 @@
<None Include="README.md" Pack="true" PackagePath="." />
</ItemGroup>

<PropertyGroup>
<TargetsForTfmSpecificBuildOutput>
$(TargetsForTfmSpecificBuildOutput);PackReferencedProjectOutputs
</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>
<Target Name="PackReferencedProjectOutputs" DependsOnTargets="BuildOnlySettings;ResolveReferences">
<ItemGroup>
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('PrivateAssets', 'All'))" />
</ItemGroup>
</Target>

</Project>

0 comments on commit e5da42e

Please sign in to comment.