Skip to content

Commit cbec219

Browse files
committed
添加鸭船解决依赖缺失
1 parent 9c3c5ff commit cbec219

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

app/Tool/自动同步系统时间/AutoUpdateSystemTime/AutoUpdateSystemTime.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,18 @@
99
<PublishAot>true</PublishAot>
1010
<PackageIcon>Icon.ico</PackageIcon>
1111
<ApplicationIcon>Icon.ico</ApplicationIcon>
12+
<Version>1.0.1</Version>
13+
14+
<!-- [dotnet 9 已知问题 默认开启 CET 导致进程崩溃 - lindexi - 博客园](https://www.cnblogs.com/lindexi/p/18700406 ) -->
15+
<CETCompat>false</CETCompat>
16+
17+
<SupportedOSPlatformVersion>5.1</SupportedOSPlatformVersion>
1218
</PropertyGroup>
1319

1420
<ItemGroup>
1521
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="10.0.1" />
22+
<PackageReference Include="VC-LTL" Version="5.2.1" />
23+
<PackageReference Include="YY-Thunks" Version="1.1.7" />
1624
</ItemGroup>
1725

1826
</Project>

app/Tool/自动同步系统时间/AutoUpdateSystemTime/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ public struct WORD
278278
public static implicit operator int(WORD val) => val._value;
279279
}
280280

281+
// [dotnet6 C# 一个国内还能用的 NTP 时间校准客户端的实现](https://blog.lindexi.com/post/dotnet6-C-%E4%B8%80%E4%B8%AA%E5%9B%BD%E5%86%85%E8%BF%98%E8%83%BD%E7%94%A8%E7%9A%84-NTP-%E6%97%B6%E9%97%B4%E6%A0%A1%E5%87%86%E5%AE%A2%E6%88%B7%E7%AB%AF%E7%9A%84%E5%AE%9E%E7%8E%B0.html )
281282
// https://github.com/michaelschwarz/NETMF-Toolkit/blob/095b01679945c3f518dd52082eca78bbaff9811f/NTP/NtpClient.cs
282283
public static class NtpClient
283284
{

0 commit comments

Comments
 (0)