asp.net - Trying to build my .NET 3.5 mvc app in VS2010 Beta2 throws a MVCBuildView error -
i upgraded vs 2010 beta2. upgraded slns , csprojs when opened them. when asked me, opted stay in .net 3.5 keep compatability
note: original project build mvc2 preview2 - exact same version comes vs2010
however, when try build web project including views, run compiler errors.
i have pager.ascx paging magic using routevaluedictionary, error @ build time.
error 50 type 'system.web.routing.routevaluedictionary' exists in both 'c:\program files\reference assemblies\microsoft\framework.netframework\v4.0\system.web.dll' , 'c:\windows\assembly\gac_msil\system.web.routing\3.5.0.0__31bf3856ad364e35\system.web.routing.dll' c:\projects\phase2\source\kk.web\views\shared\pager.ascx 8 kk.web
mvcbuildviews true inside project file.
how fix build error?
i somehow need tell aspx compiler v3.5 (or v2.0, not sure). don't know how this.
any appreciated.
cv
according this article need have change aspnetcompiler physical path so:
<target name="buildviews" condition="'$(mvcbuildviews)'=='true'" aftertargets="build"> <message importance="normal" text="precompiling views" /> <aspnetcompiler virtualpath="temp" physicalpath="$(webprojectoutputdir)" /> </target>
Comments
Post a Comment