Include embedded resource js file from Assembly of another project
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
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