nc_program_manager/NcProgramManager.csproj
dtrentin 19da0e598e feat(mazak): add Mazak CNC support via FTP (EIA/ISO)
New Cnc/Mazak/ machine integration mirroring the Fagor/Mitsubishi FTP
pattern: MazakConnectionConfig, IMazakFtpClient, MazakFtpClient,
MazakMachine (ICncMachine). Transfers EIA/ISO G-code text over FTP to
Smooth-family controllers. Mazatrol CMT (proprietary binary) out of scope.

Design (verified against Mazak Matrix EIA manual + field reports):
- Filenames preserved verbatim; no O#### rename, no extension append.
- Symmetric ResolvePath for Read/Write/Delete (avoids ISS-020 class;
  Delete resolved too, unlike copied Mitsubishi source).
- Validator = full passthrough for Mazak (EIA permits ';' EOB, '[ ]',
  '#'; restrictive Fanuc checks would false-reject valid programs).
- Port 21 default, -porta=23 for Smooth Ai IIS variant.
- ProgramDirectory site-specific, no default.

Wiring: CncManufacturer.Mazak, ArgParser 'mazak' token, CncMachineFactory.
Tests: MazakMachineTests (unit), MazakMachineIntegrationTests (FTP-stub
roundtrip + symmetry guard), Mazak cases in validator/factory tests.
Docs: README Controller Mazak section + table row; ISS-021 (constraints,
EIA-option requirement), ISS-022 (Mitsubishi delete asymmetry logged).

NOT build-verified (no .NET toolchain in build env) — verify on Windows.

Projects: NcProgramManager, NcProgramManager.Tests

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 19:12:07 +02:00

174 lines
No EOL
8.6 KiB
XML
Executable file

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{1032188B-3321-42B2-87ED-343BF718CAF5}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>NcProgramManager</RootNamespace>
<AssemblyName>NcProgramManager</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
<IsWebBootstrapper>false</IsWebBootstrapper>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<SignManifests>false</SignManifests>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>packages\Microsoft.Bcl.AsyncInterfaces.7.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Management" />
<Reference Include="System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>packages\System.Memory.4.5.5\lib\net461\System.Memory.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
<HintPath>packages\NLog.5.2.8\lib\net46\NLog.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="ArgParser.cs" />
<Compile Include="FanucProgram.cs" />
<Compile Include="InputArgs.cs" />
<Compile Include="fwlib32.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Cnc\ICncMachine.cs" />
<Compile Include="Cnc\IFanucMachine.cs" />
<Compile Include="Cnc\Fanuc\FanucCapabilities.cs" />
<Compile Include="Cnc\Fanuc\FanucConnectionConfig.cs" />
<Compile Include="Cnc\Fanuc\FanucDialect.cs" />
<Compile Include="Cnc\Fanuc\FanucDialectDetector.cs" />
<Compile Include="Cnc\Fanuc\FanucErrorTranslator.cs" />
<Compile Include="Cnc\Fanuc\FanucMachine.cs" />
<Compile Include="Cnc\Fanuc\FocasDialectFactory.cs" />
<Compile Include="Cnc\Fanuc\IFocasDialect.cs" />
<Compile Include="Cnc\Fanuc\IsoProgramFormatter.cs" />
<Compile Include="Cnc\Fanuc\LegacyFocasDialect.cs" />
<Compile Include="Cnc\Fanuc\ModernFocasDialect.cs" />
<Compile Include="Cnc\Models\CncError.cs" />
<Compile Include="Cnc\Models\CncManufacturer.cs" />
<Compile Include="Cnc\Models\CncProgram.cs" />
<Compile Include="Cnc\Models\CncResult.cs" />
<Compile Include="Cnc\Models\ConnectionState.cs" />
<Compile Include="Cnc\Models\MachineMode.cs" />
<Compile Include="Cnc\Models\MachineSnapshot.cs" />
<Compile Include="Cnc\Models\MotionState.cs" />
<Compile Include="Cnc\Models\RunState.cs" />
<Compile Include="Cnc\Models\ValidationSeverity.cs" />
<Compile Include="Cnc\Models\ValidationError.cs" />
<Compile Include="Cnc\Models\ValidationResult.cs" />
<Compile Include="Cnc\INcProgramValidator.cs" />
<Compile Include="Cnc\NcProgramValidator.cs" />
<Compile Include="Cnc\CncMachineFactory.cs" />
<Compile Include="Cnc\Heidenhain\HeidenhainConnectionConfig.cs" />
<Compile Include="Cnc\Heidenhain\ILsv2Client.cs" />
<Compile Include="Cnc\Heidenhain\Lsv2Client.cs" />
<Compile Include="Cnc\Heidenhain\HeidenhainMachine.cs" />
<Compile Include="Cnc\Siemens\SiemensConnectionConfig.cs" />
<Compile Include="Cnc\Siemens\ISiemensFtpClient.cs" />
<Compile Include="Cnc\Siemens\SiemensFtpClient.cs" />
<Compile Include="Cnc\Siemens\SiemensMachine.cs" />
<Compile Include="Cnc\Mitsubishi\MitsubishiConnectionConfig.cs" />
<Compile Include="Cnc\Mitsubishi\IMitsubishiFtpClient.cs" />
<Compile Include="Cnc\Mitsubishi\MitsubishiFtpClient.cs" />
<Compile Include="Cnc\Mitsubishi\MitsubishiMachine.cs" />
<Compile Include="Cnc\Mazak\MazakConnectionConfig.cs" />
<Compile Include="Cnc\Mazak\IMazakFtpClient.cs" />
<Compile Include="Cnc\Mazak\MazakFtpClient.cs" />
<Compile Include="Cnc\Mazak\MazakMachine.cs" />
<Compile Include="Cnc\Fagor\FagorConnectionConfig.cs" />
<Compile Include="Cnc\Fagor\IFagorFtpClient.cs" />
<Compile Include="Cnc\Fagor\FagorFtpClient.cs" />
<Compile Include="Cnc\Fagor\FagorMachine.cs" />
<Compile Include="Licensing\IMachineFingerprint.cs" />
<Compile Include="Licensing\ILicenseValidator.cs" />
<Compile Include="Licensing\LicenseFile.cs" />
<Compile Include="Licensing\MachineFingerprint.cs" />
<Compile Include="Licensing\LicenseValidator.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Content Include="nlog.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Cnc\Fanuc\libs\Fwlib32.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Cnc\Fanuc\libs\fwlibe1.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Cnc\Fanuc\libs\fwlibNCG.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.7.2">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.7.2 %28x86 e x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="Obfuscate" AfterTargets="Build" Condition="'$(Configuration)' == 'Release'">
<Message Text="Obfuscating $(TargetFileName) with ConfuserEx..." Importance="high" />
<Exec Command="&quot;$(MSBuildProjectDirectory)\tools\ConfuserEx\Confuser.CLI.exe&quot; -n &quot;$(MSBuildProjectDirectory)\NcProgramManager.crproj&quot;" WorkingDirectory="$(MSBuildProjectDirectory)" />
</Target>
</Project>