is there a way to patch a native DLL (not managed) with the build number? so when I right click on the dll and choose Properties I can see in the Details tab "Production Version" as the build number? or maybe any other property there set as build number generated by appveyor?
I did turn on the ASsemblyInfo patching but the native DLL (not managed) was not patched with the build number, so I suspect this AssemblyInfo is just for managed assemblies?...
What I need is the build number appveyor generates with every build to be accessible "somehow" to the methods defined in the native DLL therefor at run time to be able to use this build number.
Can you please help out? thank you
AssemblyInfo.cs is for managed assemblies. For native dlls I found this useful discussion. There are a lot of solutions in that discussion, I like the one based on rcedit
because of it's simplicity. You can use it with the following simple commands:
appveyor downloadfile "https://github.com/electron/rcedit/releases/download/v0.1.0/rcedit.exe"
rcedit.exe <path_to_native_dll> --set-product-version %appveyor_build_version%