Syncfusio’s Blazor Visual Studio Code Extension includes Blazor project templates, code snippets, conversion, and migration tools. It allows you to create a Blazor project using prebuilt templates. Now, the Blazor Extension in Visual Studio Code is also available for the Mac operating system.
In this blog, we will see how to use the Blazor Extension in Visual Studio Code for Mac OS to:
The prerequisites for creating a Blazor application are:
The Syncfusion Blazor extension for Visual Studio Code is available in the Visual Studio Marketplace.
To install the Syncfusion Blazor extension from the Visual Studio Marketplace, follow these steps:
To install the Syncfusion Blazor extension from a VSIX package, follow these steps:
The Syncfusion Blazor extension in Visual Studio Code for Mac helps developers to create Blazor applications with Syncfusion Blazor UI components, saving them significant time. To create an app, follow these steps:
Note: In the Syncfusion Blazor Web Assembly App project type, we can choose ASP.NET Core-hosted, Progressive Web Application, or both.
Now, the Blazor application has been created with the required Syncfusion NuGet packages and the CDN links of the Syncfusion Blazor components.
Note: Refer to the Creating a Syncfusion Blazor application documentation to render the code and run the application.
The Debug and Release modes are configured while creating the project. So, you don’t need to configure them manually. When debugging a Syncfusion Blazor app, the NuGet packages will be automatically restored. Then, the app will be compiled and start to run in the default browser.
By default, the Blazor application runs in Debug mode. You can change it to Release mode by choosing the Debug option from the Debug tab or pressing the Ctrl+Shift+D shortcut key.
The Syncfusion Blazor conversion is an add-in for the Extension in Visual Studio Code for Mac. It converts an existing Blazor app into a Syncfusion Blazor web app by adding the required NuGet packages and themes. With this, you can easily add Syncfusion Blazor components to the app. To do so, follow these steps:
Now, the application is configured with the required Syncfusion Blazor NuGet packages and themes.
Note: For more details, refer to the Converting Blazor application to Syncfusion Blazor application documentation.
The Syncfusion Blazor migration is an add-in for the Extension in Visual Studio Code for Mac. It migrates a Syncfusion Blazor app from one version to another by changing the Syncfusion NuGet package version in the app. Follow these steps to migrate a Syncfusion Blazor app:
Finally, the Syncfusion NuGet packages references are updated to the selected version in the application.
Note: For more details, refer to the Upgrading Syncfusion Blazor application to the latest version documentation.
Thanks for reading! In this blog post, we have seen how to use our Syncfusion Blazor Extension in Visual Studio Code to create, convert and migrate a Blazor app in the MAC operating system. This will help you create attractive web applications with Syncfusion Blazor UI components in less time. Try out the procedures in this blog post and leave your feedback in the comments section below!
Syncfusion provides more than 65 high-performance, lightweight, modular, and responsive Blazor UI controls such as Data Grid, Charts, and Scheduler to ease the work of developers. Try them out for yourself.
You can also contact us through our support forum, Direct-Trac, or feedback portal. We are always happy to assist you!