{"action":"created","issue":{"url":"https://api.github.com/repos/RazorGenerator/RazorGenerator/issues/71","labels_url":"https://api.github.com/repos/RazorGenerator/RazorGenerator/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/RazorGenerator/RazorGenerator/issues/71/comments","events_url":"https://api.github.com/repos/RazorGenerator/RazorGenerator/issues/71/events","html_url":"https://github.com/RazorGenerator/RazorGenerator/issues/71","id":125464672,"number":71,"title":"RazorGenerator 1.10 generated C# incompatible with view unit tests","user":{"login":"mithilap13","id":16583083,"avatar_url":"https://avatars.githubusercontent.com/u/16583083?v=3","gravatar_id":"","url":"https://api.github.com/users/mithilap13","html_url":"https://github.com/mithilap13","followers_url":"https://api.github.com/users/mithilap13/followers","following_url":"https://api.github.com/users/mithilap13/following{/other_user}","gists_url":"https://api.github.com/users/mithilap13/gists{/gist_id}","starred_url":"https://api.github.com/users/mithilap13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mithilap13/subscriptions","organizations_url":"https://api.github.com/users/mithilap13/orgs","repos_url":"https://api.github.com/users/mithilap13/repos","events_url":"https://api.github.com/users/mithilap13/events{/privacy}","received_events_url":"https://api.github.com/users/mithilap13/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-07T19:10:27Z","updated_at":"2016-01-13T20:28:32Z","closed_at":null,"body":"Hi,\r\n\r\nWe've been using RazorGenerator 1.6 for development of our ViewHelper cshtml files. I tried out 1.10 and am seeing two issues alternately with 1.10:\r\n1. Right after installing 1.10 (and restarting VS), if I modify the ViewHelper cshtml file, the corresponding generated.cs file gets deleted.\r\n2. At other times, right after installing 1.10 (and restarting VS), if I modify the ViewHelper file, the generated C# class ends up being a derivative of HelperPage class with a whole lot of changes in the entire file (not just the portion I modified). The generated code seems to work fine when I run the code through local IIS however, I have some pre-written view unit tests that don't work with this new generated code. The error thrown by the unit test is as follows:\r\n\r\nSystem.Web.WebPages.HelperPage.get_CurrentPage()\r\nSystem.Web.WebPages.HelperPage.WriteAttributeTo(TextWriter writer, String name, PositionTagged`1 prefix, PositionTagged`1 suffix, AttributeValue[] values)\r\nHelpers.ViewHelpers.HeadlinesViewHelper.<>c__DisplayClass11.<RenderGalleryHeadline>b__10(TextWriter __razor_helper_writer) in \r\nHelpers.ViewHelpers.GalleryViewHelper.<>c__DisplayClass33.<RenderAdditionalGallery>b__32(TextWriter __razor_helper_writer) in \r\nSystem.Web.WebPages.HelperResult.ToString()\r\nTests.ViewHelpers.GalleryViewHelperTests.VerifyEndlSlateIsNotEmptyWhenConfigKeyIsTrue() in \r\n"},"comment":{"url":"https://api.github.com/repos/RazorGenerator/RazorGenerator/issues/comments/171423160","html_url":"https://github.com/RazorGenerator/RazorGenerator/issues/71#issuecomment-171423160","issue_url":"https://api.github.com/repos/RazorGenerator/RazorGenerator/issues/71","id":171423160,"user":{"login":"davidebbo","id":556238,"avatar_url":"https://avatars.githubusercontent.com/u/556238?v=3","gravatar_id":"","url":"https://api.github.com/users/davidebbo","html_url":"https://github.com/davidebbo","followers_url":"https://api.github.com/users/davidebbo/followers","following_url":"https://api.github.com/users/davidebbo/following{/other_user}","gists_url":"https://api.github.com/users/davidebbo/gists{/gist_id}","starred_url":"https://api.github.com/users/davidebbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidebbo/subscriptions","organizations_url":"https://api.github.com/users/davidebbo/orgs","repos_url":"https://api.github.com/users/davidebbo/repos","events_url":"https://api.github.com/users/davidebbo/events{/privacy}","received_events_url":"https://api.github.com/users/davidebbo/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T20:28:32Z","updated_at":"2016-01-13T20:28:32Z","body":"Not seeing this in my test app https://github.com/davidebbo-test/RazorGeneratorMvc51. e.g. I added `@* Generator : MvcHelper *@` at the top of `About.cshtml`, and the generated code changed from `WebViewPage` to `HelperPage`. That's with RG VSIX 1.10.1.\r\n\r\nDoes it repro for you with my test app?"}}