Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Configure ClickOnce deployment with auto-update, prerequisites, and publish settings for .NET applications
.claude/skills/a5c-ai-dotnet-clickonce-config/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 142% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 33% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 43% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 70% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 64% | 0% |
Configure ClickOnce deployment for .NET applications with auto-update capabilities, prerequisite management, and publish settings. This skill sets up the complete ClickOnce deployment pipeline.
json{ "type": "object", "properties": { "projectPath": { "type": "string", "description": "Path to the .NET project" }, "publishSettings": { "type": "object", "properties": { "publishUrl": { "type": "string" }, "installUrl": { "type": "string" }, "updateMode": { "enum": ["foreground", "background"] }, "updateInterval": { "type": "number" }, "minimumVersion": { "type": "string" } } }, "prerequisites": { "type": "array", "items": { "type": "string" } }, "fileAssociations": { "type": "array", "items": { "type": "object", "properties": { "extension": { "type": "string" }, "description": { "type": "string" } } } }, "signing": { "type": "object", "properties": { "certificatePath": { "type": "string" }, "timestampUrl": { "type": "string" } } } }, "required": ["projectPath", "publishSettings"] }
json{ "type": "object", "properties": { "success": { "type": "boolean" }, "files": { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string" }, "type": { "enum": ["pubxml", "manifest", "settings"] } } } }, "publishCommand": { "type": "string" } }, "required": ["success"] }
xml<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>net8.0-windows</TargetFramework> <UseWPF>true</UseWPF> <!-- ClickOnce settings --> <PublishUrl>https://myserver.com/myapp/</PublishUrl> <InstallUrl>https://myserver.com/myapp/</InstallUrl> <UpdateUrl>https://myserver.com/myapp/</UpdateUrl> <ApplicationRevision>1</ApplicationRevision> <ApplicationVersion>1.0.0.*</ApplicationVersion> <IsWebBootstrapper>true</IsWebBootstrapper> <PublisherName>My Company</PublisherName> <ProductName>My Application</ProductName> <MapFileExtensions>true</MapFileExtensions> <Install>true</Install> <InstallFrom>Web</InstallFrom> <UpdateEnabled>true</UpdateEnabled> <UpdateMode>Foreground</UpdateMode> <UpdateInterval>7</UpdateInterval> <UpdateIntervalUnits>Days</UpdateIntervalUnits> <UpdatePeriodically>true</UpdatePeriodically> <UpdateRequired>false</UpdateRequired> </PropertyGroup> <!-- Prerequisites --> <ItemGroup> <BootstrapperPackage Include=".NETFramework,Version=v4.8"> <Visible>False</Visible> <ProductName>.NET Framework 4.8</ProductName> <Install>true</Install> </BootstrapperPackage> </ItemGroup> </Project>
xml<!-- Properties/PublishProfiles/ClickOnce.pubxml --> <?xml version="1.0" encoding="utf-8"?> <Project> <PropertyGroup> <PublishProtocol>ClickOnce</PublishProtocol> <PublishDir>bin\publish\</PublishDir> <PublishUrl>https://myserver.com/myapp/</PublishUrl> <InstallUrl>https://myserver.com/myapp/</InstallUrl> <UpdateUrl>https://myserver.com/myapp/</UpdateUrl> <ApplicationVersion>1.0.0.*</ApplicationVersion> <Configuration>Release</Configuration> <Platform>Any CPU</Platform> <TargetFramework>net8.0-windows</TargetFramework> <SelfContained>false</SelfContained> <RuntimeIdentifier>win-x64</RuntimeIdentifier> <PublishSingleFile>false</PublishSingleFile> <PublishReadyToRun>false</PublishReadyToRun> <!-- Install settings --> <Install>true</Install> <InstallFrom>Web</InstallFrom> <CreateDesktopShortcut>true</CreateDesktopShortcut> <CreateWebPageOnPublish>true</CreateWebPageOnPublish> <WebPageFileName>publish.htm</WebPageFileName> <!-- Update settings --> <UpdateEnabled>true</UpdateEnabled> <UpdateMode>Foreground</UpdateMode> <UpdateInterval>7</UpdateInterval> <UpdateIntervalUnits>Days</UpdateIntervalUnits> <UpdatePeriodically>true</UpdatePeriodically> <UpdateRequired>false</UpdateRequired> <!-- Security --> <SignManifests>true</SignManifests> <ManifestCertificateThumbprint>1234567890ABCDEF</ManifestCertificateThumbprint> <ManifestTimestampRFC3161Url>http://timestamp.digicert.com</ManifestTimestampRFC3161Url> <!-- File associations --> <TargetCulture>en-US</TargetCulture> <ProductName>My Application</ProductName> <PublisherName>My Company</PublisherName> <OpenBrowserOnPublish>false</OpenBrowserOnPublish> </PropertyGroup> </Project>
csharpusing System.Deployment.Application; public class UpdateManager { public async Task<bool> CheckForUpdatesAsync() { if (!ApplicationDeployment.IsNetworkDeployed) { return false; } var deployment = ApplicationDeployment.CurrentDeployment; try { var info = deployment.CheckForDetailedUpdate(); if (info.UpdateAvailable) { if (info.IsUpdateRequired) { // Force update deployment.Update(); Application.Restart(); return true; } else { // Optional update - prompt user var result = MessageBox.Show( $"Version {info.AvailableVersion} is available. Update now?", "Update Available", MessageBoxButton.YesNo); if (result == MessageBoxResult.Yes) { deployment.Update(); Application.Restart(); return true; } } } } catch (DeploymentDownloadException ex) { MessageBox.Show($"Update failed: {ex.Message}"); } return false; } public Version GetCurrentVersion() { if (ApplicationDeployment.IsNetworkDeployed) { return ApplicationDeployment.CurrentDeployment.CurrentVersion; } return Assembly.GetExecutingAssembly().GetName().Version; } }
bash# Publish via dotnet CLI dotnet publish -p:PublishProfile=ClickOnce # Publish via MSBuild msbuild /t:Publish /p:PublishProfile=ClickOnce # Publish with version increment dotnet publish -p:PublishProfile=ClickOnce -p:ApplicationRevision=$(($(date +%s)))
xml<!-- Sign manifests with certificate --> <PropertyGroup> <SignManifests>true</SignManifests> <ManifestCertificateThumbprint>YOUR_CERT_THUMBPRINT</ManifestCertificateThumbprint> <ManifestTimestampRFC3161Url>http://timestamp.digicert.com</ManifestTimestampRFC3161Url> </PropertyGroup>
powershell# Find certificate thumbprint Get-ChildItem -Path Cert:\CurrentUser\My | Format-Table Thumbprint, Subject # Sign manually mage -sign MyApp.application -CertFile cert.pfx -Password mypassword
xml<!-- web.config for ClickOnce hosting --> <?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <staticContent> <mimeMap fileExtension=".application" mimeType="application/x-ms-application"/> <mimeMap fileExtension=".manifest" mimeType="application/x-ms-manifest"/> <mimeMap fileExtension=".deploy" mimeType="application/octet-stream"/> </staticContent> </system.webServer> </configuration>
windows-authenticode-signer - Code signingauto-update-system process - Update workflowdesktop-build-pipeline process - CI/CDwpf-dotnet-expert - .NET expertiserelease-manager - Release coordination| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 11,280 | 9,296 | -18% | 1 | 1 | 0% | 1,912 | 4,622 | +142% | 0 | 0 | — |
case-02 | fail→pass | 12,986 | 7,340 | -43% | 1 | 1 | 0% | 3,063 | 4,065 | +33% | 0 | 0 | — |
case-03 | fail→pass | 12,287 | 8,127 | -34% | 1 | 1 | 0% | 2,930 | 4,185 | +43% | 0 | 0 | — |
case-04 | pass→pass | 5,930 | 5,744 | -3% | 1 | 1 | 0% | 1,187 | 3,202 | +170% | 0 | 0 | — |
case-05 | pass→pass | 14,410 | 13,560 | -6% | 1 | 1 | 0% | 2,966 | 5,164 | +74% | 0 | 0 | — |
case-06 | pass→pass | 15,456 | 10,815 | -30% | 1 | 1 | 0% | 3,106 | 4,465 | +44% | 0 | 0 | — |
case-07 | pass→pass | 3,391 | 4,264 | +26% | 1 | 1 | 0% | 884 | 3,122 | +253% | 0 | 0 | — |
case-08 | fail→pass | 10,041 | 7,048 | -30% | 1 | 1 | 0% | 2,380 | 4,035 | +70% | 0 | 0 | — |
case-09 | pass→fail | 15,839 | 11,737 | -26% | 1 | 1 | 0% | 3,465 | 4,901 | +41% | 0 | 0 | — |
case-10 | pass→pass | 6,101 | 2,304 | -62% | 1 | 1 | 0% | 1,096 | 2,665 | +143% | 0 | 0 | — |
case-11 | fail→pass | 13,271 | 9,220 | -31% | 1 | 1 | 0% | 2,462 | 4,046 | +64% | 0 | 0 | — |
case-12 | pass→pass | 9,166 | 4,820 | -47% | 1 | 1 | 0% | 1,661 | 3,229 | +94% | 0 | 0 | — |
case-13 | pass→pass | 8,320 | 4,415 | -47% | 1 | 1 | 0% | 1,449 | 3,361 | +132% | 0 | 0 | — |
case-14 | fail→pass | 8,108 | 3,313 | -59% | 1 | 1 | 0% | 1,538 | 2,945 | +91% | 0 | 0 | — |
case-15 | pass→pass | 12,485 | 7,895 | -37% | 1 | 1 | 0% | 2,131 | 3,587 | +68% | 0 | 0 | — |
case-16 | pass→pass | 6,568 | 2,998 | -54% | 1 | 1 | 0% | 1,205 | 2,802 | +133% | 0 | 0 | — |
case-17 | pass→pass | 7,001 | 5,023 | -28% | 1 | 1 | 0% | 1,366 | 3,277 | +140% | 0 | 0 | — |
case-18 | pass→pass | 7,551 | 3,058 | -60% | 1 | 1 | 0% | 1,400 | 2,819 | +101% | 0 | 0 | — |
case-19 | pass→pass | 6,672 | 5,286 | -21% | 1 | 1 | 0% | 1,228 | 3,025 | +146% | 0 | 0 | — |
case-20 | pass→pass | 3,924 | 3,771 | -4% | 1 | 1 | 0% | 741 | 2,990 | +304% | 0 | 0 | — |
case-21 | pass→pass | 9,924 | 5,077 | -49% | 1 | 1 | 0% | 1,879 | 3,244 | +73% | 0 | 0 | — |
case-22 | fail→pass | 9,161 | 2,799 | -69% | 1 | 1 | 0% | 1,707 | 2,749 | +61% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +27 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.