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: Try deleting all the generated files and then regenerate it by right clicking on cshtml and choosing 'Run Custom Tool' (or just resave the file).
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: Try deleting all the generated files and then regenerate it by right clicking on cshtml and choosing 'Run Custom Tool' (or just resave the file).