brutaldev / StrongNameSigner

Strong-name sign third party .NET assemblies without the source code.
https://brutaldev.com/post/net-assembly-strong-name-signer
Other
327 stars 68 forks source link

NullReferenceException when using TunnelVisionLabs.ReferenceAssemblyAnnotator #62

Closed smklancher closed 3 years ago

smklancher commented 3 years ago

Building the attached project produces NullReferenceException: Object reference not set to an instance of an object. at Brutal.Dev.StrongNameSigner.AutomaticBuildTask.Execute()

Apparently it tries to sign the annotated assemblies referenced by TunnelVisionLabs.ReferenceAssemblyAnnotator, but isn't successful, which leads to SignSingleAssembly returning null. Calling code does note expect or handle a possible null.

NREWithReferenceAssemblyAnnotator.zip