This repository is the home of the Uno.Xamarin.Forms.Platform package, which provides a set of Xamarin.Forms renderers to provide WebAssembly support through the Uno Platform.
You can read about the Uno Platform https://platform.uno, and about Xamarin.Forms at https://www.xamarin.com/forms.
- Require VS 2019 for Windows (16.5 or later) with
ASP.NET Web Developmentand.NET Core cross-platform Workloads.
- Create a Xamarin.Forms project
- Check Place project and solution in the same directory
- Check Windows (UWP)
- Using a VS Developer Command Prompt, navigate to the folder containing the solution
- Type the following to install the latest template:
dotnet new -i Uno.ProjectTemplates.Dotnet::3.1.6 - Then type the following to create the new WebAssembly project:
dotnet new wasmxfhead - Open or Reload the solution in Visual Studio
- Set the Wasm project as the startup project
- Open the Nuget Package manager for the Wasm project and update the
Uno.Xamarin.Forms.Platformproject to the latest stable package - Run the app and you’re good to go!
- Using Visual Studio 2019 (16.2 or later)
- Open the
Uno.Xamarin.Forms.Platform.slnsolution - Build the
Xamarin.Forms.ControlGallery.Uno.Wasmproject - Run it using
F5
We follow the style used by the .NET Foundation, with a few exceptions:
- We do not use the
privatekeyword as it is the default accessibility level in C#. - We use hard tabs over spaces. You can change this setting in Visual Studio for Windows via
Tools > Optionsand navigating toText Editor > C#and selecting the "Keep tabs" radio option. In Visual Studio for Mac it's set via preferences inSource Code > Code Formatting > C# source codeand disabling the checkbox forConvert tabs to spaces. - Lines should be limited to a max of 120 characters (or as close as possible within reason). This may be set in Visual Studio for Mac via preferences in
Source Code > Code Formatting > C# source codeand changing theDesired file widthto120.
We use GitHub Issues to track issues.

