This helper publishes the currently publishable OMP projects and skips the shared library projects.
- OpenModulePlatform.Portal
- OpenModulePlatform.Service.ExampleServiceAppModule
- OpenModulePlatform.Web.ExampleServiceAppModule
- OpenModulePlatform.Web.ExampleWebAppBlazorModule
- OpenModulePlatform.Web.ExampleWebAppModule
- OpenModulePlatform.Web.ExampleWorkerAppModule
- OpenModulePlatform.Worker.ExampleWorkerAppModule
- OpenModulePlatform.WorkerManager.WindowsService
- OpenModulePlatform.WorkerProcessHost
Excluded on purpose:
- OpenModulePlatform.Web.Shared
- OpenModulePlatform.Worker.Abstractions
- Native
dotnetcommands are now executed with$PSNativeCommandUseErrorActionPreference = $falseinside a local script block. - Restore and publish output are captured into log files instead of surfacing as
NativeCommandErrorfrom stderr. - The script auto-detects
OpenModulePlatform.slnxorOpenModulePlatform.slnin the repo root. - Restore now writes to
artifacts\publish\restore.log.
Run the script from the repo root:
.\publish-all.ps1 -Restore -CleanOutputRun in parallel with four workers:
.\publish-all.ps1 -Restore -CleanOutput -Parallel -MaxParallel 4Publish for Windows x64 framework-dependent:
.\publish-all.ps1 -Restore -CleanOutput -Parallel -MaxParallel 4 -Runtime win-x64 -SelfContained:$falsePublish for Windows x64 self-contained:
.\publish-all.ps1 -Restore -CleanOutput -Parallel -MaxParallel 4 -Runtime win-x64 -SelfContained:$trueThe default output root is:
artifacts\publish\<ProjectName>
Each project also gets its own log file:
artifacts\publish\<ProjectName>.publish.log
Restore also gets its own log file:
artifacts\publish\restore.log