Include embedded resource js file from Assembly of another p

Posted by Community Admin on 05-Aug-2018 10:04

Include embedded resource js file from Assembly of another project

All Replies

Posted by Community Admin on 14-Apr-2016 00:00

Hey, guys!

We may be missing something out but we couldn't find a way to embed a script resource from another project through it's dll. The minified version of the js file is already embedded into it's project dll.

We try to use a method from the minified file on a another custom and bundled javascript file whose to be included onto the website.

 

Could you guys give me an example on how to implement this file in the website or widget so we could use the method in the other file that is to be loaded into the website on startup.

For example:

@Html.Script(@Url.Action("GetEmbeddedResource", "Shared", new resourceName = "uriHelper.min.js", pluginAssemblyName = @Url.Content("~/bin/Debug/USG.SF.FrameWork.dll") ))

OR

@Html.Script(Url.EmbeddedResource("USG.SF.FrameWork.Web.JS", "USG.SF.FrameWork.Web.JS.uriHelper.min.js"))

This isn't working either.

 

With regards,

Achraf

Posted by Community Admin on 19-Apr-2016 00:00

Hello Achraf,

Can you please confirm your Sitefinity and Feather versions and if the Feather module is active.

In that case you should able to use the approach described here to register the assemblies in the MVC View::
http://docs.sitefinity.com/feather-refer-to-resources-inside-views#register-scripts-and-style-sheets-from-another-assembly

Regards,
Svetoslav Manchev
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

This thread is closed