Hi All,
Is there any straigthforward way to tell from a running plugin if I've been loaded by Studio 2014 or if instead, I've been loaded by Studio 2014 SP1?
Josep.
Hi All,
Is there any straigthforward way to tell from a running plugin if I've been loaded by Studio 2014 or if instead, I've been loaded by Studio 2014 SP1?
Josep.
Hi Josep,
You can get the file version from the current executable. If the version major and minor are 11.0 then you are dealing with Studio 2014, if it is 11.1 then it is Studio 2014 SP1.
Here is a sample how you can get the current executable file version:
System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetEntryAssembly().Location).FileVersion
Sorin
Hi Josep,
You can get the file version from the current executable. If the version major and minor are 11.0 then you are dealing with Studio 2014, if it is 11.1 then it is Studio 2014 SP1.
Here is a sample how you can get the current executable file version:
System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetEntryAssembly().Location).FileVersion
Sorin