I have updated my generator tool with some feedback from Henrik
Eric. I use Alfs tool and it works great (the only thing I change now is to covert the selected page types not the unselected ones, hint Alf, maybe another feature request :-) )
Yes found it but it does not work :) using EPiServer.Shell.WebForms; is something that i cant find at the moment..
Ah, sounds like you're using less than 7.5?
The updates I made were to update the script to 7.5 (or which minor was current at that time)
It is 7.5 however a Community website. And i did not have the references in the project as I should have. Now it is working though. Could not resolve webformsbase or contentwebformsbase.
When I added a reference to the EPiServer.UI binary it worked.
I'll try to check my example project at home. Might missing a step in the description.
I was just about to convert an old pagetype to be a defined in code and the great tool PageTypeCodeGenerator.aspx is gone in the latest versions of EPiServer :(
Is it possible to bring it back?