This is a simple ASP.NET Core Blazor WebAssembly application to demonstrate how to use the ConfigCat SDK.
- Install .NET
- Run app
dotnet run -- urls=http://localhost:5000
- Open http://localhost:5000 in browser
The sample app also demonstrates that the ConfigCat SDK can be used in Blazor Wasm applications using AOT compilation.
- Make sure you have the .NET WebAssembly build tools installed in your development environment.
dotnet workload install wasm-tools
- Execute the build script corresponding to your OS (
build-aot.cmdon Windows,build-aot.shon Linux). - Locate the web assets in the publish output directory (
bin/Release/net8.0/publish/wwwroot). - Start a local web server in this directory to serve the files over HTTP. E.g.
dotnet serve --port 5000
- Navigate to http://localhost:5000 in your browser.