I have been reading the AssemblyFileVersion
using code similar to this but can no longer use Assembly.GetExecutingAssembly
(or any methods in the Assembly namespace) due to security restrictions.
(As an aside - this is the security restrictions imposed by SharePoint Online which does some interrogation of your assembly upon upload and rejects it if you use certain forbidden parts of the framework)
So are there any other ways of getting the Assembly File Version?
I am guessing no, so are there any ways of putting the AssemblyFileVersion attribute from AssemblyInfo.cs into something like a resource file or a constant so it can be accessed at runtime without using GetExectingAssembly?