naps2/NAPS2.Sdk/NAPS2.Sdk.csproj

111 lines
5.2 KiB
XML
Raw Normal View History

2020-01-30 06:40:42 +03:00
<Project Sdk="Microsoft.NET.Sdk">
<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-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>
</PropertyGroup>
2020-01-30 06:40:42 +03:00
<Import Project="..\NAPS2.Setup\CommonTargets.targets" />
<Import Project="..\NAPS2.Setup\SdkUsers.targets" />
2020-01-30 06:40:42 +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>
<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>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'InstallerMSI|AnyCPU'">
2020-01-30 06:40:42 +03:00
<DefineConstants>INSTALLER INSTALLER_MSI</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Standalone|AnyCPU'">
2020-01-30 06:40:42 +03:00
<DefineConstants>STANDALONE</DefineConstants>
</PropertyGroup>
2020-01-30 06:40:42 +03:00
<PropertyGroup>
<PreBuildEvent Condition="'$(OS)' == 'Windows_NT'">If Not Exist $(ProjectDir)google.credentials.json (
echo {} &gt; $(ProjectDir)google.credentials.json
)
If Not Exist $(ProjectDir)microsoft.credentials.json (
echo { client_id: null, client_secret: null } &gt; $(ProjectDir)microsoft.credentials.json
)</PreBuildEvent>
</PropertyGroup>
2020-01-30 06:40:42 +03:00
<ItemGroup>
<PackageReference Include="ZXing.Net.Bindings.Windows.Compatibility" Version="0.16.7" />
<Reference Include="PdfSharp">
2018-11-25 20:37:54 +03:00
<HintPath>..\NAPS2.Setup\lib\PdfSharp.dll</HintPath>
</Reference>
2020-01-30 06:40:42 +03:00
<PackageReference Include="Grpc.Tools" Version="2.26.0" PrivateAssets="all" />
<PackageReference Include="GrpcDotNetNamedPipes" Version="1.4.4" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="6.0.0" />
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
<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" />
<!-- 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" />
<PackageReference Include="System.Collections.Immutable" Version="6.0.0" />
<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" />
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="6.0.0" />
<PackageReference Include="ZXing.Net" Version="0.16.8" />
</ItemGroup>
2020-01-30 06:40:42 +03: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>
<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>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
2020-02-10 00:00:53 +03:00
<_Parameter1>NAPS2.Sdk.Network</_Parameter1>
</AssemblyAttribute>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
2020-02-10 00:00:53 +03:00
<_Parameter1>NAPS2.Sdk.Network.Tests</_Parameter1>
</AssemblyAttribute>
2020-01-30 06:40:42 +03:00
<Protobuf Include="**/*.proto" Access="Public" />
</ItemGroup>
2020-01-30 06:40:42 +03:00
<ItemGroup>
<ProjectReference Include="..\NAPS2.Images.Gdi\NAPS2.Images.Gdi.csproj" />
<ProjectReference Include="..\NAPS2.Images\NAPS2.Images.csproj" />
</ItemGroup>
2020-01-30 06:40:42 +03:00
<ItemGroup>
<Folder Include="ImportExport\Email\Oauth" />
</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>
</Project>