- 修改 `MainWindow.xaml.cs` 中的登录响应逻辑,确保获取 `token` 并检查聊天消息状态。 - 更改 `chatclient.csproj` 的目标框架为 `net8.0-windows7.0`,并设置调试类型为 `embedded`。 - 在 `App.config` 中添加用户设置配置,支持聊天信息保存上限。 - 新增 `User` 类于 `ChatData.cs`,存储用户信息。 - 在 `Program.cs` 中实现客户端连接的锁定机制,确保线程安全。 - 修正 `log4net.config` 中的日志文件路径格式。 - 新增 `Settings1.Designer.cs` 和 `Settings1.settings` 文件以管理用户设置。
50 lines
1.4 KiB
XML
50 lines
1.4 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>Exe</OutputType>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
|
<DebugType>embedded</DebugType>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
|
<DebugType>embedded</DebugType>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<None Remove="config\log4net.config" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<EmbeddedResource Include="config\log4net.config">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</EmbeddedResource>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="log4net" Version="3.1.0" />
|
|
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.119" />
|
|
<PackageReference Include="Ulid" Version="1.3.4" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Update="config\Settings1.Designer.cs">
|
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
|
<AutoGen>True</AutoGen>
|
|
<DependentUpon>Settings1.settings</DependentUpon>
|
|
</Compile>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Update="config\Settings1.settings">
|
|
<Generator>SettingsSingleFileGenerator</Generator>
|
|
<LastGenOutput>Settings1.Designer.cs</LastGenOutput>
|
|
</None>
|
|
</ItemGroup>
|
|
|
|
</Project>
|