To build and deploy UWP applications in your local system directly from Visual Studio, you need to set up the developer mode in the Windows developer feature set. To check and configure it, open the Windows 10 Settings app and click on Update & security.
From the left-hand side navigation panel, click on For developers, which will open the developer features screen in the right-hand side panel. To deploy and debug UWP apps from Visual Studio, you need to enable the Developer mode radio button, as shown in the following screenshot:
This will pop up a message box asking you to confirm whether you really want to ...