This repository has been archived on 2026-10-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2026-09-09 17:35:23 +08:00

155 lines
8.9 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Packaging, resources and hosting | HiAPI-C# 2025 </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="Packaging, resources and hosting | HiAPI-C# 2025 ">
<link rel="icon" href="../../img/HiAPI.favicon.ico">
<link rel="stylesheet" href="../../public/docfx.min.css">
<link rel="stylesheet" href="../../public/main.css">
<meta name="docfx:navrel" content="../../toc.html">
<meta name="docfx:tocrel" content="toc.html">
<meta name="docfx:rel" content="../../">
<meta name="loc:inThisArticle" content="In this article">
<meta name="loc:searchResultsCount" content="{count} results for &quot;{query}&quot;">
<meta name="loc:searchNoResults" content="No results for &quot;{query}&quot;">
<meta name="loc:tocFilter" content="Filter by title">
<meta name="loc:nextArticle" content="Next">
<meta name="loc:prevArticle" content="Previous">
<meta name="loc:themeLight" content="Light">
<meta name="loc:themeDark" content="Dark">
<meta name="loc:themeAuto" content="Auto">
<meta name="loc:changeTheme" content="Change theme">
<meta name="loc:copy" content="Copy">
<meta name="loc:downloadPdf" content="Download PDF">
<script type="module" src="./../../public/docfx.min.js"></script>
<script>
const theme = localStorage.getItem('theme') || 'auto'
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
</script>
</head>
<body class="tex2jax_ignore" data-layout="" data-yaml-mime="">
<header class="bg-body border-bottom">
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
<div class="container-xxl flex-nowrap">
<a class="navbar-brand" href="../../index.html">
<img id="logo" class="svg" src="../../img/HiAPI.logo.png" alt="">
</a>
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
<i class="bi bi-three-dots"></i>
</button>
<div class="collapse navbar-collapse" id="navpanel">
<div id="navbar">
<form class="search" role="search" id="search">
<i class="bi bi-search"></i>
<input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search">
</form>
</div>
</div>
</div>
</nav>
</header>
<main class="container-xxl">
<div class="toc-offcanvas">
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<nav class="toc" id="toc"></nav>
</div>
</div>
</div>
<div class="content">
<div class="actionbar">
<button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
<i class="bi bi-list"></i>
</button>
<nav id="breadcrumb"></nav>
</div>
<article data-uid="Release-Upgrading-Packaging">
<h1 id="packaging-resources-and-hosting">Packaging, resources and hosting</h1>
<ul>
<li><strong>Shipped resources carry an ownership marker.</strong> <a class="xref" href="../../api/Hi.Common.ResourceDefaultMarker.html">ResourceDefaultMarker</a> introduces the
<code>.default</code> convention: files carry the marker before the final extension
(<code>AlTiBN.default.CoatingMaterial</code>) and machine-tool packages carry it on the folder
(<code>MachineTool/Table-B1.default/</code>). Marked items are system territory the seeder may refresh or delete;
unmarked items belong to the user and are never touched. <a class="xref" href="../../api/Hi.HiNcKits.ResourceSeeder.html#Hi_HiNcKits_ResourceSeeder_Seed_">Seed</a>
copies the shipped defaults into the admin resource root at startup — anchored on the application base
directory rather than the process working directory, version-stamped so steady-state boots do no work.
A save-as flow must strip the marker so a user file cannot masquerade as a shipped default.</li>
<li><strong>HiNc-Resource ships more presets</strong>: <code>Resource/Controller/&lt;Brand&gt;.default.Controller</code> for all five
brands, and <code>StandardForcedAir</code> / <code>StandardWaterSolubleCoolant</code> / <code>StandardOilBasedCoolant</code> coolant
conditions, so those load browsers start populated instead of empty.</li>
<li><strong><a class="xref" href="../../api/Hi.Physics.CoolantHeatCondition.html">CoolantHeatCondition</a></strong> gains name/note, the three static presets, preset
find/match/apply, and side-file IO following the workpiece-material pattern —
<a class="xref" href="../../api/Hi.Machining.MachiningEquipmentUtils.SetupEquipment.html#Hi_Machining_MachiningEquipmentUtils_SetupEquipment_CoolantHeatConditionFile">CoolantHeatConditionFile</a> externalizes
the condition to a <code>.CoolantHeatCondition</code> file.</li>
<li><strong>Obfuscation-safe DTOs.</strong> Obfuscar renames compiler-generated anonymous types and strips their
constructor parameter names, so <code>System.Text.Json</code> threw on every <code>ToPresentDto</code> serialization in
released assemblies — the geometry, cutter and transformer editors all returned HTTP 500 while Debug
builds were fine. Every implementation now returns <code>Dictionary&lt;string, object&gt;</code> with <code>nameof</code> keys,
which compile to string literals obfuscation cannot touch, and
<a class="xref" href="../../api/Hi.Common.IToPresentDto.html">IToPresentDto</a> documents the rule. See the wire-key list under
<a href="breaking-changes.html#7-signature-and-shape-changes">Signature and shape changes</a>.</li>
<li><strong>The embedded default font is Noto Sans CJK TC</strong> (SIL OFL 1.1) in place of the Big5-only HanWang
WCL06, fed to the native engine from memory instead of writing an 11 MB <code>Font/WCL06.ttf</code> into the
process working directory. Traditional, simplified and kana render from one face with zh-Hant glyph
conventions. Explicit font paths still go through the file route.</li>
<li><strong>Third-party notices</strong> ship with the two packages that actually redistribute third-party bits: HiDisp
(the native files under <code>runtimes/</code> and the embedded font) and HiNc-Resource (the offline
documentation site among its content files). HiLicense gained a real package description.</li>
<li><strong>Dependency updates</strong> — <code>SQLitePCLRaw.bundle_e_sqlite3</code> is pinned to 3.0.3 (SQLite
CVE-2025-6965), <code>Microsoft.Data.Sqlite</code> to 10.0.9 and <code>Dapper</code> to 2.1.79.</li>
<li><strong>Small public additions</strong> — <a class="xref" href="../../api/Hi.Common.FileLines.FileUtil.html#Hi_Common_FileLines_FileUtil_DetectRoundTripEncoding_">DetectRoundTripEncoding</a>,
<a class="xref" href="../../api/Hi.Common.JsonUtil.html#Hi_Common_JsonUtil_CompactNanOptions">CompactNanOptions</a> and named float literals in
<a class="xref" href="../../api/Hi.Common.JsonUtil.html#Hi_Common_JsonUtil_GetDouble_">GetDouble</a>, <a class="xref" href="../../api/Hi.Geom.MathUtil.html#Hi_Geom_MathUtil_CycleUpperInclusive_">CycleUpperInclusive</a> (the <code>(l,u]</code>
cyclic window the existing overloads could not express), and
<a class="xref" href="../../api/Hi.Common.Collections.SynList-1.html#Hi_Common_Collections_SynList_1_AddAndGetIndex_">AddAndGetIndex</a>. <a class="xref" href="../../api/Hi.Common.IndexSegment.html">IndexSegment</a> no longer leaves
an open run end when the match sits at either edge of the list.</li>
</ul>
</article>
<div class="contribution d-print-none">
</div>
<div class="next-article d-print-none border-top" id="nextArticle"></div>
</div>
<div class="affix">
<nav id="affix"></nav>
</div>
</main>
<div class="container-xxl search-results" id="search-results"></div>
<footer class="border-top text-secondary">
<div class="container-xxl">
<div class="flex-fill">
<span> Copyright © 2025 <a href='https://superhightech.com.tw'>Tech Coordinate</a>. All rights reserved. <a href='https://superhightech.com.tw'>超級高科技股份有限公司</a> © 2025 版權所有 </span>
</div>
</div>
</footer>
</body>
</html>