mirror of
https://github.com/duplicati/duplicati.git
synced 2025-11-27 19:10:29 +08:00
37 lines
1.5 KiB
XML
37 lines
1.5 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>WinExe</OutputType>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<Description>The Duplicati Tray implementation</Description>
|
|
<ApplicationIcon>..\..\Duplicati\GUI\Duplicati.GUI.TrayIcon\Duplicati.ico</ApplicationIcon>
|
|
<Copyright>Copyright © 2025 Team Duplicati, MIT license</Copyright>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<!-- If we target Windows, or running debug on Windows -->
|
|
<_CopyWinModules Condition="
|
|
( '$(RuntimeIdentifier)' != '' And
|
|
$([System.String]::Copy('$(RuntimeIdentifier)').StartsWith('win')) )
|
|
Or
|
|
( '$(RuntimeIdentifier)' == '' And
|
|
'$(OS)' == 'Windows_NT' And
|
|
'$(Configuration)' == 'Debug' )
|
|
">True</_CopyWinModules>
|
|
</PropertyGroup>
|
|
|
|
<!-- Copy in WindowsModules for easier debug, or if we are targeting Windows -->
|
|
<Target Name="CopyWindowsModulesRuntime" AfterTargets="Build" Condition="'$(_CopyWinModules)' == 'True'">
|
|
<ItemGroup>
|
|
<_WinMods Include="..\..\Duplicati\Library\WindowsModules\bin\$(Configuration)\net10.0-windows7.0\**\*.dll" />
|
|
</ItemGroup>
|
|
|
|
<Copy SourceFiles="@(_WinMods)" DestinationFolder="$(OutDir)" SkipUnchangedFiles="true" />
|
|
</Target>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\Duplicati\GUI\Duplicati.GUI.TrayIcon\Duplicati.GUI.TrayIcon.csproj" />
|
|
<ProjectReference Include="..\..\Duplicati\Library\Crashlog\Duplicati.Library.Crashlog.csproj" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|