U4-2262 - Release 6.1.0 Build 2 (Beta) has Razor Errors on scripting files

Created by Ben Haynie 23 May 2013, 23:20:50 Updated by Nicholas Westby 24 Jun 2013, 22:16:29

I attempted to include a the website in a Solution file (downloaded the website, not the binaries), and it fails to compile. Has an error in the ListDescendantsFromCurrentPage.cshtml and ListChildPagesWithDoctype.cshtml files. Reports that "query" is not defined, and Cms does not exist in the namespace Umbraco.

Comments

Sebastiaan Janssen 31 May 2013, 16:00:45

Hey Ben, you're not supposed to compile the website. It's already compiled for you.

That said, I did update the ListDescendantsFromCurrentPage as that was using the wrong namespaces and ListChildPagesWithDocTypes now will work out of the box as well.


Sebastiaan Janssen 31 May 2013, 16:00:54

Fixed in changeset 2c35b784352b


Nicholas Westby 24 Jun 2013, 22:16:29

FYI, I was seeing this issue when I set '''MvcBuildViews''' to true. Seemed like they were just sample views (and a few missing code behind files that were referenced), so I mostly just commented them out and things seemed to work. According to my source control history, the files I had to change were: *EditRelationType.aspx *NewRelationType.aspx *umbracoPage.Master *ListChildPagesOrderByProperty.cshtml *ListChildPagesWithDoctype.cshtml *ListDescendantsFromCurrentPage.cshtml

Not sure if you changed all of those, but thought I'd mention them just in case you hadn't.


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 6.0.7

Sprint:

Story Points:

Cycle: