clarioncom-webview2-build
Builds WebView2 COM control projects with proper verification of WebView2 dependencies and wwwroot deployment
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Builds WebView2 COM control projects with proper verification of WebView2 dependencies and wwwroot deployment
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Analyze Clarion code generation traces to find recurring failure patterns. Uses evidence-gating (2+ occurrences) to identify real issues. Suggests improvements for the /clarion skill. Triggers on '/clarion-analyze', 'analyze clarion traces', 'what mistakes am I making'.
Benchmark Clarion code generation quality by running test prompts and scoring the output. Measures improvement over time. Triggers on '/clarion-benchmark', 'benchmark clarion', 'test clarion code quality'.
Convert a Clarion dictionary from one file driver to another (e.g., TopSpeed to SQLite). Exports the dictionary to .dctx, transforms driver settings, regenerates GUIDs, creates a new .dct from blank template, and prepares for import. User must perform the final import manually in the IDE.
Create Clarion IDE addins with proper project structure, templates, and SharpDevelop integration. Use when creating new IDE tools, pads, embeditor toolbar buttons, or menu commands for the Clarion IDE.
Clarion language programming reference with syntax rules, data types, control structures, Windows API integration patterns, and template-authoring gotchas (#AT,
Compile C# COM projects for Clarion using MSBuild with correct paths, error handling, and build verification. Supports public releases with changelog management. Auto-applies for building .NET Framework COM components. Verification steps use parallel execution.
| name | clarioncom-webview2-build |
| description | Builds WebView2 COM control projects with proper verification of WebView2 dependencies and wwwroot deployment |
| version | 1.1.0 |
All ClarionCOM scripts are located at:
%APPDATA%\ClarionCOM\scripts\
Or use this to get the path dynamically:
powershell -ExecutionPolicy Bypass -Command "[Environment]::GetFolderPath('ApplicationData') + '\ClarionCOM\scripts'"
NEVER use relative paths like .claude/scripts/ - always use the full path to ClarionCOM scripts.
powershell -ExecutionPolicy Bypass -Command "& ([Environment]::GetFolderPath('ApplicationData') + '\ClarionCOM\scripts\clarioncom-env.ps1') clarion"
This returns the Clarion installation path like C:\Clarion12
This skill builds WebView2-based COM control projects with additional verification for WebView2 dependencies and wwwroot content.
DO NOT use:
dotnet build - Will fail with MSB4803 errordotnet msbuild - Same issueUSE:
"C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe" ProjectName.csproj -p:Configuration=Release
powershell -Command "@('C:\Program Files\Microsoft Visual Studio', 'C:\Program Files (x86)\Microsoft Visual Studio') | ForEach-Object { Get-ChildItem -Path $_ -Filter msbuild.exe -Recurse -ErrorAction SilentlyContinue } | Select-Object -First 1 -ExpandProperty FullName"
Before building, verify:
IMPORTANT: Before building, check if existing WebView2 controls are deployed to avoid version mismatch errors at runtime.
powershell -ExecutionPolicy Bypass -File "$env:APPDATA\ClarionCOM\scripts\check-webview2-version.ps1" -CsprojPath "ProjectName.csproj" -ClarionPath "C:\Clarion12"
Results:
NO_EXISTING - No existing WebView2 DLL found, using project default versionVERSION_MATCHED:x.x.x.x - Current version matches existing, proceed with buildVERSION_UPDATED:x.x.x.x - Updated .csproj to match existing version, proceed with buildWhy this matters: If multiple WebView2 controls use different WebView2 runtime versions, you'll get runtime errors when both are loaded in the same Clarion application.
Check and increment version:
powershell -ExecutionPolicy Bypass -File "$env:APPDATA\ClarionCOM\scripts\increment-build-version.ps1" read "ProjectPath"
If script not found or NOT_CONFIGURED, skip this step - version management is optional.
"C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe" ProjectName.csproj -p:Configuration=Release
The build should produce in bin\Release\net48\:
Main files:
WebView2 dependencies:
JSON library:
Database provider (if using):
Content:
Use the verification script to check all build outputs:
powershell -ExecutionPolicy Bypass -File "$env:APPDATA\ClarionCOM\scripts\verify-webview2-build.ps1" "ProjectPath"
This script automatically verifies:
Example:
powershell -ExecutionPolicy Bypass -File "$env:APPDATA\ClarionCOM\scripts\verify-webview2-build.ps1" "H:\DevLaptop\WebKanBanCOM"
Expected output:
============================================================
WebView2 Build Verification: WebKanBanCOM
============================================================
>> Checking required files...
[OK] WebKanBanCOM.dll (45.2 KB)
[OK] WebKanBanCOM.manifest (2.1 KB)
[OK] Microsoft.Web.WebView2.Core.dll (156.8 KB)
...
>> Checking wwwroot deployment...
[OK] wwwroot folder deployed
[OK] wwwroot\controls\webkanban\index.html
...
>> Checking metadata files...
[OK] WebKanBanCOM.header
...
============================================================
BUILD VERIFICATION: PASSED
============================================================
If the control uses DevExtreme, ensure the following files are in your project's wwwroot\js and wwwroot\css folders:
wwwroot\js\dx.all.jswwwroot\js\jquery.min.jswwwroot\css\dx.light.cssNote: DevExtreme requires a license. These files must be manually obtained from your DevExpress installation and placed in the wwwroot folder. Trial mode will display a watermark.
Cause: Using .NET Core MSBuild instead of Visual Studio MSBuild Solution: Use full path to Visual Studio's MSBuild.exe
Cause: Expected for RegFree COM - NOT an error Solution: Ignore if DLL was created successfully
Cause: Missing NuGet package or wrong target framework Solution: Ensure Microsoft.Web.WebView2 package is referenced and target is net48
Cause: Missing MSBuild target or Content include Solution: Verify .csproj has:
<ItemGroup>
<Content Include="wwwroot\**\*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
After successful build, report:
When deploying to Clarion using copy-to-clarion.ps1:
C:\Clarion12\accessory\
bin\
ProjectName.dll
Microsoft.Web.WebView2.Core.dll
Microsoft.Web.WebView2.WinForms.dll
WebView2Loader.dll
Newtonsoft.Json.dll
[Database provider DLL if using]
resources\
ProjectName.manifest
ProjectName.header
*.details, *.events, *.methods
wwwroot\
css\
styles.css
dx.light.css (if DevExtreme)
js\
dx-config.js
dx.all.js (if DevExtreme)
jquery.min.js (if DevExtreme)
controls\
{controlname}\
index.html
app.js