Skip to content

Commit

Permalink
feat:升级项目至 .NET 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
HRxiaohu committed Jan 29, 2025
1 parent b73bd89 commit d7ea6be
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 47 deletions.
85 changes: 39 additions & 46 deletions SodaCL.csproj
Original file line number Diff line number Diff line change
@@ -1,47 +1,40 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<ImplicitUsings>disable</ImplicitUsings>
<Product>Soda Craft Launcher</Product>
<AssemblyName>SodaCL</AssemblyName>
<AssemblyTitle>Soda Craft Launcher 启动器</AssemblyTitle>
<Description>一个清爽的 Minecraft 启动器</Description>
<Version>0.0.5.1</Version>
<FileVersion>0.0.5.1</FileVersion>
<Copyright>Copyright © 2022-2023 Soda Quantum Laboratory,All Rights Reserved.</Copyright>
<ApplicationIcon>Resources\Images\Dev.ico</ApplicationIcon>
<RootNamespace>SodaCL</RootNamespace>
<Nullable>disable</Nullable>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>1701;1702;SYSLIB0014</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NoWarn>1701;1702;SYSLIB0014</NoWarn>
</PropertyGroup>

<ItemGroup>
<None Remove="Resources\Images\Dev.ico" />
<None Remove="Resources\Images\Launcher-Bg.jpg" />
<None Remove="Resources\Images\Release.ico" />
</ItemGroup>

<ItemGroup>
<Resource Include="Token.xaml" />
<Resource Include="Resources\Images\Dev.ico" />
<Resource Include="Resources\Images\Launcher-Bg.jpg" />
<Resource Include="Resources\Images\Release.ico" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AppCenter.Analytics" Version="5.0.2" />
<PackageReference Include="Microsoft.AppCenter.Crashes" Version="5.0.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

</Project>
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<ImplicitUsings>disable</ImplicitUsings>
<Product>Soda Craft Launcher</Product>
<AssemblyName>SodaCL</AssemblyName>
<AssemblyTitle>Soda Craft Launcher 启动器</AssemblyTitle>
<Description>一个清爽的 Minecraft 启动器</Description>
<Version>0.0.5.1</Version>
<FileVersion>0.0.5.1</FileVersion>
<Copyright>Copyright © 2022-2023 Soda Quantum Laboratory,All Rights Reserved.</Copyright>
<ApplicationIcon>Resources\Images\Dev.ico</ApplicationIcon>
<RootNamespace>SodaCL</RootNamespace>
<Nullable>disable</Nullable>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>1701;1702;SYSLIB0014</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NoWarn>1701;1702;SYSLIB0014</NoWarn>
</PropertyGroup>
<ItemGroup>
<None Remove="Resources\Images\Dev.ico" />
<None Remove="Resources\Images\Launcher-Bg.jpg" />
<None Remove="Resources\Images\Release.ico" />
</ItemGroup>
<ItemGroup>
<Resource Include="Token.xaml" />
<Resource Include="Resources\Images\Dev.ico" />
<Resource Include="Resources\Images\Launcher-Bg.jpg" />
<Resource Include="Resources\Images\Release.ico" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AppCenter.Analytics" Version="5.0.2" />
<PackageReference Include="Microsoft.AppCenter.Crashes" Version="5.0.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Toolkits/Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public static void LogStart()
}
try
{
Trace.Listeners.Add(new TextWriterTraceListener($"{LauncherInfo.SODACL_LOG_FOLDER_PATH}\\[{DateTime.Now.Month}.{DateTime.Now.Day}]SodaCL_Log.txt"));
System.Diagnostics.Trace.Listeners.Add(new TextWriterTraceListener($"{LauncherInfo.SODACL_LOG_FOLDER_PATH}\\[{DateTime.Now.Month}.{DateTime.Now.Day}]SodaCL_Log.txt"));
Trace.AutoFlush = true;
Trace.WriteLine(" -------- SodaCL 程序日志记录开始 --------");
}
Expand Down

0 comments on commit d7ea6be

Please sign in to comment.