This PR adds settings to choose a Power Mode provider, which will detect if the system is in a paused/suspended state and avoid starting tasks while being suspended. This currently only works for Windows, where the previous inplementation is named `NET` (for .NET) and the new mode is named `Native` and using the Windows documented approach with a hidden window that listens for `WM_POWERBROADCAST` messages. The default is `Native` but can now also be disabled by choosing the `None` provider.
22 lines
857 B
XML
22 lines
857 B
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net8.0-windows7.0</TargetFramework>
|
|
<Copyright>Copyright © 2025 Team Duplicati, MIT license</Copyright>
|
|
<RootNamespace>Duplicati.Library.WindowsModules</RootNamespace>
|
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Vanara.PInvoke.VssApi" Version="4.1.6" />
|
|
<PackageReference Include="Vanara.PInvoke.Kernel32" Version="4.1.6" />
|
|
<PackageReference Include="Vanara.PInvoke.Security" Version="4.1.6" />
|
|
<PackageReference Include="Vanara.PInvoke.User32" Version="4.1.6" />
|
|
<PackageReference Include="Vanara.Security" Version="4.1.6" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\Interface\Duplicati.Library.Interface.csproj" />
|
|
</ItemGroup>
|
|
</Project>
|