2022-08-21 03:50:38 +03:00
|
|
|
|
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
|
|
|
|
|
|
<PropertyGroup>
|
2023-11-18 22:43:50 +03:00
|
|
|
|
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('Linux'))">net8;net462</TargetFrameworks>
|
|
|
|
|
<TargetFrameworks Condition="!$([MSBuild]::IsOSPlatform('Linux'))">net8;net8-macos10.15;net462</TargetFrameworks>
|
2022-08-21 03:50:38 +03:00
|
|
|
|
<Nullable>enable</Nullable>
|
|
|
|
|
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
|
|
|
|
|
<RootNamespace>NAPS2</RootNamespace>
|
|
|
|
|
|
2022-09-11 20:50:38 +03:00
|
|
|
|
<Title>NAPS2 - Not Another PDF Scanner</Title>
|
|
|
|
|
<Product>NAPS2 - Not Another PDF Scanner</Product>
|
2023-01-02 01:24:21 +03:00
|
|
|
|
<Configurations>Debug;Release;DebugLang;Release-Msi;Release-Zip</Configurations>
|
2022-08-21 03:50:38 +03:00
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
2022-12-20 01:17:28 +03:00
|
|
|
|
<Import Project="..\NAPS2.Setup\targets\CommonTargets.targets" />
|
|
|
|
|
<Import Project="..\NAPS2.Setup\targets\LibUsers.targets" />
|
2022-08-21 03:50:38 +03:00
|
|
|
|
|
2023-11-18 22:43:50 +03:00
|
|
|
|
<PropertyGroup Condition="'$(TargetFramework)' == 'net8-macos10.15'">
|
2022-09-25 03:52:55 +03:00
|
|
|
|
<DefineConstants>MAC</DefineConstants>
|
2023-01-02 01:24:21 +03:00
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<PropertyGroup Condition="'$(Configuration)' == 'Release-Msi'">
|
2023-01-02 01:34:27 +03:00
|
|
|
|
<DefineConstants>$(DefineConstants);MSI</DefineConstants>
|
2023-01-02 01:24:21 +03:00
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<PropertyGroup Condition="'$(Configuration)' == 'Release-Zip'">
|
2023-01-02 01:34:27 +03:00
|
|
|
|
<DefineConstants>$(DefineConstants);ZIP</DefineConstants>
|
2023-03-09 22:34:36 +03:00
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<PropertyGroup Condition="'$(AddDebugConstant)' == '1'">
|
|
|
|
|
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
|
2022-09-25 03:52:55 +03:00
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
2022-08-21 03:50:38 +03:00
|
|
|
|
<ItemGroup>
|
|
|
|
|
<ProjectReference Include="..\NAPS2.Sdk\NAPS2.Sdk.csproj" />
|
2023-11-28 07:17:03 +03:00
|
|
|
|
<ProjectReference Include="..\NAPS2.Escl.Server\NAPS2.Escl.Server.csproj" />
|
2024-03-20 03:01:32 +03:00
|
|
|
|
<PackageReference Include="Autofac" Version="8.0.0" />
|
2023-03-26 04:06:25 +03:00
|
|
|
|
<PackageReference Include="Ben.Demystifier" Version="0.4.1" />
|
2022-08-21 03:50:38 +03:00
|
|
|
|
<PackageReference Include="CommandLineParser" Version="2.9.1" />
|
2024-03-24 10:03:54 +03:00
|
|
|
|
<PackageReference Include="MimeKitLite" Version="4.4.0" />
|
2023-11-26 00:41:29 +03:00
|
|
|
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
2024-03-20 03:01:32 +03:00
|
|
|
|
<PackageReference Include="NLog" Version="5.2.8" />
|
2024-03-16 04:48:51 +03:00
|
|
|
|
<PackageReference Include="Eto.Forms" Version="2.8.3" />
|
2024-03-20 03:01:32 +03:00
|
|
|
|
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.8" />
|
2023-11-26 00:41:29 +03:00
|
|
|
|
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="8.0.0" />
|
2022-08-21 03:50:38 +03:00
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
|
|
|
|
<_Parameter1>NAPS2.Lib.Tests</_Parameter1>
|
|
|
|
|
</AssemblyAttribute>
|
|
|
|
|
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
|
|
|
|
<_Parameter1>NAPS2.Lib.WinForms</_Parameter1>
|
|
|
|
|
</AssemblyAttribute>
|
2022-08-22 04:03:12 +03:00
|
|
|
|
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
|
|
|
|
<_Parameter1>NAPS2.Lib.Mac</_Parameter1>
|
|
|
|
|
</AssemblyAttribute>
|
2022-09-30 09:20:23 +03:00
|
|
|
|
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
|
|
|
|
<_Parameter1>NAPS2.Lib.Gtk</_Parameter1>
|
|
|
|
|
</AssemblyAttribute>
|
2022-08-21 03:50:38 +03:00
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
2022-11-02 23:13:47 +03:00
|
|
|
|
<ItemGroup>
|
2022-08-21 03:50:38 +03:00
|
|
|
|
|
|
|
|
|
<EmbeddedResource Remove="Lang\Resources\SettingsResources.*.resx" Condition="'$(Configuration)' == 'Debug'" />
|
2022-11-02 23:13:47 +03:00
|
|
|
|
<EmbeddedResource Include="Lang\Resources\SettingsResources.fr.resx" Condition="'$(Configuration)' == 'Debug'" />
|
|
|
|
|
<EmbeddedResource Include="Lang\Resources\SettingsResources.he.resx" Condition="'$(Configuration)' == 'Debug'" />
|
2022-11-13 22:09:22 +03:00
|
|
|
|
<EmbeddedResource Include="Lang\Resources\SettingsResources.pt-BR.resx" Condition="'$(Configuration)' == 'Debug'" />
|
2022-08-21 03:50:38 +03:00
|
|
|
|
<EmbeddedResource Update="Lang\Resources\SettingsResources.*.resx">
|
|
|
|
|
<DependentUpon>SettingsResources.resx</DependentUpon>
|
|
|
|
|
</EmbeddedResource>
|
|
|
|
|
|
|
|
|
|
<EmbeddedResource Remove="Lang\Resources\MiscResources.*.resx" Condition="'$(Configuration)' == 'Debug'" />
|
2022-11-02 23:13:47 +03:00
|
|
|
|
<EmbeddedResource Include="Lang\Resources\MiscResources.fr.resx" Condition="'$(Configuration)' == 'Debug'" />
|
|
|
|
|
<EmbeddedResource Include="Lang\Resources\MiscResources.he.resx" Condition="'$(Configuration)' == 'Debug'" />
|
2022-11-13 22:09:22 +03:00
|
|
|
|
<EmbeddedResource Include="Lang\Resources\MiscResources.pt-BR.resx" Condition="'$(Configuration)' == 'Debug'" />
|
2022-08-21 03:50:38 +03:00
|
|
|
|
<EmbeddedResource Update="Lang\Resources\MiscResources.*.resx">
|
|
|
|
|
<DependentUpon>MiscResources.resx</DependentUpon>
|
|
|
|
|
</EmbeddedResource>
|
|
|
|
|
|
2022-11-02 23:13:47 +03:00
|
|
|
|
<EmbeddedResource Remove="Lang\Resources\UiStrings.*.resx" Condition="'$(Configuration)' == 'Debug'" />
|
|
|
|
|
<EmbeddedResource Include="Lang\Resources\UiStrings.fr.resx" Condition="'$(Configuration)' == 'Debug'" />
|
|
|
|
|
<EmbeddedResource Include="Lang\Resources\UiStrings.he.resx" Condition="'$(Configuration)' == 'Debug'" />
|
2022-11-13 22:09:22 +03:00
|
|
|
|
<EmbeddedResource Include="Lang\Resources\UiStrings.pt-BR.resx" Condition="'$(Configuration)' == 'Debug'" />
|
2022-11-02 23:13:47 +03:00
|
|
|
|
<EmbeddedResource Update="Lang\Resources\UiStrings.*.resx">
|
|
|
|
|
<DependentUpon>UiStrings.resx</DependentUpon>
|
|
|
|
|
</EmbeddedResource>
|
|
|
|
|
|
2022-08-21 03:50:38 +03:00
|
|
|
|
<EmbeddedResource Update="**/*.resx">
|
|
|
|
|
<Generator>ResXFileCodeGenerator</Generator>
|
|
|
|
|
</EmbeddedResource>
|
|
|
|
|
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
This is a weird pattern and there's probably a better way to do it, but in order to have optional build files:
|
|
|
|
|
1. Have two resource files with similar names (so they generate the same class name, "ClientCreds_")
|
|
|
|
|
2. Have one resource file reference the optional build files, the other a placeholder build file
|
|
|
|
|
3. Conditionally exclude them from the build based on whether the optional files exist
|
|
|
|
|
-->
|
|
|
|
|
<ItemGroup Condition="Exists('google.credentials.json') and Exists('microsoft.credentials.json')">
|
|
|
|
|
<EmbeddedResource Remove="ClientCreds-.resx" />
|
|
|
|
|
<Compile Remove="ClientCreds-.Designer.cs" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
<ItemGroup Condition="!Exists('google.credentials.json') or !Exists('microsoft.credentials.json')">
|
|
|
|
|
<EmbeddedResource Remove="ClientCreds_.resx" />
|
|
|
|
|
<Compile Remove="ClientCreds_.Designer.cs" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
</Project>
|