Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public static string Version()
var x86Folderpath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86);
const string exeRelativepath = @"SDL\SDL Trados Studio\Studio4\SDLTradosStudio.exe";
var exeFullpath = Path.Combine(x86Folderpath, exeRelativepath);
var assembly = Assembly.LoadFrom(exeFullpath);
var resourceManager = new ResourceManager("Sdl.TranslationStudio.Application.StringResources", assembly);
var version = string.Format(resourceManager.GetString("Version"),
$"- {FileVersionInfo.GetVersionInfo(exeFullpath).FileVersion}");
return version;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment