Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 506 Bytes

readme.md

File metadata and controls

24 lines (20 loc) · 506 Bytes
mkdir enforce-style
cd enforce-style
dotnet new console
dotnet new editorconfig
dotnet new gitignore
dotnet new tool-manifest
dotnet tool run dotnet-csharpier . --check
echo '	Console.WriteLine("Hello, World!"); // tab on this line, .editorconfig configure to use spaces' > Program.cs

Add

  <Target Name="PreBuild" BeforeTargets="PreBuildEvent">
    <Exec Command="dotnet tool run dotnet-csharpier . --check" />
  </Target>

to the enforce_style.csproj

dotnet build