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

Commented Issue: duplicate *.generated.cs-file after renaming view [104]

$
0
0
I've renamed a view "Chart.cshtml" to "ChartDisplay.cshtml" and then renamed "Configuration.cshtml" to "Chart.cshtml". As a result I get two generated files "Chart.generated.cs" and "Chart1.generated.cs" where the first one is the renamed file that still contains a class "Configuration" (the name the view did have before renaming).

I'm using TFS as a source code repository (didn't test if that also happens without source control, because working without source control is not an option for me).

A simple workaround is to delete the "Chart.generated.cs" and keep "Chart1.generated.cs" - but I don't really want to have that "1" inside the file name (I have some doubts whether I will end up with additional file with in the future).
Comments: RazorGenerator has no special logic for this, as it's a standard VS generator. So I think any behavior relating to TFS is probably standard behvaior. And admittedly I'm not really sure how that all works with TFS.

Viewing all articles
Browse latest Browse all 525

Trending Articles



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