Add as a Link Right click Project > Add > Existing Item Select the file, BUT instead of pressing the “Add” button, use the button drop-down to select “Add as Link” instead
Category: .Projects General
Debugging UWP Apps(1)
Deploying Project(4)
Installing C# for WinIoT(1)
Interprocess communication (IPC)(2)
UWP Apps(1)
App Icon
Open the "Package.appxmanifest" file and select the 'Visual Assets' tab.
Capability Declarations for your App
Lots of things are blocked by default for UWP. You have to enable the capabilities needed by your app in "Package.appxmanifest" Some can be altered using the Capabilities tab of this file in visual mode, but others require you to edit it in code mode (right click > view code) Full list of capabilities https://msdn.microsoft.com/en-gb/windows/uwp/packaging/app-capability-declarations […]
Copy existing page
Create new file pair Right click the .xaml file and select copy Select the project > Right click > Paste You will now have a duplicate of the page and its .cs source code file with ” – Copy.xaml” as its name. Right click the .xaml file and select Rename to rename both the files […]
Creating A New Project
Development Platform Download the latest free Visual Studio community edition from Microsoft. When installing ensure the “Universal Windows Platform development” option is included. Create A New Project Menu > File > New Project Visual C# > Blank App (Universal Windows) Give the project and name and location and create it. The version of Windows 10 […]
Enabling Hardware Devices & Peripherals For Your Application
Open the Package.appxmanifest file > Capabilities
Issues – Getting Project To Run
Setting target version (to match the OS version running on your device) Right click project > Properties > Application > Targeting If you need a new version Visual Studio > Menu > Tools > Extensions & Updates > Online Visual Studio Can’t find device Right click project > Properties > Debug > Start options > […]
main() function
"App.xaml" contains the class code that initialises the project and is the logical equivalent of main(). Constructor Effectively the app’s main method. The plumbing that makes it the app’s entry point is enabled by an “Entry point” setting in the package manifest (on the Application tab). When you create a project, Visual Studio automatically sets […]
Rename Existing Project
A few places where the re-naming needs to occur (not a definitive list of how to, but as we find them!) Menu > Debug > [Project] Properties > Application Assembly Name Assembly Information Package Manifest
Running The Application
Running The Application On Your Device Select ‘Remote Machine’ from the run target drop down. Your device will likely be in the Auto Detected box. Alternatively enter the IP address of the device. Changing IP address later To change the device IP address select Menu > Debug > [your project name] Properties… We also have […]