loading...

Upgrading C# in your Razor files with PowerShell

aggieben profile image Ben Collins ・1 min read
git ls-files | sls web.config ` # get a list of web.config files here, but not with Get-ChildItem
  |% { (gc $_) -replace "/langversion:default","/langversion:latest" ` 
  | sc -Path $_ -Encoding UTF8 }

Discussion

markdown guide