Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Detect which version of EPiServer.CMS.UI.Core is installed

Vote:
 

Hi,

Is it possible to detect runtime which version of EPiServer.CMS.UI.Core that is installed? I want to programmatically create a VPP so I can override some of the files that located in the nuget package.

#114827
Dec 23, 2014 14:40
Vote:
 
Assembly assembly = Assembly.LoadFrom("MyAssembly.dll");
Version ver = assembly.GetName().Version;


This might work (have not tried myself)

#114833
Dec 23, 2014 17:32
Vote:
 

Hi Henrik,

Thanks for your answer. I was hoping for a more build in way in the EPiServer framework. I guess they use some functionality to create the ClientResources URL.

#114841
Dec 23, 2014 23:06
Vote:
 

It might be but no one that I know of.

have a nice time away from work!

#114861
Dec 25, 2014 20:45
Vote:
 

EPiServer.Shell.Paths.ToClientResource("CMS", "") did the trick :)

#114894
Dec 30, 2014 13:30
Vote:
 

Great Tore, now I have learned something new :)

#114895
Dec 30, 2014 13:39
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.