Creating an app with VS Code
Make sure to setup your environment by following our instructions.
Create the App
Creating an Uno Platform project is done using dotnet new and the Uno Platform Live Wizard by following these steps:
Open a browser and navigate to the online Live Wizard
Configure your new project by providing a project name, then click Start
Choose a template to build your application
For a detailed overview of the Uno Platform project wizard and all its options, see the Wizard guide.
Click the Create button on the top right corner, then click the Copy button
In your terminal, navigate to the folder that will contain your new app.
Create a new project by pasting and executing the command that was previously generated in the Live Wizard.
Apple targets cannot be built under Linux. If you are using Linux, you'll need to remove iOS and Catalyst from the platforms list.
Next, open the project using Visual Studio Code:
In the terminal type the following:
Visual Studio Code might ask to restore the NuGet packages. Allow it to restore them if asked.
Once the project has been loaded, in the status bar at the bottom left of VS Code,
MyApp.slnis selected by default. Select
Debug the App
Uno Platform provides integrated support for debugging your app on Windows, mac and Linux.
- In the debugger section of the activity bar select
Debug (Chrome, WebAssembly)
- In the status bar, ensure the
MyApp.Wasm.csprojproject is selected - by default
F5to start the debugging session
You're all set!
You can also find additional VS Code topics, such as using snippets, updating existing apps to use VS Code
Now that you're Created and Debug the App.
Learn more about: