102 lines
4.1 KiB
XML
102 lines
4.1 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<!--<Import Project="../../../Directory.Version.props" />-->
|
|
<PropertyGroup>
|
|
<TargetFramework>net9.0</TargetFramework>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
<LangVersion>12.0</LangVersion>
|
|
<!-- 确保 NuGet 包的 DLL 被复制 -->
|
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<None Remove="Configs\Images\rgv.png" />
|
|
<None Remove="Configs\Images\堆垛机.png" />
|
|
<None Remove="i18n\en-US.json" />
|
|
<None Remove="i18n\zh-CN.json" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<AvaloniaResource Include="Configs\Images\rgv.png" />
|
|
<AvaloniaResource Include="Configs\Images\堆垛机.png" />
|
|
<AvaloniaResource Include="i18n\en-US.json" />
|
|
<AvaloniaResource Include="i18n\zh-CN.json" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="Avalonia" />
|
|
<PackageReference Include="Avalonia.Controls.ItemsRepeater" />
|
|
<PackageReference Include="HslCommunication" />
|
|
<PackageReference Include="Ke.Bee.Localization" />
|
|
<PackageReference Include="Newtonsoft.Json" />
|
|
<PackageReference Include="NodifyAvalonia" />
|
|
<PackageReference Include="Semi.Avalonia" />
|
|
<PackageReference Include="Semi.Avalonia.ColorPicker" />
|
|
<PackageReference Include="Semi.Avalonia.DataGrid" />
|
|
<PackageReference Include="Irihi.Ursa" />
|
|
<PackageReference Include="Irihi.Ursa.Themes.Semi" />
|
|
<PackageReference Include="Xaml.Behaviors.Avalonia" />
|
|
<PackageReference Include="Xaml.Behaviors.Interactivity" />
|
|
</ItemGroup>
|
|
<Target Name="CopyFilesToDestination" AfterTargets="AfterBuild" Condition="true">
|
|
<!-- 确定相对路径到目标目录 -->
|
|
<PropertyGroup>
|
|
<!-- 这里使用 MSBuild 的内置属性来构造正确的路径 -->
|
|
<TargetDirectory>../../../Cowain.TestProject/Plugins/Wcs</TargetDirectory>
|
|
</PropertyGroup>
|
|
<!-- 确保目标目录存在 -->
|
|
<MakeDir Directories="$(TargetDirectory)" Condition="!Exists('$(TargetDirectory)')" />
|
|
|
|
<ItemGroup>
|
|
<Source1 Include="i18n/*.*" />
|
|
<Source2 Include="Configs/*.*" />
|
|
<FilesToCopy Include="$(OutputPath)**/Plugin.Cowain.Wcs.dll" />
|
|
<FilesToCopy Include="$(OutputPath)**/Plugin.Cowain.Wcs.pdb" />
|
|
<FilesToCopy Include="$(OutputPath)**/Plugin.Cowain.Wcs.deps.json" />
|
|
<FilesToCopy Include="$(OutputPath)**/HslCommunication.dll" />
|
|
<FilesToCopy Include="$(OutputPath)**/Newtonsoft.Json.dll" />
|
|
<FilesToCopy Include="$(OutputPath)**/System.IO.Ports.dll" />
|
|
|
|
</ItemGroup>
|
|
<!-- 复制文件到目标目录 -->
|
|
<Copy SourceFiles="@(FilesToCopy)" DestinationFolder="$(TargetDirectory)/%(RecursiveDir)" />
|
|
<Copy SourceFiles="@(Source1)" DestinationFolder="$(TargetDirectory)/i18n/" />
|
|
<Copy SourceFiles="@(Source2)" DestinationFolder="$(TargetDirectory)/Configs/" />
|
|
<!-- 输出TargetDirectory -->
|
|
<Message Text="TargetDirectory: $(TargetDirectory)" Importance="high" />
|
|
|
|
</Target>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\..\Cowain.Base\Cowain.Base.csproj" />
|
|
<ProjectReference Include="..\..\Driver\Cowain.Driver\Plugin.Cowain.Driver.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Update="Views\FlowManagementView.axaml.cs">
|
|
<DependentUpon>FlowManagementView.axaml</DependentUpon>
|
|
</Compile>
|
|
<Compile Update="Views\ProcessEditDialog.axaml.cs">
|
|
<DependentUpon>ProcessEditDialog.axaml</DependentUpon>
|
|
</Compile>
|
|
<Compile Update="Views\ProcessManagementView.axaml.cs">
|
|
<DependentUpon>ProcessManagementView.axaml</DependentUpon>
|
|
</Compile>
|
|
<Compile Update="Views\RgvManagementView.axaml.cs">
|
|
<DependentUpon>RgvManagementView.axaml</DependentUpon>
|
|
</Compile>
|
|
<Compile Update="Views\WcsRealStationView.axaml.cs">
|
|
<DependentUpon>WcsRealStationView.axaml</DependentUpon>
|
|
</Compile>
|
|
<Compile Update="Views\WcsTaskListView.axaml.cs">
|
|
<DependentUpon>WcsTaskListView.axaml</DependentUpon>
|
|
</Compile>
|
|
<Compile Update="Views\StationManagementView.axaml.cs">
|
|
<DependentUpon>StationManagementView.axaml</DependentUpon>
|
|
</Compile>
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
</Project>
|