摘要:
关键工作流程:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<RootNamespace>FirstSolver</RootNamespace>
<ApplicationIcon>$(AssemblyName).ico</ApplicationIcon>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<Authors>秦建辉</Authors>
<AssemblyVersion>4.3.0</AssemblyVersion>
<FileVersion>$(AssemblyVersion)</FileVersion>
<NeutralLanguage>zh-Hans</NeutralLanguage>
<StartupObject>FirstSolver.Program</StartupObject>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="C2VColorEdit" Version="3.0.0" />
<PackageReference Include="C2VLanguage" Version="3.0.0" />
<PackageReference Include="HPSocket.Net" Version="5.9.3.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="NLogHelper" Version="3.0.0" />
<PackageReference Include="NLogViewer" Version="3.0.0" />
<PackageReference Include="TF_Communication_CS" Version="3.0.4" />
</ItemGroup>
<ItemGroup>
<Resource Include="..\TF.png" Link="TF.png" />
<Resource Include="$(AssemblyName).ico" />
</ItemGroup>
<ItemGroup>
<None Update="Languages\en-US\$(AssemblyName).json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Languages\zh-Hans\$(AssemblyName).json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Languages\zh-Hant\$(AssemblyName).json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="$(AssemblyName)_Config.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="PowerShell.exe -ExecutionPolicy RemoteSigned -Command "&'$(ProjectDir)PostBuild.ps1' '$(TargetDir)' '$(ProjectPath)' '$(AssemblyName)'"" />
</Target>
</Project>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFrameworks>net480</TargetFrameworks>
<UseWPF>true</UseWPF>
<RootNamespace>FirstSolver</RootNamespace>
<ApplicationIcon>$(AssemblyName).ico</ApplicationIcon>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<Authors>秦建辉</Authors>
<AssemblyVersion>4.3.0</AssemblyVersion>
<FileVersion>$(AssemblyVersion)</FileVersion>
<NeutralLanguage>zh-Hans</NeutralLanguage>
<StartupObject>FirstSolver.Program</StartupObject>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="C2VColorEdit" Version="3.0.0" />
<PackageReference Include="C2VLanguage" Version="3.0.0" />
<PackageReference Include="HPSocket.Net" Version="5.9.3.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="NLogHelper" Version="3.0.0" />
<PackageReference Include="NLogViewer" Version="3.0.0" />
<PackageReference Include="TF_Communication_CS" Version="3.0.4" />
</ItemGroup>
<ItemGroup>
<Resource Include="..\TF.png" Link="TF.png" />
<Resource Include="$(AssemblyName).ico" />
</ItemGroup>
<ItemGroup>
<None Update="Languages\en-US\$(AssemblyName).json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Languages\zh-Hans\$(AssemblyName).json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Languages\zh-Hant\$(AssemblyName).json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="$(AssemblyName)_Config.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="PowerShell.exe -ExecutionPolicy RemoteSigned -Command "&'$(ProjectDir)PostBuild.ps1' '$(TargetDir)' '$(ProjectPath)' '$(AssemblyName)'"" />
</Target>
</Project>