+1-888-365-2779
Try Now
More in this section

Forums / Project Feather / Include embedded resource js file from Assembly of another project

Include embedded resource js file from Assembly of another project

2 posts, 0 answered
  1. Achraf
    Achraf avatar
    1 posts
    Registered:
    14 Apr 2016
    14 Apr
    Link to this post

    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

  2. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    29 Sep 2016
    19 Apr
    Link to this post
    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
     
2 posts, 0 answered