I'm looking into creating a automated way to check the running version of our system(s). Whenever we release code to test we version is using
[assembly: AssemblyVersion("1.21.0.13329")]
[assembly: AssemblyFileVersion("1.21.0.13329")]
I now want to extend our ASP.Net Web forms and Web Services to display this version number. So the Web forms app will put it somewhere on the home page and the web service will probably have a web method that returns the version number.
I was thinking of using
Version version = Assembly.GetExecutingAssembly().GetName().Version;
to do this. But I'm concerned that because this is using reflection it could add a performance overhead to my code. It could be getting called several times, especially on the home page and I don't want this to slow response times down.
I have another solution so I don't want alternatives, I just want to know if anyone knows if the performance overhead of this is going to be relatively significant?