We've got a CustomHelpers.cshtml in App_Code, but compiling our views with the MsBuild task results in errors in any views that try to reference these. I've also tried moving the CustomHelpers.cshtml into the Views/Shared folder to the same effect.
There's also a variable defined in Views/_AppStart.cshtml (for the MVC ReCaptcha control) like this:
@using System.Configuration
@using FundApps.Common
@using Microsoft.Web.Helpers
@{
Layout = "~/Views/Shared/_Layout.cshtml";
ReCaptcha.PublicKey = "abc";
}
that can't be resolved in any view that references it. I'm not sure if it's to do with namespacing or something else - I can't quite figure it out. Any ideas how to fix? Thanks
Comments: Seems to be a duplicate of https://razorgenerator.codeplex.com/workitem/109
There's also a variable defined in Views/_AppStart.cshtml (for the MVC ReCaptcha control) like this:
@using System.Configuration
@using FundApps.Common
@using Microsoft.Web.Helpers
@{
Layout = "~/Views/Shared/_Layout.cshtml";
ReCaptcha.PublicKey = "abc";
}
that can't be resolved in any view that references it. I'm not sure if it's to do with namespacing or something else - I can't quite figure it out. Any ideas how to fix? Thanks
Comments: Seems to be a duplicate of https://razorgenerator.codeplex.com/workitem/109