Files
usbipd-win/Usbipd/Usbipd.csproj
T
Frans van Dorsselaer 4da671fd9f Refactor DIFx
- remove deprecated DIFx
- add driver custom actions
2024-01-30 02:21:33 +01:00

59 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2020 Frans van Dorsselaer
SPDX-License-Identifier: GPL-3.0-only
-->
<Project Sdk="Microsoft.NET.Sdk.Worker">
<PropertyGroup>
<TargetFrameworks>$(MainTargetFramework)</TargetFrameworks>
<OutputType>Exe</OutputType>
<ApplicationManifest>app.manifest</ApplicationManifest>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<IsPublishable>true</IsPublishable>
<PublishProfile>Properties\PublishProfiles\InputForInstaller.pubxml</PublishProfile>
<PublishAot>true</PublishAot>
<CopyOutputSymbolsToPublishDirectory>false</CopyOutputSymbolsToPublishDirectory>
<AssemblyName>usbipd</AssemblyName>
</PropertyGroup>
<ItemGroup>
<Content Include="..\COPYING.md" Link="COPYING.md" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" />
<PackageReference Include="Microsoft.Windows.CsWin32" PrivateAssets="all" />
<PackageReference Include="System.CommandLine" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Usbipd.Automation\Usbipd.Automation.csproj" />
</ItemGroup>
<ItemGroup>
<None Update="wsl\auto-attach.sh;wsl\usbip;WSL\README.md">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<Target Name="RemoveTranslations" BeforeTargets="Build">
<ItemGroup>
<Translations Include="$(OutputPath)\**\System.CommandLine.resources.dll" />
</ItemGroup>
<RemoveDir Directories="@(Translations->DirectoryName())" />
</Target>
<Target Name="RemoveDebug" AfterTargets="Publish">
<ItemGroup>
<DebugFiles Include="$(PublishDir)\**\*.pdb" />
</ItemGroup>
<Delete Files="@(DebugFiles)" />
</Target>
</Project>