i working on mvc 5 project using mvcbuildviews , mvcsitemapprovider. trying enable mvcbuildviews editing project file with:
<mvcbuildviews>true</mvcbuildviews> and
<target name="mvcbuildviews" aftertargets="afterbuild" condition="'$(mvcbuildviews)'=='true'"> <aspnetcompiler virtualpath="temp" physicalpath="$(webprojectoutputdir)" /> </target> after doing this, try build site. compiler returns these errors in sitemapprovider templates:
the name 'model' not exist in current context c:\inetpub\wwwroot\xxxxxxx\packages\mvcsitemapprovider.web.4.6.1\content\views\shared\displaytemplates\sitemaphelpermodel.cshtml
'system.web.webpages.html.htmlhelper' not contain definition 'displayfor' , no extension method 'displayfor' accepting first argument of type 'system.web.webpages.html.htmlhelper' found (are missing using directive or assembly reference?) c:\inetpub\wwwroot\xxxxxxx\packages\mvcsitemapprovider.web.4.6.1\content\views\shared\displaytemplates\sitemapnodemodellist.cshtml
what need in order mvcbuildviews work sitemapprovider? there tag missing in web.config or similar?
Comments
Post a Comment