Skip to content

Commit

Permalink
fix: or-2583 exclude paket.template from referenced projects when pub…
Browse files Browse the repository at this point in the history
…lishing
  • Loading branch information
emalfroy committed Jan 22, 2025
1 parent 8f01579 commit 3385112
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<ExcludeFromPublish Include="**/paket.template" />
</ItemGroup>

<Target Name="RemovePaketTemplateFromPublish" BeforeTargets="Publish">
<ItemGroup>
<ResolvedFileToPublish Remove="**/paket.template" />
</ItemGroup>
</Target>
<ItemGroup>
<ProjectReference Include="..\AssociationRegistry.KboMutations\AssociationRegistry.KboMutations.csproj" />
<ProjectReference Include="..\AssociationRegistry.Magda\AssociationRegistry.Magda.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@
</ItemGroup>

<ItemGroup>
<Content Include="paket.template" CopyToOutputDirectory="Always" Condition=""/>
<Content Include="paket.template">
<CopyToOutputDirectory Condition="'$(PublishDir)' == ''">Always</CopyToOutputDirectory>
<ExcludeFromPublish>true</ExcludeFromPublish>
</Content>
</ItemGroup>

<ItemGroup>
Expand Down
9 changes: 4 additions & 5 deletions src/AssociationRegistry/AssociationRegistry.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,10 @@
</ItemGroup>

<ItemGroup>
<Content Include="paket.template" CopyToOutputDirectory="Always"/>
</ItemGroup>

<ItemGroup>
<Folder Include="Grar\AdresMatch\" />
<Content Include="paket.template">
<CopyToOutputDirectory Condition="'$(PublishDir)' == ''">Always</CopyToOutputDirectory>
<ExcludeFromPublish>true</ExcludeFromPublish>
</Content>
</ItemGroup>

<Import Project="..\..\.paket\Paket.Restore.targets"/>
Expand Down

0 comments on commit 3385112

Please sign in to comment.