<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.rws.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Using the SDK / API to determine SDL Trados studio version</title><link>https://community.rws.com/developers-more/trados-portfolio/trados-studio-developers/f/sdk_qa/14748/using-the-sdk-api-to-determine-sdl-trados-studio-version</link><description>Hi 
 How to I get the current version and edition of Studio from a C# plugin running inside Studio? 
 This post: https://community.sdl.com/developers-more/developers/language-developers/f/57/t/118 talks about stuff that I can&amp;#39;t see exists anymore in the</description><dc:language>en-US</dc:language><generator>Telligent Community 12 Non-Production</generator><item><title>RE: Using the SDK / API to determine SDL Trados studio version</title><link>https://community.rws.com/thread/52738?ContentTypeID=1</link><pubDate>Fri, 03 Nov 2017 12:09:51 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:71a5d5e6-b1ba-40e4-bedf-b170a78b9472</guid><dc:creator>Andrea-Melinda Ghisa</dc:creator><description>You are welcome.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the SDK / API to determine SDL Trados studio version</title><link>https://community.rws.com/thread/52701?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2017 13:44:05 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:fe5b7004-42a2-451d-bce8-84f38fa9370d</guid><dc:creator>Ruvan Fernando</dc:creator><description>Ok, that was easy, it&amp;#39;s in studioService.GetStudioVersion(). My bad.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the SDK / API to determine SDL Trados studio version</title><link>https://community.rws.com/thread/52674?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2017 08:29:29 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:0d79d235-505d-4641-8cfb-becb95a4c76f</guid><dc:creator>Ruvan Fernando</dc:creator><description>Hi Andrea&lt;br /&gt;
Thanks for this. Good stuff. How about the actual currently studio version my plugin is running from? Is that info available? &lt;br /&gt;
THANKS!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the SDK / API to determine SDL Trados studio version</title><link>https://community.rws.com/thread/52670?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2017 08:08:23 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:42177fd0-60f4-44fc-a45d-cdd23a2ea876</guid><dc:creator>hiroshi kameya</dc:creator><description>Hi Andrea&lt;br /&gt;
That&amp;#39;s very convenient.&lt;br /&gt;
Thank you for telling me.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the SDK / API to determine SDL Trados studio version</title><link>https://community.rws.com/thread/52668?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2017 07:50:45 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:466b66e2-e3e9-4972-b6e6-a7d12d33a2b1</guid><dc:creator>Andrea-Melinda Ghisa</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="/members/kameya_5f00_h"&gt;hiroshi kameya&lt;/a&gt;&amp;nbsp;,&lt;br /&gt; &lt;br /&gt; If you download from Nuget: Sdl.Community.Toolkit.Core you&amp;#39;ll be able to see all Studio versions installed on the machine.&lt;br /&gt; &lt;br /&gt; To do so you need a instance of StudioVersionService :&lt;br /&gt; &lt;br /&gt; var studioService = new StudioVersionService();&lt;br /&gt; var studioList = studioService.GetInstalledStudioVersions();&lt;br /&gt; &lt;br /&gt; Kind regards,&lt;br /&gt; &lt;br /&gt; Andrea Ghisa.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the SDK / API to determine SDL Trados studio version</title><link>https://community.rws.com/thread/52649?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2017 05:39:31 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:d6bbda64-0d44-4ddc-9ed2-d6654655f158</guid><dc:creator>hiroshi kameya</dc:creator><description>As I couldn&amp;#39;t find such API, I wrote the above code before.&lt;br /&gt;
Romulus might tell us if the API exists.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the SDK / API to determine SDL Trados studio version</title><link>https://community.rws.com/thread/52638?ContentTypeID=1</link><pubDate>Wed, 01 Nov 2017 20:13:58 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:2f67cffb-d620-4513-9d68-401d5bd29898</guid><dc:creator>Ruvan Fernando</dc:creator><description>Hi Hiroshi&lt;br /&gt;
Thanks for this. I was hoping for something more generic, preferably using the API from within C#. It this not possible? &lt;br /&gt;
&lt;br /&gt;
I mean, if they decided to change the directoy in later versions this would not work very well, and it really does not guarantee that this is the version the user is infact running studio from.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using the SDK / API to determine SDL Trados studio version</title><link>https://community.rws.com/thread/52598?ContentTypeID=1</link><pubDate>Wed, 01 Nov 2017 02:23:36 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:8e911bbb-63c6-4acb-a37c-4f2c61d9fce1</guid><dc:creator>hiroshi kameya</dc:creator><description>&lt;p&gt;Hi. &amp;nbsp;How about this?&lt;/p&gt;
&lt;pre&gt;using System;&lt;br /&gt;using System.Diagnostics;&lt;br /&gt;using System.IO;&lt;br /&gt;using System.Reflection;&lt;br /&gt;using System.Resources;&lt;br /&gt;&lt;br /&gt;public static string Version()
{
    var x86Folderpath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86);
    const string exeRelativepath = @&amp;quot;SDL\SDL Trados Studio\Studio4\SDLTradosStudio.exe&amp;quot;;
    var exeFullpath = Path.Combine(x86Folderpath, exeRelativepath);
    var assembly = Assembly.LoadFrom(exeFullpath);
    var resourceManager = new ResourceManager(&amp;quot;Sdl.TranslationStudio.Application.StringResources&amp;quot;, assembly);
    var version = string.Format(resourceManager.GetString(&amp;quot;Version&amp;quot;),
        $&amp;quot;- {FileVersionInfo.GetVersionInfo(exeFullpath).FileVersion}&amp;quot;);
    return version;
}&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>