foxygit / digitalskrivare_merge Log in
commit e2a9710357db96536d902957800427fe3bd187ca
Author:     Jens Kristoffersson <jens.kristoffersson.se@gmail.com>
AuthorDate: Wed Sep 2 09:13:06 2026 +0200
Commit:     Jens Kristoffersson <jens.kristoffersson.se@gmail.com>
CommitDate: Wed Sep 2 09:13:06 2026 +0200

    Kopiera tools/SumatraPDF.exe till app-outputen

    Appen resolvar sumatraPdfPath relativt exe-mappen; utan detta hittades
    den bara vid full paketering, inte vid `dotnet run`. Kopieras nu om
    binären finns i repo-tools/ (Condition=Exists), vilket också speglar
    Fas 4-layouten.

    Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
---
 src/Remiss.App/Remiss.App.csproj | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/Remiss.App/Remiss.App.csproj b/src/Remiss.App/Remiss.App.csproj
index 446c035..bb950cb 100644
--- a/src/Remiss.App/Remiss.App.csproj
+++ b/src/Remiss.App/Remiss.App.csproj
@@ -23,6 +23,12 @@
     <None Include="..\..\config\mottagningar.json" Link="mottagningar.json">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </None>
+    <!-- Buntad binär (checkas ej in, se tools/README.md). Kopieras om den finns
+         så att `dotnet run` fungerar och layouten matchar Fas 4-paketeringen. -->
+    <None Include="..\..\tools\SumatraPDF.exe" Link="tools\SumatraPDF.exe"
+          Condition="Exists('..\..\tools\SumatraPDF.exe')">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </None>
   </ItemGroup>

 </Project>