Skip to content
Prev Previous commit
Next Next commit
detect the app manifest by looking it up, rather than assuming we hav…
…e 0/1 files with a .manifest extension
  • Loading branch information
jmtpt committed Aug 27, 2024
commit 929a797d65702e836db036feb19108b6b69a081e
4 changes: 2 additions & 2 deletions src/Sign.Core/DataFormatSigners/ClickOnceSigner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ await Parallel.ForEachAsync(files, _parallelOptions, async (file, state) =>

// Inner files are now signed
// now look for the manifest file and sign that if we have one

FileInfo? manifestFile = filteredFiles.SingleOrDefault(f => ".manifest".Equals(f.Extension, StringComparison.OrdinalIgnoreCase));
var appManifestFromDeploymentManifest = GetApplicationManifestForDeploymentManifest(file);
FileInfo? manifestFile = filteredFiles.SingleOrDefault(f => f.Name.Equals(appManifestFromDeploymentManifest?.Name, StringComparison.OrdinalIgnoreCase));

string fileArgs = $@"-update ""{manifestFile}"" {args}";

Expand Down