Telerik Web Extensions in plugin

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 Jahre weitere
Hello all,

I finally got my plugin intellisesnse working for the NopCommerce tools. Now its time to get the Telerik controls working.

For some reason the common error "the namespace Telerik.... could not be found." Anyway the Telerik.Web.MVC reference was added by using Nuget package manager (also tried the copy in bin directory of the Nop.Web application).

The error above is appearing in the view such as:


@using Nop.Web.Framework;
@using Telerik.Web.Mvc.UI;
@using (Html.BeginForm())
{
....
}

Is there a reference, a setting or something that i am missing here as to why the Telerik Assembly cant be loaded?

Now the plugin runs just fine, its simply the view that cant locate the assembly therefore no intellisense.

Telerik.Web.MVC version: 2013.2.611.340
11 Jahre weitere
Any ideas? Still looking for a solution... I have tried almost everything I know to get the intellisense working. The embedded view just wont work with Telerik (just for intellisense).

Has anyone got this to work?
11 Jahre weitere
Ok, I have sorted this out.

Firstly I went through NuGet and added the Telerik.Web.Mvc reference. Once it added the reference i then deleted the folder paths

\\Scripts\2013.2.611
\\Content\2013.2.611
\\App_GlobalResources


Next open the web.config and add the assemblies to the sections sections

system.web/pages/namespaces  (note not really needed but added for completness)
system.web.webPages.razor/pages/namespaces/


Next, I set the Telerik.Web.Mvc reference to "Copy Local." Now in most guides this is said not to be done as you dont need to include the references that are already referenced from the main project. However I needed to do all of this for it to work.

Next (as per some other threads) I reset my output path back to the bin\ directory. It previously had been the full presentations\Nop.Web\Plugins output path.

Because I changed my output path to use the bin\ directory I need to copy my dll's and content over to the plugins directory. To do this i just used a few post build events as below. Replace <plugin_name> with your plugin name.


RD /Q /S  $(SolutionDir)Presentation\Nop.Web\Plugins\<plugin_name>\
MD  $(SolutionDir)Presentation\Nop.Web\Plugins\<plugin_name>\
XCOPY /Y /E $(TargetDir)*  $(SolutionDir)Presentation\Nop.Web\Plugins\<plugin_name>\
DEL /Q $(SolutionDir)Presentation\Nop.Web\Plugins\<plugin_name>\Telerik.Web.Mvc.dll


After all this simple closed Visual Studio. Deleted the .suo file (mostly because of the NopCommerce solution bug with VS2013) and re-opened the .SLN file.

Finally when all was initialized did a clean \ rebuild on the solution and Viola we have intellisense.

Not sure what or if all caused it to finally work but glad it did.

Cheers
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.