Skip to content

Instantly share code, notes, and snippets.

View Ronnehag's full-sized avatar

Fredrik Rönnehag Ronnehag

  • Svensk Byggtjänst
  • Stockholm, Sweden
View GitHub Profile
@craigmccauley
craigmccauley / HtmlRenderer.cs
Created December 3, 2022 18:37
Renders Blazor Components and Razor Views into HTML
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.Encodings.Web;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Abstractions;
@m-jovanovic
m-jovanovic / .editorconfig
Created May 16, 2023 10:50
A sample Editorconfig file for Visual Studio
[*.cs]
# IDE0058: Expression value is never used
dotnet_diagnostic.IDE0058.severity = none
# IDE0053: Use expression body for lambda expressions
dotnet_diagnostic.IDE0053.severity = none
csharp_indent_labels = one_less_than_current
csharp_using_directive_placement = outside_namespace:error
csharp_prefer_simple_using_statement = true:error