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: In what way is this issue fixed? I'm still having the same problem. I have a helper class in App_Code (SgHelpers) which is referenced by some views. When I try to use the MsBuild task, I get reference errors. Also, I'm not able to govern the generated namespace for SgHelper using the "Custom Tool Namespace" property. Can you please advise?
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: In what way is this issue fixed? I'm still having the same problem. I have a helper class in App_Code (SgHelpers) which is referenced by some views. When I try to use the MsBuild task, I get reference errors. Also, I'm not able to govern the generated namespace for SgHelper using the "Custom Tool Namespace" property. Can you please advise?