I create my own Task list (I want to have some extra fields).
I go to Visual Studio > New item... > List > "Create a customizable list template and a list instance of it:" > Tasks.
When I deploy this list, unlike out-of-the-box task list in Project Site template, this list does not have a timeline in default (AllItems.aspx) view.
Can I add timeline to a view, and how, from Visual Studio?