Try our conversational search powered by Generative AI!

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



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.

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

This might work (have not tried myself)

Dec 23, 2014 17:32

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.

Dec 23, 2014 23:06

It might be but no one that I know of.

have a nice time away from work!

Dec 25, 2014 20:45

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

Dec 30, 2014 13:30

Great Tore, now I have learned something new :)

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.