signtool/Applocker issue with SmartAssembly 8.1
Windows Forms based EXEs are not affected by this issue. Only Consoles and Services,
Adding secpol.msc Applocker Publisher rule open EXE to get certificate and Product name is blank and version is incorrect.
No SmartAssembly
Build .NET Console application x 64 RELEASE
Sign the EXE using Signtool.exe
Open EXE in Publisher browser Applocker to get certificate
Product name and version correct.,
SmartAssembly Post Build
Build .NET Console application x 64 RELEASE
- Smart Assembly (SA) ->new EXE
Sign the SA EXE using Signtool.exe
Open SA + Signed EXE in Applocker to get certificate
Product name and version not set.
How to resolve? Thanks
Answers
The missing product name and version attributes, do you know where these values are derived from for signtool please?
The values are derived from .AssemblyInfo.cs not signtool.
[assembly: AssemblyVersion("4.8.23.7")]
Console APP: Version and product missing.
You can only see the error after importing into Applocker.. The right click file properties are okay
I can upload a console app that has this issue if helpful.
thanks Adrian
.
I can see an old issue where is there's a merged dependency that has an assembly version attribute set, but the main doesn't, it may overwrite. I appreciate the value substitution isn't quite the same as you described.
Otherwise is the setup applicable please?