diff --git a/src/Sign.Core/DataFormatSigners/ClickOnceSigner.cs b/src/Sign.Core/DataFormatSigners/ClickOnceSigner.cs
index 4dec8194..58986f0c 100644
--- a/src/Sign.Core/DataFormatSigners/ClickOnceSigner.cs
+++ b/src/Sign.Core/DataFormatSigners/ClickOnceSigner.cs
@@ -162,6 +162,13 @@ await Parallel.ForEachAsync(files, _parallelOptions, async (file, state) =>
.Select(f => f.file)
.ToList();
+ // If the user supplies the path to a deployment manifest as the file to sign, and also supplies
+ // a file path filter via --file-list which DOES NOT match the deployment manifest path, then
+ // it won't be signed even though the rest of the files were. This is not an expected configuration
+ // so we should explicitly reject such a situation.
+ if (!deploymentManifestFiles.Any())
+ throw new InvalidOperationException(Resources.NoDeploymentManifestsSelectedForSigning);
+
foreach (FileInfo deploymentManifestFile in deploymentManifestFiles)
{
fileArgs = $@"-update ""{deploymentManifestFile.FullName}"" {args} {publisherParam}";
@@ -274,4 +281,4 @@ public void CopySigningDependencies(FileInfo deploymentManifestFile, DirectoryIn
}
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Sign.Core/Resources.Designer.cs b/src/Sign.Core/Resources.Designer.cs
index 2cd9c9a6..931985dd 100644
--- a/src/Sign.Core/Resources.Designer.cs
+++ b/src/Sign.Core/Resources.Designer.cs
@@ -60,6 +60,15 @@ internal Resources() {
}
}
+ ///
+ /// Looks up a localized string similar to Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest..
+ ///
+ internal static string ApplicationManifestNotFound {
+ get {
+ return ResourceManager.GetString("ApplicationManifestNotFound", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Signing SignTool job with {count} files..
///
@@ -249,6 +258,15 @@ internal static string MultiplePrivateKeyContainersError {
}
}
+ ///
+ /// Looks up a localized string similar to No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters.
+ ///
+ internal static string NoDeploymentManifestsSelectedForSigning {
+ get {
+ return ResourceManager.GetString("NoDeploymentManifestsSelectedForSigning", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Private key container missing while using /csp. Use /k or /km to provide a key container..
///
diff --git a/src/Sign.Core/Resources.resx b/src/Sign.Core/Resources.resx
index 4ca2c0db..0052ad10 100644
--- a/src/Sign.Core/Resources.resx
+++ b/src/Sign.Core/Resources.resx
@@ -275,4 +275,10 @@
The algorithm selected is not supported.
+
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+
+
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+
\ No newline at end of file
diff --git a/src/Sign.Core/xlf/Resources.cs.xlf b/src/Sign.Core/xlf/Resources.cs.xlf
index 10eedd92..2cdeab92 100644
--- a/src/Sign.Core/xlf/Resources.cs.xlf
+++ b/src/Sign.Core/xlf/Resources.cs.xlf
@@ -2,6 +2,11 @@
+
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+
+ Signing SignTool job with {count} files.Podepisování úlohy SignTool s tímto počtem souborů: {count}.
@@ -107,6 +112,11 @@
Poskytlo se několik kontejnerů privátních klíčů. Pro úložiště uživatele použijte /k a pro úložiště počítače použijte /km.
+
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+
+ Private key container missing while using /csp. Use /k or /km to provide a key container.Při použití /csp chybí kontejner privátního klíče. K poskytnutí kontejneru klíčů použijte /k nebo /km.
diff --git a/src/Sign.Core/xlf/Resources.de.xlf b/src/Sign.Core/xlf/Resources.de.xlf
index 36fe225f..fbf6f745 100644
--- a/src/Sign.Core/xlf/Resources.de.xlf
+++ b/src/Sign.Core/xlf/Resources.de.xlf
@@ -2,6 +2,11 @@
+
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+
+ Signing SignTool job with {count} files.Der SignTool-Auftrag wird mit {count} Dateien signiert.
@@ -107,6 +112,11 @@
Es wurden mehrere Container mit privatem Schlüssel bereitgestellt. Verwenden Sie entweder "/k" für Benutzerspeicher oder "/km" für Computerspeicher.
+
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+
+ Private key container missing while using /csp. Use /k or /km to provide a key container.Der Container für den privaten Schlüssel fehlt bei Verwendung von "/csp". Verwenden Sie "/k" oder "/km", um einen Schlüsselcontainer bereitzustellen.
diff --git a/src/Sign.Core/xlf/Resources.es.xlf b/src/Sign.Core/xlf/Resources.es.xlf
index 5f568dfa..81e48c66 100644
--- a/src/Sign.Core/xlf/Resources.es.xlf
+++ b/src/Sign.Core/xlf/Resources.es.xlf
@@ -2,6 +2,11 @@
+
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+
+ Signing SignTool job with {count} files.Firmando el trabajo de SignTool con {count} archivos.
@@ -107,6 +112,11 @@
Se proporcionaron varios contenedores de clave privada. Use /k para almacenes de usuarios o /km para almacenes de máquinas.
+
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+
+ Private key container missing while using /csp. Use /k or /km to provide a key container.Falta el contenedor de clave privada al usar /csp. Use /k o /km para proporcionar un contenedor de claves.
diff --git a/src/Sign.Core/xlf/Resources.fr.xlf b/src/Sign.Core/xlf/Resources.fr.xlf
index 69dcaead..91a546cc 100644
--- a/src/Sign.Core/xlf/Resources.fr.xlf
+++ b/src/Sign.Core/xlf/Resources.fr.xlf
@@ -2,6 +2,11 @@
+
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+
+ Signing SignTool job with {count} files.Signature du travail SignTool avec {count} fichiers.
@@ -107,6 +112,11 @@
Plusieurs conteneurs de clé privée ont été fournis. Utilisez /k pour les magasins d’utilisateurs ou /km pour les magasins d’ordinateurs.
+
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+
+ Private key container missing while using /csp. Use /k or /km to provide a key container.Le conteneur de clé privée est manquant lors de l’utilisation de /csp. Utilisez /k ou /km pour fournir un conteneur de clé.
diff --git a/src/Sign.Core/xlf/Resources.it.xlf b/src/Sign.Core/xlf/Resources.it.xlf
index 203f3a25..d309ec7a 100644
--- a/src/Sign.Core/xlf/Resources.it.xlf
+++ b/src/Sign.Core/xlf/Resources.it.xlf
@@ -2,6 +2,11 @@
+
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+
+ Signing SignTool job with {count} files.Firma del processo SignTool con {count} file.
@@ -107,6 +112,11 @@
Sono stati specificati più contenitori di chiavi private. Utilizzare /k per gli archivi utente o /km per gli archivi computer.
+
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+
+ Private key container missing while using /csp. Use /k or /km to provide a key container.Contenitore di chiavi private mancante durante l'utilizzo di /csp. Usare /k o /km per specificare un contenitore di chiavi.
diff --git a/src/Sign.Core/xlf/Resources.ja.xlf b/src/Sign.Core/xlf/Resources.ja.xlf
index db44e64d..572e0048 100644
--- a/src/Sign.Core/xlf/Resources.ja.xlf
+++ b/src/Sign.Core/xlf/Resources.ja.xlf
@@ -2,6 +2,11 @@
+
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+
+ Signing SignTool job with {count} files.{count} 個のファイルを使用して SignTool ジョブに署名しています。
@@ -107,6 +112,11 @@
複数の秘密キー コンテナーが提供されています。ユーザー ストアの場合は /k、コンピューター ストアの場合は /km を使用します。
+
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+
+ Private key container missing while using /csp. Use /k or /km to provide a key container./csp の使用中に秘密キー コンテナーが見つかりません。キー コンテナーを指定するには、/k または /km を使用します。
diff --git a/src/Sign.Core/xlf/Resources.ko.xlf b/src/Sign.Core/xlf/Resources.ko.xlf
index cf25df6f..30d0238c 100644
--- a/src/Sign.Core/xlf/Resources.ko.xlf
+++ b/src/Sign.Core/xlf/Resources.ko.xlf
@@ -2,6 +2,11 @@
+
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+
+ Signing SignTool job with {count} files.{count} 파일로 SignTool 작업에 서명하는 중입니다.
@@ -107,6 +112,11 @@
여러 프라이빗 키 컨테이너가 제공되었습니다. 사용자 저장소에는 /k를, 컴퓨터 저장소에는 /km를 사용합니다.
+
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+
+ Private key container missing while using /csp. Use /k or /km to provide a key container./csp를 사용하는 동안 프라이빗 키 컨테이너가 없습니다. /k 또는 /km를 사용하여 키 컨테이너를 제공합니다.
diff --git a/src/Sign.Core/xlf/Resources.pl.xlf b/src/Sign.Core/xlf/Resources.pl.xlf
index c9db68da..e72c7fb4 100644
--- a/src/Sign.Core/xlf/Resources.pl.xlf
+++ b/src/Sign.Core/xlf/Resources.pl.xlf
@@ -2,6 +2,11 @@
+
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+
+ Signing SignTool job with {count} files.Podpisywanie zadania SignTool przy użyciu {count} plików.
@@ -107,6 +112,11 @@
Podano wiele kontenerów kluczy prywatnych. Użyj opcji /k dla magazynów użytkowników lub opcji /km dla magazynów komputerów.
+
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+
+ Private key container missing while using /csp. Use /k or /km to provide a key container.Brak kontenera kluczy prywatnych podczas używania opcji /csp. Użyj opcji /k lub /km, aby podać kontener kluczy.
diff --git a/src/Sign.Core/xlf/Resources.pt-BR.xlf b/src/Sign.Core/xlf/Resources.pt-BR.xlf
index a405b988..001b918b 100644
--- a/src/Sign.Core/xlf/Resources.pt-BR.xlf
+++ b/src/Sign.Core/xlf/Resources.pt-BR.xlf
@@ -2,6 +2,11 @@
+
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+
+ Signing SignTool job with {count} files.Autenticando o trabalho SignTool com {count} arquivos.
@@ -107,6 +112,11 @@
Vários contêineres de chave privada fornecidos. Use /k para repositórios de usuários ou /km para repositórios de computadores.
+
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+
+ Private key container missing while using /csp. Use /k or /km to provide a key container.Contêiner de chave privada ausente ao usar /csp. Use /k ou /km para fornecer um contêiner de chave.
diff --git a/src/Sign.Core/xlf/Resources.ru.xlf b/src/Sign.Core/xlf/Resources.ru.xlf
index 13aaacb1..7a9a91dc 100644
--- a/src/Sign.Core/xlf/Resources.ru.xlf
+++ b/src/Sign.Core/xlf/Resources.ru.xlf
@@ -2,6 +2,11 @@
+
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+
+ Signing SignTool job with {count} files.Задание подписывания SignTool с несколькими файлами ({count}).
@@ -107,6 +112,11 @@
Предоставлено несколько контейнеров закрытых ключей. Используйте /k для хранилищ пользователей или /km для хранилищ компьютеров.
+
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+
+ Private key container missing while using /csp. Use /k or /km to provide a key container.Отсутствует контейнер закрытого ключа при использовании /csp. Используйте /k или /km для предоставления контейнера ключей.
diff --git a/src/Sign.Core/xlf/Resources.tr.xlf b/src/Sign.Core/xlf/Resources.tr.xlf
index aac32f14..0edc09f8 100644
--- a/src/Sign.Core/xlf/Resources.tr.xlf
+++ b/src/Sign.Core/xlf/Resources.tr.xlf
@@ -2,6 +2,11 @@
+
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+
+ Signing SignTool job with {count} files.SignTool işi {count} dosya ile imzalanıyor.
@@ -107,6 +112,11 @@
Birden çok özel anahtar kapsayıcısı sağlandı. Kullanıcı depoları için /k veya makine depoları için /km kullanın.
+
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+
+ Private key container missing while using /csp. Use /k or /km to provide a key container./csp kullanılırken özel anahtar kapsayıcısı eksik. Anahtar kapsayıcısı sağlamak için /k veya /km kullanın.
diff --git a/src/Sign.Core/xlf/Resources.zh-Hans.xlf b/src/Sign.Core/xlf/Resources.zh-Hans.xlf
index cf8ecb11..3932a1dc 100644
--- a/src/Sign.Core/xlf/Resources.zh-Hans.xlf
+++ b/src/Sign.Core/xlf/Resources.zh-Hans.xlf
@@ -2,6 +2,11 @@
+
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+
+ Signing SignTool job with {count} files.正在对包含 {count} 个文件的 SignTool 作业进行签名。
@@ -107,6 +112,11 @@
提供了多个私钥容器。对用户存储使用 /k,或者对计算机存储使用 /km。
+
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+
+ Private key container missing while using /csp. Use /k or /km to provide a key container.使用 /csp 时缺少私钥容器。使用 /k 或 /km 提供密钥容器。
diff --git a/src/Sign.Core/xlf/Resources.zh-Hant.xlf b/src/Sign.Core/xlf/Resources.zh-Hant.xlf
index 1fb97a2e..703aa76f 100644
--- a/src/Sign.Core/xlf/Resources.zh-Hant.xlf
+++ b/src/Sign.Core/xlf/Resources.zh-Hant.xlf
@@ -2,6 +2,11 @@
+
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+ Did not find exactly 1 <dependentAssembly> element with a non-empty 'codebase' attribute within the deployment manifest.
+
+ Signing SignTool job with {count} files.正在簽署具有 {count} 個檔案的 SignTool 工作。
@@ -107,6 +112,11 @@
已提供多個私密金鑰。使用者存放區使用 /k,機器存放區則使用 /km。
+
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+ No deployment manifest files have been detected for signing, possibly because they've been excluded via file path filters
+
+ Private key container missing while using /csp. Use /k or /km to provide a key container.使用 /csp 時遺漏私密金鑰容器。使用 /k 或 /km 來提供金鑰容器。