Menu
Microsoft enables native mobile development with Blazor

Microsoft enables native mobile development with Blazor

Mobile Blazor Bindings allow developers to build native Android and iOS using C#, .NET, and web programming patterns

Credit: Little Visuals

Microsoft has rolled out an experimental project to allow developers to build native mobile apps using the Blazor web framework for C# and .NET.

The Experimental Mobile Blazor Bindings project enables development of native mobile apps via C# and .NET for Android and iOS, leveraging familiar web programming patterns. The goal of the project is to find out if developers like the option of writing markup and performing data binding for native mobile applications using the Blazor-style programming model with Razor syntax and features. If so, Microsoft may support it in a future version of the Visual Studio IDE.

With the mobile Blazor bindings, developers can leverage existing web skills to build native iOS and Android apps powered by .NET. The Blazor programming model and Razor markup syntax can be used to define UI components as well as behaviors of an application. The UI components included are based on Xamarin.Forms native UI controls.

Blazor runs on .NET Standard 2.0. To begin working with mobile Blazor bindings, developers must have the .NET Core 3.0 or 3.1 SDK, Visual Studio, or Visual Studio for the Mac. Also needed are ASP.NET web development and mobile development with .NET (Xamarin.Forms) workloads installed. Sample apps are available on GitHub. Templates can be installed by running the following command from a command/shell window:

dotnet new -i Microsoft.MobileBlazorBindings.Templates::0.1.173-beta

Developers can create their first project by using the following command:

 dotnet new mobileblazorbindings -o MyApp

The SLN file must be opened in Visual Studio, with developers marking Android or iOS as the startup project.


Follow Us

Join the newsletter!

Or

Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.

Events

Featured

Slideshows

Channel kicks 2021 into gear as After Hours returns to Auckland

Channel kicks 2021 into gear as After Hours returns to Auckland

After Hours made a welcome return to the channel social calendar with a bumper crowd of partners, distributors and vendors descending on The Pantry at Park Hyatt in Auckland to kick-start 2021.

Channel kicks 2021 into gear as After Hours returns to Auckland
The Kiwi channel gathers for the 2020 Reseller News Women in ICT Awards

The Kiwi channel gathers for the 2020 Reseller News Women in ICT Awards

Hundreds of leaders from the New Zealand IT industry gathered at the Hilton in Auckland on 17 November to celebrate the finest female talent in the Kiwi channel and recognise the winners of the Reseller News Women in ICT Awards (WIICTA) 2020.

The Kiwi channel gathers for the 2020 Reseller News Women in ICT Awards
Show Comments