<Project Sdk="Microsoft.NET.Sdk">

	<PropertyGroup>
		<OutputType>WinExe</OutputType>
		<TargetFramework>net6.0-windows</TargetFramework>
		<Nullable>enable</Nullable>
		<UseWPF>true</UseWPF>  
		<ApplicationManifest>app.manifest</ApplicationManifest>
		<ImplicitUsings>enable</ImplicitUsings>
		<ApplicationIcon>v2rayN.ico</ApplicationIcon>
		<Copyright>Copyright © 2017-2023 (GPLv3)</Copyright>
		<FileVersion>6.6</FileVersion>
	</PropertyGroup>

	<ItemGroup>		
		<PackageReference Include="MaterialDesignThemes" Version="4.6.1" />
		<PackageReference Include="Hardcodet.NotifyIcon.Wpf" Version="1.1.0" />		 
		<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
		<PackageReference Include="NHotkey" Version="2.1.0" />
		<PackageReference Include="NHotkey.Wpf" Version="2.1.0" />
		<PackageReference Include="QRCoder.Xaml" Version="1.4.3" />
		<PackageReference Include="sqlite-net-pcl" Version="1.8.116" />
		<PackageReference Include="TaskScheduler" Version="2.10.1" /> 
		<PackageReference Include="ZXing.Net.Bindings.Windows.Compatibility" Version="0.16.10" />
		<PackageReference Include="ReactiveUI.Fody" Version="18.4.1" />
		<PackageReference Include="ReactiveUI.Validation" Version="3.0.22" />
		<PackageReference Include="ReactiveUI.WPF" Version="18.4.1" />
		<PackageReference Include="Splat.NLog" Version="14.6.1" />
		<PackageReference Include="System.Reactive" Version="5.0.0" />
	</ItemGroup>
	
	<ItemGroup>       
        <AdditionalFiles Include="app.manifest" />       
        <EmbeddedResource Include="Sample\tun_singbox">
			<CopyToOutputDirectory>Never</CopyToOutputDirectory>
		</EmbeddedResource>
		<EmbeddedResource Include="Sample\custom_routing_black">
          <CopyToOutputDirectory>Never</CopyToOutputDirectory>
        </EmbeddedResource>  
        <EmbeddedResource Include="Sample\custom_routing_global">
          <CopyToOutputDirectory>Never</CopyToOutputDirectory>
        </EmbeddedResource>  
        <EmbeddedResource Include="Sample\custom_routing_locked">
          <CopyToOutputDirectory>Never</CopyToOutputDirectory>
        </EmbeddedResource>  
        <EmbeddedResource Include="Sample\custom_routing_rules">
          <CopyToOutputDirectory>Never</CopyToOutputDirectory>
        </EmbeddedResource>  
        <EmbeddedResource Include="Sample\custom_routing_white">
          <CopyToOutputDirectory>Never</CopyToOutputDirectory>
        </EmbeddedResource>  
        <EmbeddedResource Include="Sample\SampleClientConfig">
          <CopyToOutputDirectory>Never</CopyToOutputDirectory>
        </EmbeddedResource>  
        <EmbeddedResource Include="Sample\SampleHttprequest">
          <CopyToOutputDirectory>Never</CopyToOutputDirectory>
        </EmbeddedResource>  
        <EmbeddedResource Include="Sample\SampleHttpresponse">
          <CopyToOutputDirectory>Never</CopyToOutputDirectory>
        </EmbeddedResource>  
        <EmbeddedResource Include="Sample\SampleInbound">
          <CopyToOutputDirectory>Never</CopyToOutputDirectory>
        </EmbeddedResource>  
        <EmbeddedResource Include="Sample\SampleServerConfig">
          <CopyToOutputDirectory>Never</CopyToOutputDirectory>
        </EmbeddedResource>
        <EmbeddedResource Include="v2rayN.ico">
          <CopyToOutputDirectory>Never</CopyToOutputDirectory>
        </EmbeddedResource>
        <Resource Include="Resources\NotifyIcon1.ico" />
        <Resource Include="Resources\NotifyIcon2.ico" />
        <Resource Include="Resources\NotifyIcon3.ico" />
        <Resource Include="v2rayN.ico">
          <CopyToOutputDirectory>Always</CopyToOutputDirectory>
        </Resource>
    </ItemGroup> 	 
	
	<ItemGroup>
	  <ProjectReference Include="..\PacLib\PacLib.csproj" />
	  <ProjectReference Include="..\ProtosLib\ProtosLib.csproj" />
	</ItemGroup>

	<ItemGroup>
		<Compile Update="Resx\ResUI.Designer.cs">
			<DesignTime>True</DesignTime>
			<AutoGen>True</AutoGen>
			<DependentUpon>ResUI.resx</DependentUpon>
		</Compile>		
	</ItemGroup>

	<ItemGroup>
	  <EmbeddedResource Update="Resx\ResUI.resx">
	    <Generator>PublicResXFileCodeGenerator</Generator>
	    <LastGenOutput>ResUI.Designer.cs</LastGenOutput>
	  </EmbeddedResource>
	  <EmbeddedResource Update="Resx\ResUI.zh-Hans.resx">
	    <Generator>PublicResXFileCodeGenerator</Generator>
	  </EmbeddedResource>
	  <EmbeddedResource Update="Resx\ResUI.fa-Ir.resx">
	    <Generator>PublicResXFileCodeGenerator</Generator>
	  </EmbeddedResource>
	</ItemGroup>

	<ItemGroup>
	  <None Update="Resources\Fonts\微软雅黑-Regular.ttf">
	    <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
	  </None>
	</ItemGroup>

</Project>
