Simply goto the project properties and ensure that "create a Windows MSIX package" checkbox is checked, in the Application->"Windows Target" tab, refer to the image attached.screenshot of the checkbox