Weird Powershell output Error

if ($spaceSplit[$k-1] -cmatch “UNIT” -and $spaceSplit[$k] -match ‘d’){ if ($spaceSplit[$k] -eq “I” -or $spaceSplit[$k] -eq “II”){Convert-RomanToDecimal $spaceSplit[$k]} $formatUnitNumRemarks = “Unit: ” + $spaceSplit[$k] $formatUnitNumLegal = “unit:” + $spaceSplit[$k] Write-Host $fileNum $formatUnitNumRemarks } This code snippit is designed to find Unit numbers in a property index and it works perfectly fine. The issue is that when […]

PS ISE Theme

VS Code is the go-to editor for PowerShell but for anyone who still rocks the ISE: I use it from time to te since it’s lightweight. To install that theme, copy the raw, and in the ISE: Tools >options >manage themes. Import that file then select it. Not perfect for all token types but […]

Dotnet Cli Templates (C#)

I have recently published my dotnet cli templates for C#. They basically makes my life easier whenever I need to start developing a new project. Templates have : Layers (Service, Repository and Models) Swagger (for WebApi project) Entity Framework Core Support (only need to pass your connection string in appsettings file) Dependency Injection (Microsoft) AutoMapper […]

question – namespaces / internal

I’m trying to fire up a GraphQL server in a .Net 4.6.x framework following : Startup.cs has a line: services.AddGraphQL(sp => SchemaBuilder.New() VS2019 complains that SchemaBuilder is protected. If you peek the definition you see: “` namespace HotChocolate { internal class SchemaBuilder : ISchemaBuilder public SchemaBuilder(); public static ISchemaBuilder New(); […] } “` The […]