Curated Examples
README
- Source repository: https://github.com/EvotecIT/PSPublishModule
- Example group:
DotNetPublish
DotNetPublish Examples
This folder contains starter examples for the DotNet publish engine.
Files:
Example.ServiceMsi.json- service packaging + MSI prepare/build pattern.
Example.GeneratedServiceMsi.json- service packaging + generated WiX SDK MSI authoring pattern.
Example.RebuildState.json- rebuild/state preservation pattern with service lifecycle.
Example.PortableBundleMsi.json- desktop app + service sidecar + portable bundle + MSI pattern.
Example.PackageBundleMsi.json- service/CLI package layout with README copy, module payload include, generated wrapper script, bundle post-process, and MSI from the composed bundle.
Example.StorePackage.json- desktop app + Store/MSIX packaging project pattern.
Example.StoreSubmit.json- packaged-app Partner Center submission pattern for
powerforge store submit.
- packaged-app Partner Center submission pattern for
Example.StoreDesktopSubmit.json- MSI/EXE Partner Center submission pattern for
powerforge store submit.
- MSI/EXE Partner Center submission pattern for
These are intentionally production-shaped templates. Update project/service/installer paths for your repository before running.
Typical Usage
- Copy one template to repo root:
Copy-Item '.\Module\Examples\DotNetPublish\Example.ServiceMsi.json' '.\powerforge.dotnetpublish.json'
For desktop/portable delivery:
Copy-Item '.\Module\Examples\DotNetPublish\Example.PortableBundleMsi.json' '.\powerforge.dotnetpublish.json'
Adjust
Projects,Targets,Installers,StorePackages, or Store submission paths as needed.Validate and plan:
Invoke-DotNetPublish -ConfigPath '.\powerforge.dotnetpublish.json' -Validate
Invoke-DotNetPublish -ConfigPath '.\powerforge.dotnetpublish.json' -Plan
- Run:
Invoke-DotNetPublish -ConfigPath '.\powerforge.dotnetpublish.json' -ExitCode
Notes
Example.ServiceMsi.jsonexpects a WiX installer project (*.wixproj).Example.GeneratedServiceMsi.jsonusesInstallers[].Authoringto generateProduct.wxsand a WiX SDK project duringmsi.build; useTypeon each authoring component (File,Folder,RemoveFolder,Service,RegistryValue,Shortcut). It also shows typed finish-page launch and RTF license agreement authoring throughExitLaunchandLicenseAgreement.Example.RebuildState.jsonis aimed at preserve/restore deployments and service-aware rebuild flows.Example.PortableBundleMsi.jsonshows how to useBundles, include sidecar targets, and build an MSI from the composed bundle instead of the raw publish output.Example.PackageBundleMsi.jsonis the starter for TierBridge-style packages: composed service/CLI payload, shipped PowerShell module, generated scripts, ZIP, and MSI from the bundle.Example.StorePackage.jsonshows how to keep Store/MSIX packaging in the same PowerForge publish matrix as the app target.Example.StoreSubmit.jsonshows how to submit a packaged-app ZIP to Partner Center from the DotNetPublish manifest afterStorePackages[]produces the*.msixuploador*.appxuploadartifact.Example.StoreDesktopSubmit.jsonshows how to submit MSI/EXE metadata through the newer desktop Store submission API.- For command naming and fast overrides, see:
Docs/PSPublishModule.DotNetPublish.Quickstart.md