mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-26 15:07:39 -05:00
The main window loads the post processors in Posts/ beside the app (their materials registered) as it loads engine plug-ins, and reports any that fail in the status line. It then reads the machines off the UI thread through the shared MachineSettingsSource, following storage.json's mode (the nest server's copy in Database mode), copies legacy clamps onto the defaults' or only machine as WinForms does, and shows the offline-copy or clamp warning in the status line. The machines and posts are kept in DesktopSettings for later screens; nothing uses them yet. The two posts the WinForms app ships now build with the Avalonia app and copy to its Posts/ directory, with their settings JSON unless an edited copy is already deployed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 lines
2.4 KiB
XML
41 lines
2.4 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<OutputType>WinExe</OutputType>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<RootNamespace>OpenNest.Avalonia</RootNamespace>
|
|
<AssemblyName>OpenNest.Avalonia</AssemblyName>
|
|
<Nullable>disable</Nullable>
|
|
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
|
|
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\OpenNest.Core\OpenNest.Core.csproj" />
|
|
<ProjectReference Include="..\OpenNest.IO\OpenNest.IO.csproj" />
|
|
<ProjectReference Include="..\OpenNest.Desktop\OpenNest.Desktop.csproj" />
|
|
<PackageReference Include="Avalonia" Version="11.3.0" />
|
|
<PackageReference Include="Avalonia.Desktop" Version="11.3.0" />
|
|
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.3.0" />
|
|
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.3.0" />
|
|
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.3.0" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<!-- The posts the WinForms app ships, built with this app and copied to its Posts/ directory. -->
|
|
<ProjectReference Include="..\Posts\OpenNest.Posts.Cincinnati\OpenNest.Posts.Cincinnati.csproj" ReferenceOutputAssembly="false" IsPost="true" />
|
|
<ProjectReference Include="..\Posts\OpenNest.Posts.CincinnatiCIFiber\OpenNest.Posts.CincinnatiCIFiber.csproj" ReferenceOutputAssembly="false" IsPost="true" />
|
|
</ItemGroup>
|
|
<!-- As for the WinForms app: each post DLL, and its shipped settings JSON unless one is already
|
|
deployed (an edited copy is kept), go to Posts/ beside the app, which loads them at startup. -->
|
|
<Target Name="CopyPostsToOutput" AfterTargets="Build">
|
|
<MSBuild Projects="@(ProjectReference)" Condition="'%(ProjectReference.IsPost)' == 'true'" Targets="GetTargetPath">
|
|
<Output TaskParameter="TargetOutputs" ItemName="PostAssembly" />
|
|
</MSBuild>
|
|
<ItemGroup>
|
|
<PostConfig Include="@(PostAssembly->'%(RootDir)%(Directory)%(Filename).json')" />
|
|
<PostConfigToCopy Include="@(PostConfig)" Condition="Exists('%(FullPath)') and !Exists('$(OutDir)Posts\%(Filename)%(Extension)')" />
|
|
</ItemGroup>
|
|
<MakeDir Directories="$(OutDir)Posts" />
|
|
<Copy SourceFiles="@(PostAssembly)" DestinationFolder="$(OutDir)Posts" SkipUnchangedFiles="true" />
|
|
<Copy SourceFiles="@(PostConfigToCopy)" DestinationFolder="$(OutDir)Posts" SkipUnchangedFiles="true" />
|
|
</Target>
|
|
</Project>
|