umco / umbraco-ezsearch

A simple search package for Umbraco
https://our.umbraco.org/projects/website-utilities/ezsearch
MIT License
6 stars 10 forks source link

Issue with missing reference to Examine dll in compiled razor code #2

Closed steroberts89 closed 10 years ago

steroberts89 commented 10 years ago

To fix issues with at maximum 7.0.4 issue could exist before this. Something do do with needing a reference to examine

mattbrailsford commented 10 years ago

Can you clarify what the issue is? Examine should be declared globally in your Views/web.config file by default in Umbraco, so shouldn't require an explicit @using statement.

steroberts89 commented 10 years ago

I've just checked umbraco 6.0.0 --> 6.1.6 and it doesn't contain the reference (see https://github.com/umbraco/Umbraco-CMS/blob/6.1.6/src/Umbraco.Web.UI/Views/Web.config)

neither does 4.11.7 (https://github.com/umbraco/Umbraco-CMS/blob/4.11.7---ITask-updates/src/Umbraco.Web.UI/Views/Web.config)

infact the reference to Examine occurs here https://github.com/umbraco/Umbraco-CMS/commit/f5f25ed0172f6a721aa1a4f1b9907726c56dd614#diff-7b0bebddc84f96a044cd8ad0cc72f77f in 7.1.0

I guess you could add the reference in there if its a v6 installation, but that just feels dirty when you could do it easier this way. Sorry for not describing it better earlier :p

mattbrailsford commented 10 years ago

Good call, didn't realize it wasn't in older versions.