2020-01-30 06:40:42 +03:00
|
|
|
|
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
|
|
2013-11-30 23:44:17 +04:00
|
|
|
|
<PropertyGroup>
|
2022-07-02 20:30:31 +03:00
|
|
|
|
<TargetFrameworks>net5;net5-windows;net462</TargetFrameworks>
|
2020-02-09 18:57:24 +03:00
|
|
|
|
<Nullable>enable</Nullable>
|
2020-01-30 06:40:42 +03:00
|
|
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
2022-07-13 05:29:32 +03:00
|
|
|
|
<!-- TODO: Move ClientCreds etc out of NAPS2.Sdk -->
|
2022-07-03 20:54:49 +03:00
|
|
|
|
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
|
2020-01-30 06:40:42 +03:00
|
|
|
|
<RootNamespace>NAPS2</RootNamespace>
|
|
|
|
|
|
|
|
|
|
<Title>NAPS2 (Not Another PDF Scanner 2)</Title>
|
|
|
|
|
<Product>NAPS2 (Not Another PDF Scanner 2)</Product>
|
|
|
|
|
<Copyright>Copyright 2009, 2012-2020 NAPS2 Contributors; Icons from http://www.fatcow.com/free-icons</Copyright>
|
2020-02-09 22:35:28 +03:00
|
|
|
|
<Configurations>Debug;InstallerEXE;DebugLang;InstallerMSI;Standalone</Configurations>
|
2013-11-30 23:44:17 +04:00
|
|
|
|
</PropertyGroup>
|
2020-02-04 02:34:27 +03:00
|
|
|
|
|
2020-01-30 06:40:42 +03:00
|
|
|
|
<Import Project="..\NAPS2.Setup\CommonTargets.targets" />
|
2021-12-17 23:18:20 +03:00
|
|
|
|
<Import Project="..\NAPS2.Setup\SdkUsers.targets" />
|
2020-01-30 06:40:42 +03:00
|
|
|
|
|
2019-03-17 04:42:20 +03:00
|
|
|
|
<PropertyGroup Condition="'$(OS)' != 'Windows_NT'">
|
2020-01-30 06:40:42 +03:00
|
|
|
|
<DefineConstants>NONWINDOWS</DefineConstants>
|
2015-05-07 02:25:35 +03:00
|
|
|
|
</PropertyGroup>
|
2019-03-17 04:42:20 +03:00
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'InstallerEXE|AnyCPU'">
|
2020-01-30 06:40:42 +03:00
|
|
|
|
<DefineConstants>INSTALLER INSTALLER_EXE</DefineConstants>
|
2015-05-07 02:25:35 +03:00
|
|
|
|
</PropertyGroup>
|
2019-03-17 04:42:20 +03:00
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'InstallerMSI|AnyCPU'">
|
2020-01-30 06:40:42 +03:00
|
|
|
|
<DefineConstants>INSTALLER INSTALLER_MSI</DefineConstants>
|
2013-11-30 23:44:17 +04:00
|
|
|
|
</PropertyGroup>
|
2019-03-17 04:42:20 +03:00
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Standalone|AnyCPU'">
|
2020-01-30 06:40:42 +03:00
|
|
|
|
<DefineConstants>STANDALONE</DefineConstants>
|
2013-11-30 23:44:17 +04:00
|
|
|
|
</PropertyGroup>
|
2020-01-30 06:40:42 +03:00
|
|
|
|
|
2013-11-30 23:44:17 +04:00
|
|
|
|
<ItemGroup>
|
2022-07-03 00:38:34 +03:00
|
|
|
|
<PackageReference Include="ZXing.Net.Bindings.Windows.Compatibility" Version="0.16.7" />
|
2013-11-30 23:44:17 +04:00
|
|
|
|
<Reference Include="PdfSharp">
|
2018-11-25 20:37:54 +03:00
|
|
|
|
<HintPath>..\NAPS2.Setup\lib\PdfSharp.dll</HintPath>
|
2013-11-30 23:44:17 +04:00
|
|
|
|
</Reference>
|
2020-01-30 06:40:42 +03:00
|
|
|
|
|
2022-07-03 00:38:34 +03:00
|
|
|
|
<PackageReference Include="Grpc.Tools" Version="2.26.0" PrivateAssets="all" />
|
2022-07-02 23:26:37 +03:00
|
|
|
|
<PackageReference Include="GrpcDotNetNamedPipes" Version="1.4.4" />
|
2021-12-20 05:28:23 +03:00
|
|
|
|
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="6.0.0" />
|
2022-06-20 04:33:00 +03:00
|
|
|
|
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
|
2021-12-19 10:47:45 +03:00
|
|
|
|
<PackageReference Include="NAPS2.Wia" Version="1.0.1" />
|
2022-07-02 20:30:31 +03:00
|
|
|
|
<!-- Hide compatibility warnings for NTwain as it will only be actually used on Windows. -->
|
|
|
|
|
<!-- TODO: Does this actually work if we build a net5 framework-dependent app and try to use Twain? -->
|
|
|
|
|
<PackageReference Include="NTwain" Version="3.7.1" NoWarn="NU1701" />
|
2020-02-16 23:15:52 +03:00
|
|
|
|
<PackageReference Include="Nullable" Version="1.2.0" />
|
2022-07-03 00:38:34 +03:00
|
|
|
|
<!-- We're deliberately using an older version of System.Drawing.Common to include cross-platform support. -->
|
|
|
|
|
<!-- TODO: Eventually we will get rid of this dependency on non-windows and will be able to upgrade. -->
|
|
|
|
|
<PackageReference Include="System.Drawing.Common" Version="5.0.3" />
|
2022-07-02 23:26:37 +03:00
|
|
|
|
<PackageReference Include="System.Collections.Immutable" Version="6.0.0" />
|
2022-06-19 06:48:45 +03:00
|
|
|
|
<PackageReference Include="System.Resources.Extensions" Version="6.0.0" />
|
|
|
|
|
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="6.0.0" />
|
|
|
|
|
<PackageReference Include="System.Text.Encoding.CodePages" Version="6.0.0" />
|
2022-07-02 23:26:37 +03:00
|
|
|
|
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="6.0.0" />
|
2022-06-19 06:48:45 +03:00
|
|
|
|
<PackageReference Include="ZXing.Net" Version="0.16.8" />
|
2013-11-30 23:44:17 +04:00
|
|
|
|
</ItemGroup>
|
2020-01-30 06:40:42 +03:00
|
|
|
|
|
2013-11-30 23:44:17 +04:00
|
|
|
|
<ItemGroup>
|
2020-01-30 06:40:42 +03:00
|
|
|
|
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
2020-02-10 00:00:53 +03:00
|
|
|
|
<_Parameter1>NAPS2.Sdk.Tests</_Parameter1>
|
|
|
|
|
</AssemblyAttribute>
|
|
|
|
|
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
|
|
|
|
<_Parameter1>NAPS2.Lib.Common</_Parameter1>
|
|
|
|
|
</AssemblyAttribute>
|
|
|
|
|
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
|
|
|
|
<_Parameter1>NAPS2.Lib.Tests</_Parameter1>
|
2020-02-02 22:26:30 +03:00
|
|
|
|
</AssemblyAttribute>
|
2022-06-19 03:25:19 +03:00
|
|
|
|
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
|
|
|
|
<_Parameter1>NAPS2.Lib.WinForms</_Parameter1>
|
|
|
|
|
</AssemblyAttribute>
|
2020-02-02 22:26:30 +03:00
|
|
|
|
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
|
|
|
|
<_Parameter1>DynamicProxyGenAssembly2</_Parameter1>
|
2020-01-30 06:40:42 +03:00
|
|
|
|
</AssemblyAttribute>
|
2020-02-04 02:34:27 +03:00
|
|
|
|
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
2020-02-10 00:00:53 +03:00
|
|
|
|
<_Parameter1>NAPS2.Sdk.Network</_Parameter1>
|
2020-02-04 02:34:27 +03:00
|
|
|
|
</AssemblyAttribute>
|
|
|
|
|
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
2020-02-10 00:00:53 +03:00
|
|
|
|
<_Parameter1>NAPS2.Sdk.Network.Tests</_Parameter1>
|
2020-02-04 02:34:27 +03:00
|
|
|
|
</AssemblyAttribute>
|
2020-01-30 06:40:42 +03:00
|
|
|
|
|
|
|
|
|
<Protobuf Include="**/*.proto" Access="Public" />
|
2013-11-30 23:44:17 +04:00
|
|
|
|
</ItemGroup>
|
2020-01-30 06:40:42 +03:00
|
|
|
|
|
2013-11-30 23:44:17 +04:00
|
|
|
|
<ItemGroup>
|
2022-06-19 03:25:19 +03:00
|
|
|
|
<ProjectReference Include="..\NAPS2.Images.Gdi\NAPS2.Images.Gdi.csproj" />
|
|
|
|
|
<ProjectReference Include="..\NAPS2.Images\NAPS2.Images.csproj" />
|
2013-11-30 23:44:17 +04:00
|
|
|
|
</ItemGroup>
|
2020-01-30 06:40:42 +03:00
|
|
|
|
|
2021-12-23 04:45:22 +03:00
|
|
|
|
<ItemGroup>
|
2022-06-19 03:25:19 +03:00
|
|
|
|
<Folder Include="ImportExport\Email\Oauth" />
|
2021-12-23 04:45:22 +03:00
|
|
|
|
</ItemGroup>
|
2022-07-07 04:22:30 +03:00
|
|
|
|
|
|
|
|
|
<ItemGroup Condition="'$(Configuration)' == 'Debug'">
|
|
|
|
|
|
|
|
|
|
<EmbeddedResource Remove="Lang\Resources\SdkResources.*.resx" Condition="'$(Configuration)' == 'Debug'" />
|
|
|
|
|
<EmbeddedResource Update="Lang\Resources\SdkResources.*.resx">
|
|
|
|
|
<DependentUpon>SdkResources.resx</DependentUpon>
|
|
|
|
|
</EmbeddedResource>
|
|
|
|
|
|
|
|
|
|
</ItemGroup>
|
2021-12-23 04:45:22 +03:00
|
|
|
|
|
2013-11-30 23:44:17 +04:00
|
|
|
|
</Project>
|