Visual studio + nopCommerce = Broken

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

I've been very fustrated using VS to customize nopCommerce in regrds to the fact that MANY objects are underlined in RED and VS has no clue how to navigate to such ('go to definition').

This is all over the project - building it does not change anything.

Why is this happening?, when most projects I create and work with never have these issues? I'm using VS2010 and VS 2012

Examples of bad code in VS:

@model xxx (in all theme Views)
@model in project Views (most or all views)

All html.xxx() in all views
Html.AddTitleParts(!String.IsNullOrEmpty(Model.MetaTitle) ? Model.MetaTitle : Model.Name);
Html.AddMetaDescriptionParts(Model.MetaDescription);
Html.AddMetaKeywordParts(Model.MetaKeywords);

@Html.Action("ProductBreadcrumb", "Catalog", new { productId = Model.Id })

@Url.RouteUrl("ContactUs")">@T("ContactUs")
11 years ago
make sure you reference the mvc dlls (mvc,webpages etc) from the packages folder
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.