We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1eb4018 commit 70b2954Copy full SHA for 70b2954
src/PostSharp.Engineering.BuildTools/Build/BuildCommand.cs
@@ -293,6 +293,21 @@ void Sign( string filter )
293
return false;
294
}
295
296
+ // Verify signed NuGet packages.
297
+ foreach ( var nupkg in Directory.EnumerateFiles( publicArtifactsDirectory, "*.nupkg" ) )
298
+ {
299
+ if ( !ToolInvocationHelper.InvokeTool(
300
+ context.Console,
301
+ "dotnet",
302
+ $"nuget verify --all \"{nupkg}\"",
303
+ context.RepoDirectory ) )
304
305
+ context.Console.WriteError( $"Signature verification failed for '{Path.GetFileName( nupkg )}'." );
306
+
307
+ return false;
308
+ }
309
310
311
// Zipping public artifacts.
312
CreateZip( publicArtifactsDirectory );
313
0 commit comments