mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
145 lines
6.6 KiB
XML
145 lines
6.6 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>WinExe</OutputType>
|
|
<TargetFramework>net48</TargetFramework>
|
|
<UseWindowsForms>true</UseWindowsForms>
|
|
<UseWPF>true</UseWPF>
|
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
|
<StartupObject>Netch.Netch</StartupObject>
|
|
<ApplicationManifest>App.manifest</ApplicationManifest>
|
|
<ApplicationIcon>Resources\Netch.ico</ApplicationIcon>
|
|
<Platforms>x64</Platforms>
|
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
|
<LangVersion>latest</LangVersion>
|
|
<IsPackable>false</IsPackable>
|
|
<Nullable>enable</Nullable>
|
|
<!-- <EnableNETAnalyzers>true</EnableNETAnalyzers>
|
|
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
|
|
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>-->
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
|
<OutputPath>bin\x64\Debug\</OutputPath>
|
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
|
<WarningsAsErrors />
|
|
<NoWarn />
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<NoWarn />
|
|
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
|
<WarningsAsErrors />
|
|
<OutputPath>bin\x64\Release\</OutputPath>
|
|
<DebugType>none</DebugType>
|
|
<DebugSymbols>false</DebugSymbols>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<None Remove=".gitignore" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="HMBSbige.SingleInstance" Version="5.0.0" />
|
|
<PackageReference Include="MaxMind.GeoIP2" Version="4.0.1" />
|
|
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="2.0.66" GeneratePathProperty="true" />
|
|
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
|
|
<PackageReference Include="Nullable.Extended.Analyzer" Version="1.2.4089">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="System.Collections.Immutable" Version="5.0.0" />
|
|
<PackageReference Include="System.Reflection.Metadata" Version="5.0.0" />
|
|
<PackageReference Include="System.Text.Json" Version="5.0.1" />
|
|
<PackageReference Include="TaskScheduler" Version="2.9.1" />
|
|
<PackageReference Include="Vanara.PInvoke.IpHlpApi" Version="3.3.7" />
|
|
<PackageReference Include="Microsoft-WindowsAPICodePack-Shell" Version="1.1.4" />
|
|
<PackageReference Include="Vanara.PInvoke.User32" Version="3.3.7" />
|
|
<PackageReference Include="WindowsFirewallHelper" Version="2.0.4.70-beta2" />
|
|
<PackageReference Include="WindowsProxy" Version="5.0.3" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
|
|
<!-- .NET Framework -->
|
|
<PackageReference Include="ILMerge" Version="3.0.41" />
|
|
<Reference Include="System.Management" />
|
|
<Reference Include="System.ServiceProcess" />
|
|
<Reference Include="System.Web" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' != 'net'">
|
|
<!-- .NET Core -->
|
|
<PackageReference Include="System.Management" Version="5.0.0" />
|
|
<PackageReference Include="System.ServiceProcess.ServiceController" Version="5.0.0" />
|
|
<PackageReference Include="System.Text.Encoding.CodePages" Version="5.0.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\Interop.nfapinet\Interop.nfapinet.csproj" />
|
|
<ProjectReference Include="..\SearchComboBox\SearchComboBox.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Visible="false" Include="..\translations\i18n\**" LinkBase="i18n" CopyToPublishDirectory="PreserveNewest" CopyToOutputDirectory="PreserveNewest" />
|
|
<None Visible="false" Include="..\modes\mode\**" LinkBase="mode" CopyToPublishDirectory="PreserveNewest" CopyToOutputDirectory="PreserveNewest" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Remove="bin\**" />
|
|
<EmbeddedResource Remove="bin\**" />
|
|
<None Remove="bin\**" />
|
|
<Page Remove="bin\**" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Update="Properties\Resources.Designer.cs">
|
|
<DesignTime>True</DesignTime>
|
|
<AutoGen>True</AutoGen>
|
|
<DependentUpon>Resources.resx</DependentUpon>
|
|
</Compile>
|
|
<Compile Update="Properties\Settings.Designer.cs">
|
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
|
<AutoGen>True</AutoGen>
|
|
<DependentUpon>Settings.settings</DependentUpon>
|
|
</Compile>
|
|
<Compile Update="Forms\Mode\Route.cs">
|
|
<SubType>Form</SubType>
|
|
</Compile>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<EmbeddedResource Update="Properties\Resources.resx">
|
|
<Generator>ResXFileCodeGenerator</Generator>
|
|
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
|
</EmbeddedResource>
|
|
<EmbeddedResource Remove="Forms\LogForm.resx" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Update="Properties\Settings.settings">
|
|
<Generator>SettingsSingleFileGenerator</Generator>
|
|
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
|
</None>
|
|
</ItemGroup>
|
|
<ProjectExtensions>
|
|
<VisualStudio>
|
|
<UserProperties />
|
|
</VisualStudio>
|
|
</ProjectExtensions>
|
|
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
|
<Exec Command="set TargetFramework=$(TargetFramework)
set Configuration=$(Configuration)
set ILMergeConsolePath=$(ILMergeConsolePath)
set TargetDir=$(TargetDir)
set SolutionDir=$(SolutionDir)
call $(ProjectDir)PostBuild.bat" />
|
|
</Target>
|
|
|
|
<Target Condition="'$(PublishSingleFile)' == 'true'" AfterTargets="_ComputeFilesToBundle" Name="RemoveDupeAssemblies">
|
|
<ItemGroup>
|
|
<_FilesToBundle Remove="$(PkgMicrosoft_Diagnostics_Tracing_TraceEvent)\lib\netstandard1.6\Dia2Lib.dll" />
|
|
<_FilesToBundle Remove="$(PkgMicrosoft_Diagnostics_Tracing_TraceEvent)\lib\netstandard1.6\OSExtensions.dll" />
|
|
<_FilesToBundle Remove="$(PkgMicrosoft_Diagnostics_Tracing_TraceEvent)\lib\netstandard1.6\TraceReloggerLib.dll" />
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
</Project>
|