Repository navigation
Allows a Windows build to be build on Linux for dev testing - #6188
Open
ramonsmits wants to merge 1 commit into
Open
ramonsmits wants to merge 1 commit into
ramonsmits wants to merge 1 commit into
Conversation
ramonsmits
force-pushed
the
fix-persistence-manifest-lookup
branch
2 times, most recently
from
November 25, 2026 14:08
609efdf to
31c49dc
Compare
ramonsmits
force-pushed
the
fix-persistence-manifest-lookup
branch
from
November 25, 2026 14:12
31c49dc to
89385bd
Compare
The name of an embedded manifest came from %(RecursiveDir), which contains the directory separator of the operating system that builds the assembly. The lookup expected '\'. An installer engine built on Linux found no persistence manifest, and the PowerShell cmdlets accepted no value for -StorageType. The project file now writes '/' in the resource name on each operating system, and the lookup uses '/'.
ramonsmits
force-pushed
the
fix-persistence-manifest-lookup
branch
from
November 25, 2026 14:12
89385bd to
e31ecca
Compare
ramonsmits
commented
Nov 25, 2026
| <Manifest Include="..\..\deploy\Particular.ServiceControl\Transports\**\transport.manifest" /> | ||
| <EmbeddedResource Include="@(Zip)" LogicalName="%(Filename)%(Extension)" /> | ||
| <EmbeddedResource Include="@(Manifest)" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" /> | ||
| <EmbeddedResource Include="@(Manifest)" LogicalName="$([System.String]::Copy('%(RecursiveDir)').Replace($([System.IO.Path]::DirectorySeparatorChar), $([System.IO.Path]::AltDirectorySeparatorChar)))%(Filename)%(Extension)" /> |
Member
Author
There was a problem hiding this comment.
The magic here is that on the OS where this is run DirectorySeparatorChar behaves differenly and both are unified to AltDirectorySeparatorChar which is fixed
danielmarbach
approved these changes
Nov 25, 2026
|
|
||
| primaryPersistenceManifests = resourceNames | ||
| .Where(name => name.StartsWith(@"Particular.ServiceControl\Persisters")) | ||
| .Where(name => name.StartsWith("Particular.ServiceControl/Persisters/")) |
Contributor
There was a problem hiding this comment.
Why does the end slash matter?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR This allows a Windows build to be build on Linux for dev testing.
A PowerShell module built on Linux (
-p:WindowsSelfContained=true) accepts no value for-StorageType.New-ServiceControlInstanceandNew-ServiceControlAuditInstancethen fail on theValidateSetcheck.persistence.manifestcontains the directory separator of the operating system that built the assembly:/on Linux,\on Windows.ServiceControlPersistersaccepted only\, so a Linux build found no manifest.A build on Windows is not affected, thus the release builds have no change in behavior.
PersistenceManifestTestscovers the manifest lists.