BlockPageApp.csproj 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <TargetFramework>net8.0</TargetFramework>
  4. <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
  5. <Version>6.0.1</Version>
  6. <IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
  7. <Company>Technitium</Company>
  8. <Product>Technitium DNS Server</Product>
  9. <Authors>Shreyas Zare</Authors>
  10. <AssemblyName>BlockPageApp</AssemblyName>
  11. <RootNamespace>BlockPage</RootNamespace>
  12. <PackageProjectUrl>https://technitium.com/dns/</PackageProjectUrl>
  13. <RepositoryUrl>https://github.com/TechnitiumSoftware/DnsServer</RepositoryUrl>
  14. <Description>Serves a block page from a built-in web server that can be displayed to the end user when a website is blocked by the DNS server.\n\nNote! You need to manually set the Blocking Type as Custom Address in the blocking settings and configure the current server's IP address as Custom Blocking Addresses for the block page to be served to the users. Use a PKCS #12 certificate (.pfx or .p12) for enabling HTTPS support. Enabling HTTPS support will show certificate error to the user which is expected and the user will have to proceed ignoring the certificate error to be able to see the block page.</Description>
  15. <GeneratePackageOnBuild>false</GeneratePackageOnBuild>
  16. <OutputType>Library</OutputType>
  17. </PropertyGroup>
  18. <ItemGroup>
  19. <FrameworkReference Include="Microsoft.AspNetCore.App" />
  20. </ItemGroup>
  21. <ItemGroup>
  22. <ProjectReference Include="..\..\DnsServerCore.ApplicationCommon\DnsServerCore.ApplicationCommon.csproj">
  23. <Private>false</Private>
  24. </ProjectReference>
  25. </ItemGroup>
  26. <ItemGroup>
  27. <Reference Include="TechnitiumLibrary">
  28. <HintPath>..\..\..\TechnitiumLibrary\bin\TechnitiumLibrary.dll</HintPath>
  29. <Private>false</Private>
  30. </Reference>
  31. <Reference Include="TechnitiumLibrary.Net">
  32. <HintPath>..\..\..\TechnitiumLibrary\bin\TechnitiumLibrary.Net.dll</HintPath>
  33. <Private>false</Private>
  34. </Reference>
  35. </ItemGroup>
  36. <ItemGroup>
  37. <None Update="dnsApp.config">
  38. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  39. </None>
  40. </ItemGroup>
  41. <ItemGroup>
  42. <None Remove="wwwroot\index.html" />
  43. </ItemGroup>
  44. <ItemGroup>
  45. <Content Include="wwwroot\index.html">
  46. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  47. </Content>
  48. </ItemGroup>
  49. </Project>