Files
Vision/ModuleWeather/ModuleWeather.csproj
2026-03-20 21:10:28 +02:00

45 lines
2.0 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<!-- ВОТ ЭТА СТРОЧКА: она заставит компилятор создать Module.dll -->
<AssemblyName>Module</AssemblyName>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\VisionAsist.SDK\VisionAsist.SDK.csproj" />
</ItemGroup>
<Target Name="CopyModuleToCore" AfterTargets="PostBuildEvent">
<ItemGroup>
<!-- Копируем все DLL и PDB из корня -->
<ModuleFiles Include="$(TargetDir)*.dll" />
<ModuleFiles Include="$(TargetDir)*.pdb" />
<!-- Ищем нативную либу .so ВЕЗДЕ в выходной папке (включая подпапки runtimes) -->
<NativeLibs Include="$(TargetDir)**\*.so" />
</ItemGroup>
<Message Text="Копирую файлы модуля и нативные библиотеки..." Importance="high" />
<Copy SourceFiles="@(ModuleFiles)"
DestinationFolder="/home/egor/RiderProjects/Vision/VisionAsist/bin/Debug/net10.0/Modules/ModuleWeather/"
OverwriteReadOnlyFiles="true" />
<!-- Копируем .so файлы ПРЯМО в корень папки модуля -->
<Copy SourceFiles="@(NativeLibs)"
DestinationFolder="/home/egor/RiderProjects/Vision/VisionAsist/bin/Debug/net10.0/Modules/ModuleWeather/"
OverwriteReadOnlyFiles="true" />
</Target>
<ItemGroup>
<PackageReference Include="Avalonia" Version="11.3.12" />
<PackageReference Include="Avalonia.Desktop" Version="11.3.12" />
<PackageReference Include="System.IO.Ports" Version="11.0.0-preview.2.26159.112" />
</ItemGroup>
</Project>