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: 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?

Viewing all articles
Browse latest Browse all 525

Trending Articles



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