使用nameof

This commit is contained in:
陈国伟 2021-07-22 13:46:57 +08:00
parent e9fe742c15
commit 2e357e58d4
2 changed files with 5 additions and 1 deletions

View File

@ -70,7 +70,7 @@ namespace FastGithub.Dns.DnscryptProxy
} }
if (this.isStopped == false) if (this.isStopped == false)
{ {
this.logger.LogCritical($"{dnscryptProxyFile}已停止运行,{nameof(FastGithub)}将无法解析域名。你可以把配置文件的PureDns修改为其它可用的DNS以临时使用。"); this.logger.LogCritical($"{dnscryptProxyFile}已停止运行,{nameof(FastGithub)}将无法解析域名。你可以把配置文件的{nameof(FastGithubOptions.PureDns)}修改为其它可用的DNS以临时使用。");
} }
} }

View File

@ -8,6 +8,10 @@
<PackageReference Include="Microsoft.Extensions.Hosting" Version="5.0.0" /> <PackageReference Include="Microsoft.Extensions.Hosting" Version="5.0.0" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<ProjectReference Include="..\FastGithub.Core\FastGithub.Core.csproj" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<None Update="dnscrypt-proxy"> <None Update="dnscrypt-proxy">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>