26 lines
1.3 KiB
XML
26 lines
1.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<OutputType>WinExe</OutputType>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
|
|
<UseSharedCompilation>false</UseSharedCompilation>
|
|
<CoreName Condition="'$(OS)' == 'Windows_NT'">strata-desktop.exe</CoreName>
|
|
<CoreName Condition="'$(OS)' != 'Windows_NT'">strata-desktop</CoreName>
|
|
<CorePath>../desktop-core/target/debug/$(CoreName)</CorePath>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<None Include="$(CorePath)" Link="$(CoreName)" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="Avalonia.Desktop" Version="12.1.3" />
|
|
<PackageReference Include="Avalonia.Themes.Fluent" Version="12.1.3" />
|
|
<None Include="../desktop-core/examples/requirements.json" Link="example-requirements.json" CopyToOutputDirectory="PreserveNewest" />
|
|
</ItemGroup>
|
|
<Target Name="CopyRustCore" AfterTargets="Build">
|
|
<Error Condition="!Exists('$(CorePath)')" Text="Build the Rust helper first: cargo build --manifest-path desktop-core/Cargo.toml" />
|
|
<Copy SourceFiles="$(CorePath)" DestinationFolder="$(OutDir)" SkipUnchangedFiles="true" />
|
|
</Target>
|
|
</Project>
|