This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace WhatDoIHave; | |
| public static class ServicesDebugger | |
| { | |
| public static void UseServicesDebugger(this WebApplication app, IHostApplicationBuilder builder, | |
| string path = "/__services") | |
| { | |
| app.MapGet(path, () => | |
| { | |
| // lang=html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.Extensions.Configuration.Memory; | |
| var builder = WebApplication.CreateBuilder(args); | |
| builder.Configuration.AddConfigurationDefaults(new() | |
| { | |
| { "request:timeout", "60" } | |
| }); | |
| var app = builder.Build(); |
This method works for Blazor Server and Blazor WebAssembly with hot reload, style isolation and tailwind jit compilation.
For this method you need added to path Tailwind CSS CLI binary. Read more about Standalone CLI.
Just create a StaticAssets folder in the root of your project with next structure.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Web; | |
| using System.Web.Mvc; | |
| using System.Web.Optimization; | |
| using System.Web.Routing; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using WebApplication16; | |
| using WebApplication16.Controllers; |
$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 1. Install Chocolatey | |
| <# | |
| Set-ExecutionPolicy RemoteSigned -Force | |
| # Create empty profile (so profile-integration scripts have something to append to) | |
| if (-not (Test-Path $PROFILE)) { | |
| $directory = [IO.Path]::GetDirectoryName($PROFILE) | |
| if (-not (Test-Path $directory)) { | |
| New-Item -ItemType Directory $directory | Out-Null | |
| } |