This documents provides instruction on building and running Samples Browser application with Ignite UI for Blazor components
- instal Blazor .NET SDK from this website: https://dotnet.microsoft.com/learn/aspnet/blazor-tutorial/install
NOTE: this section must be completed before any other sections in this document
-
open
./browser/IgBlazorSamples.Gulp/folder in VS Code -
type
npm installcommand in terminal window -
type
gulp copySamplesToClientcommand in terminal window
NOTE: above command will copy .razor pages and their .cs files
from ./samples/ folder to ./browser/IgBlazorSamples.Client/
-
open Visual Studio 2022 as an Administrator
-
open the IgBlazorSamplesBrowser.sln solution
-
right click solution and select Restore NuGet Packages
-
click Debug menu and select Start Debugging or press F5 key
-
open
./browser/IgBlazorSamples.Client/folder in VS Code -
type
dotnet restorecommand in terminal to restore assemblies -
type
dotnet watch runcommand in terminal to host app locally -
wait for for message: Now listening on: http://localhost:4200
-
open http://localhost:4200 in your browser
-
open
./browser/IgBlazorSamples.Client/folder in VS Code -
type
dotnet buildcommand in terminal to build app
-
open
./browser/IgBlazorSamples.Client/folder in VS Code -
run
dotnet publish -c Releasecommand in terminal window -
output files will be located in:
./browser/browser/IgBlazorSamples.Client/bin/Release/net6.0/publish/wwwroot