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

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Achraf
    Achraf avatar
    1 posts
    14 Apr 2016
    14 Apr 2016
    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") }))


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

    This isn't working either.


    With regards,


  2. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    06 Sep 2017
    19 Apr 2016
    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::

    Svetoslav Manchev
    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