Skip to content

Commit 8843aac

Browse files
committed
Added .gitignore recommendation
1 parent 07faa28 commit 8843aac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ For intellisense to work it's recommended you add the following to the top of yo
3030
@inherits RazorLight.TemplatePage<MyModelType>
3131
```
3232

33+
## Ignoring generated files from source control
34+
35+
It's recommended that you add `*.cshtml.cs` to your `.gitignore` file so that you don't commit the generated files. That avoids superfluous diff/commit noise.
36+
3337
## File Nesting
3438

3539
By default, your `.cshtml.cs` files will be nested under their `.cshtml` counterparts this using the [File Nesting feature in Visual Studio](https://docs.microsoft.com/en-us/visualstudio/ide/file-nesting-solution-explorer?view=vs-2019) if your project is classified as an ASP.NET Core project.

0 commit comments

Comments
 (0)