84 lines
3.6 KiB
XML
84 lines
3.6 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
|
<PropertyGroup>
|
|
<OutputType>WinExe</OutputType>
|
|
<TargetFramework>net461</TargetFramework>
|
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
|
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
|
|
<PublishUrl>publish\</PublishUrl>
|
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
|
<UseWPF>true</UseWPF>
|
|
<IncludePackageReferencesDuringMarkupCompilation>true</IncludePackageReferencesDuringMarkupCompilation>
|
|
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
|
|
</PropertyGroup>
|
|
<PropertyGroup>
|
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
<OutputPath>bin\$(Configuration)\</OutputPath>
|
|
<LangVersion>latest</LangVersion>
|
|
<Nullable>enable</Nullable>
|
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<Compile Remove="publish\**" />
|
|
<EmbeddedResource Remove="publish\**" />
|
|
<None Remove="publish\**" />
|
|
<Page Remove="publish\**" />
|
|
<Compile Remove="AiV2.Tests\**" />
|
|
<EmbeddedResource Remove="AiV2.Tests\**" />
|
|
<None Remove="AiV2.Tests\**" />
|
|
<Page Remove="AiV2.Tests\**" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Reference Include="System.Web" />
|
|
<Reference Include="TechnologyAssembler.Core">
|
|
<HintPath>TechnologyAssembler.Core.dll</HintPath>
|
|
<Private>true</Private>
|
|
</Reference>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="NPinyin.Core" Version="3.0.0" />
|
|
<PackageReference Include="OxyPlot.Wpf" Version="2.1.0" />
|
|
<PackageReference Include="Pfim" Version="0.10.1" />
|
|
<PackageReference Include="System.Collections.Immutable" Version="5.0.0" />
|
|
<PackageReference Include="System.Text.Encoding.CodePages" Version="9.0.0-preview.7.24405.7" />
|
|
<PackageReference Include="System.Text.Json" Version="5.0.2" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Compile Update="Properties\Settings.Designer.cs">
|
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
|
<AutoGen>True</AutoGen>
|
|
<DependentUpon>Settings.settings</DependentUpon>
|
|
</Compile>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Update="Properties\Settings.settings">
|
|
<Generator>SettingsSingleFileGenerator</Generator>
|
|
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
|
</None>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Content Include="knowledge_default.md">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</Content>
|
|
<Content Include="knowledge_corona.md">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</Content>
|
|
<Content Include="knowledge_units_default.json">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</Content>
|
|
<!-- 临时快照:StringHashes 来自本地 RA3-MODSDK-X;后续应改为可配置路径或只打包需要的 hash 子集。 -->
|
|
<Content Include="Data\StringHashes.xml">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</Content>
|
|
</ItemGroup>
|
|
<Target Name="CustomAfterBuild" AfterTargets="Build" Condition="'$(AiV2TestsBuilding)' != 'true'">
|
|
<ItemGroup>
|
|
<_FilesToMove Include="$(OutputPath)*.dll" />
|
|
</ItemGroup>
|
|
<Message Text="_FilesToMove: @(_FilesToMove->'%(Filename)%(Extension)')" Importance="high" />
|
|
<Message Text="DestFiles:
 @(_FilesToMove->'$(OutputPath)$(ProjectName)Data\%(Filename)%(Extension)')" Importance="high" />
|
|
<Move SourceFiles="@(_FilesToMove)" DestinationFiles="@(_FilesToMove->'$(OutputPath)$(ProjectName)Data\%(Filename)%(Extension)')" />
|
|
</Target>
|
|
</Project>
|