Quantcast
Channel: RazorGenerator Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 525

Commented Issue: MsBuild task does not deal with App_Code helpers [37]

$
0
0
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

Viewing all articles
Browse latest Browse all 525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>