Requirement for Minimal Store App? RRS feed

  • Question

  • I'm trying to create an app without using any XAML, especially an app with a custom Application class and without an App.xaml file. I have a Main.cs with a Program that starts the app "Application.Start( (p) => new CustomApp())" but execution never even gets there, program halts with "Object reference not set to an instance of an object" without any stack available. What is the minimum requirement for an WinRT (Store) app?


    Thursday, October 24, 2013 7:28 PM


  • Hi, Bjorn

    You must contain a static "Main" method suitable for an entry point in windows store app.

    In App.XAML.cs file, the Constructor App(){}  Initializes the singleton Application object. It is the

    first line of authored codeexecuted, and as such is the logical equivalent of main() or WinMain().

    So, when you create a windows store app, you should contain the App.XAML and App.XAML.cs

    file in your app.

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Edited by Anne Jing Friday, October 25, 2013 6:42 AM from
    • Marked as answer by Anne Jing Thursday, October 31, 2013 7:08 AM
    Friday, October 25, 2013 6:41 AM