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

Commented Unassigned: ASP Namespace Being Used [167]

$
0
0
So I have been using RazorGenerator for over a year without issues now today I find this very strange issue., For my views they all work but if I edit a cshtml file the generated.cs goes from using the project namespace to using ASP.

Good:
// This code was generated by a tool.
// Runtime Version:4.0.30319.34209
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace Drax.Web.Services.Email.Views.Transactional
{


BAD

// This code was generated by a tool.
// Runtime Version:4.0.30319.34209
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace ASP
{

This of course mangles the class name which basically prepends the class name with the namespace, SO for a class that was in Drax.Web.Services.Email.Views.Transactional the class name is now:

_Services_Email_Views_Transactional_AccountCreatedEmail_cshtml

OK I have no idea why this started and I need a resolution ASAP.

Thanks




Comments: Found solution I guess now I have to go through all my templates and add this: @* Generator: Template GeneratePrettyNames : true *@ Why are commits changing default behavior like this?

Viewing all articles
Browse latest Browse all 525

Trending Articles



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