├── Snake.gif
├── README.md
├── Snake
├── Properties
│ ├── Settings.settings
│ └── Settings.Designer.cs
├── Beep.cs
├── Collision.cs
├── Reset.cs
├── Snake.csproj
├── Food.cs
├── Score.cs
├── Frame.cs
├── Key.cs
└── Program.cs
├── .github
└── workflows
│ └── dotnet.yml
├── Snake.sln
├── .gitattributes
└── .gitignore
/Snake.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ARMoir/Snake/HEAD/Snake.gif
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Snake
2 | Console ASCII Snake Game written in C# .NET core
3 |
4 | 
5 |
--------------------------------------------------------------------------------
/Snake/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 0
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.github/workflows/dotnet.yml:
--------------------------------------------------------------------------------
1 | name: .NET
2 |
3 | on:
4 | push:
5 | branches: [ master ]
6 | pull_request:
7 | branches: [ master ]
8 |
9 | jobs:
10 | build:
11 |
12 | runs-on: ubuntu-latest
13 |
14 | steps:
15 | - uses: actions/checkout@v2
16 | - name: Setup .NET
17 | uses: actions/setup-dotnet@v1
18 | with:
19 | dotnet-version: 5.0.x
20 | - name: Restore dependencies
21 | run: dotnet restore
22 | - name: Build
23 | run: dotnet build --no-restore
24 | - name: Test
25 | run: dotnet test --no-build --verbosity normal
26 |
--------------------------------------------------------------------------------
/Snake/Beep.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Runtime.InteropServices;
4 | using System.Text;
5 |
6 | namespace Snake
7 | {
8 | class Beep
9 | {
10 | public static void Bad()
11 | {
12 | if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
13 | {
14 | Console.Beep(330, 500);
15 | }
16 | }
17 |
18 | public static void Good()
19 | {
20 | if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
21 | {
22 | Console.Beep(370, 500);
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Snake/Collision.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Snake
8 | {
9 | class Collision
10 | {
11 | public static class Safe
12 | {
13 | public static string[] Values { get; set; } = { " ", "§", "Θ"};
14 | }
15 |
16 | public static void Check(int Position)
17 | {
18 | if (!Safe.Values.Contains(Program.Display.FrameChar[Position]))
19 | {
20 | Task.Factory.StartNew(() => Beep.Bad());
21 | Program.Snake.Dead = true;
22 | }
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Snake/Reset.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace Snake
6 | {
7 | class Reset
8 | {
9 | public static void Now()
10 | {
11 | Program.Display.FrameChar.Clear();
12 | Program.Display.FrameString.Clear();
13 | Program.Display.DisplayFrame.Clear();
14 |
15 | Program.Snake.Direction = (int)Program.Snake.Directions.None;
16 | Program.Snake.Location.Clear();
17 | Program.Snake.Dead = false;
18 | Program.Snake.Length = 1;
19 | Program.Snake.Speed = 400;
20 |
21 | Food.Feed.Drop = 0;
22 | Food.Feed.Check = 0;
23 | Food.Feed.Change = true;
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Snake/Snake.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | netcoreapp3.1
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | True
16 | True
17 | Settings.settings
18 |
19 |
20 |
21 |
22 |
23 | SettingsSingleFileGenerator
24 | Settings.Designer.cs
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/Snake/Food.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace Snake
6 | {
7 | class Food
8 | {
9 | public static class Feed
10 | {
11 | public static Random Random { get; set; } = new Random();
12 | public static int Drop { get; set; } = 0;
13 | public static int Check { get; set; } = 0;
14 | public static bool Change { get; set; } = false;
15 | }
16 |
17 | public static void Add()
18 | {
19 | if (Feed.Check == 0)
20 | {
21 | Feed.Change = true;
22 | }
23 |
24 | if (Feed.Change)
25 | {
26 | Feed.Check = Feed.Random.Next(Program.Display.FrameChar.Count);
27 | Feed.Change = false;
28 | }
29 |
30 | if (Program.Display.FrameChar[Feed.Check] == " ")
31 | {
32 | Program.Display.FrameChar[Feed.Check] = "§";
33 | }
34 | else
35 | {
36 | Feed.Change = true;
37 | }
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Snake.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.31005.135
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Snake", "Snake\Snake.csproj", "{9125C3C8-0146-4C54-961D-0A0D3E8039AE}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {9125C3C8-0146-4C54-961D-0A0D3E8039AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {9125C3C8-0146-4C54-961D-0A0D3E8039AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {9125C3C8-0146-4C54-961D-0A0D3E8039AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {9125C3C8-0146-4C54-961D-0A0D3E8039AE}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {F8EA5774-BC1B-44C7-A3D6-F9320ED31947}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/Snake/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace Snake.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 |
26 | [global::System.Configuration.UserScopedSettingAttribute()]
27 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
28 | [global::System.Configuration.DefaultSettingValueAttribute("0")]
29 | public int Score {
30 | get {
31 | return ((int)(this["Score"]));
32 | }
33 | set {
34 | this["Score"] = value;
35 | }
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Snake/Score.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 |
8 | namespace Snake
9 | {
10 | class Score
11 | {
12 | public static void Update()
13 | {
14 | try
15 | {
16 | //Get High Score from Settings
17 | if (Program.Display.HighScore == 0)
18 | {
19 | Program.Display.HighScore = Properties.Settings.Default.Score;
20 | }
21 |
22 | //Check High Score
23 | if (Program.Snake.Length > Program.Display.HighScore)
24 | {
25 | Program.Display.HighScore = Program.Snake.Length - 1;
26 | Directory.CreateDirectory(Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData, System.Environment.SpecialFolderOption.Create));
27 | Properties.Settings.Default.Score = Program.Display.HighScore;
28 | Properties.Settings.Default.Save();
29 | }
30 | }
31 | catch (Exception)
32 | {
33 | }
34 | }
35 |
36 | public static void Clear()
37 | {
38 | try
39 | {
40 | Program.Display.HighScore = 0;
41 | Directory.CreateDirectory(Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData, System.Environment.SpecialFolderOption.Create));
42 | Properties.Settings.Default.Score = 0;
43 | Properties.Settings.Default.Save();
44 | Console.Clear();
45 | }
46 | catch (Exception)
47 | {
48 |
49 | }
50 | }
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/Snake/Frame.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace Snake
6 | {
7 | class Frame
8 | {
9 | public static void SetFrame()
10 | {
11 | Program.Display.FrameString.Append("╔════════════════════════════╗" + (Char)10);
12 | Program.Display.FrameString.Append("║ ║" + (Char)10);
13 | Program.Display.FrameString.Append("║ ║" + (Char)10);
14 | Program.Display.FrameString.Append("║ ║" + (Char)10);
15 | Program.Display.FrameString.Append("║ ║" + (Char)10);
16 | Program.Display.FrameString.Append("║ ║" + (Char)10);
17 | Program.Display.FrameString.Append("║ ║" + (Char)10);
18 | Program.Display.FrameString.Append("║ ║" + (Char)10);
19 | Program.Display.FrameString.Append("║ ║" + (Char)10);
20 | Program.Display.FrameString.Append("║ ║" + (Char)10);
21 | Program.Display.FrameString.Append("║ ║" + (Char)10);
22 | Program.Display.FrameString.Append("║ ║" + (Char)10);
23 | Program.Display.FrameString.Append("║ ║" + (Char)10);
24 | Program.Display.FrameString.Append("║ ║" + (Char)10);
25 | Program.Display.FrameString.Append("║ ║" + (Char)10);
26 | Program.Display.FrameString.Append("║ ║" + (Char)10);
27 | Program.Display.FrameString.Append("║ ║" + (Char)10);
28 | Program.Display.FrameString.Append("║ ║" + (Char)10);
29 | Program.Display.FrameString.Append("║ ║" + (Char)10);
30 | Program.Display.FrameString.Append("╚════════════════════════════╝" + (Char)10);
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/Snake/Key.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace Snake
6 | {
7 | class Key
8 | {
9 | public static void Press()
10 | {
11 | do
12 | {
13 | var Key = Console.ReadKey().Key;
14 |
15 | switch (Key)
16 | {
17 | case ConsoleKey.UpArrow:
18 | case ConsoleKey.W:
19 | Program.Snake.Direction = (int)Program.Snake.Directions.Up;
20 | break;
21 |
22 | case ConsoleKey.LeftArrow:
23 | case ConsoleKey.A:
24 | Program.Snake.Direction = (int)Program.Snake.Directions.Left;
25 | break;
26 |
27 | case ConsoleKey.DownArrow:
28 | case ConsoleKey.S:
29 | Program.Snake.Direction = (int)Program.Snake.Directions.Down;
30 | break;
31 |
32 | case ConsoleKey.RightArrow:
33 | case ConsoleKey.D:
34 | Program.Snake.Direction = (int)Program.Snake.Directions.Right;
35 | break;
36 |
37 | case ConsoleKey.Delete:
38 | Score.Clear();
39 | break;
40 |
41 | case ConsoleKey.Q:
42 | Environment.Exit(-1);
43 | break;
44 |
45 | case ConsoleKey.R:
46 | if (Program.Display.Color != ConsoleColor.Red)
47 | {
48 | Program.Display.Color = ConsoleColor.Red;
49 | }
50 | else
51 | {
52 | Program.Display.Color = ConsoleColor.White;
53 | }
54 | break;
55 |
56 | case ConsoleKey.G:
57 | if (Program.Display.Color != ConsoleColor.Green)
58 | {
59 | Program.Display.Color = ConsoleColor.Green;
60 | }
61 | else
62 | {
63 | Program.Display.Color = ConsoleColor.White;
64 | }
65 | break;
66 |
67 | case ConsoleKey.B:
68 | if (Program.Display.Color != ConsoleColor.Blue)
69 | {
70 | Program.Display.Color = ConsoleColor.Blue;
71 | }
72 | else
73 | {
74 | Program.Display.Color = ConsoleColor.White;
75 | }
76 | break;
77 |
78 | case ConsoleKey.C:
79 | if (Program.Display.Color != ConsoleColor.Cyan)
80 | {
81 | Program.Display.Color = ConsoleColor.Cyan;
82 | }
83 | else
84 | {
85 | Program.Display.Color = ConsoleColor.White;
86 | }
87 | break;
88 |
89 | case ConsoleKey.M:
90 | if (Program.Display.Color != ConsoleColor.Magenta)
91 | {
92 | Program.Display.Color = ConsoleColor.Magenta;
93 | }
94 | else
95 | {
96 | Program.Display.Color = ConsoleColor.White;
97 | }
98 | break;
99 |
100 | case ConsoleKey.Y:
101 | if (Program.Display.Color != ConsoleColor.Yellow)
102 | {
103 | Program.Display.Color = ConsoleColor.Yellow;
104 | }
105 | else
106 | {
107 | Program.Display.Color = ConsoleColor.White;
108 | }
109 | break;
110 | }
111 |
112 | } while (true);
113 | }
114 | }
115 | }
116 |
--------------------------------------------------------------------------------
/Snake/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Runtime.InteropServices;
6 | using System.Text;
7 | using System.Threading.Tasks;
8 |
9 | namespace Snake
10 | {
11 | class Program
12 | {
13 | public static class Snake
14 | {
15 | public enum Directions { None, Up, Down, Left, Right }
16 | public static List Location { get; set; } = new List();
17 | public static bool Dead { get; set; } = false;
18 | public static int Length { get; set; } = 1;
19 | public static int Speed { get; set; } = 400;
20 | public static int Direction { get; set; } = (int)Directions.None;
21 | }
22 |
23 | public static class Display
24 | {
25 | public static List FrameChar { get; set; } = new List();
26 | public static StringBuilder FrameString { get; set; } = new StringBuilder();
27 | public static StringBuilder DisplayFrame { get; set; } = new StringBuilder();
28 | public static ConsoleColor Color { get; set; } = ConsoleColor.White;
29 | public static int HighScore { get; set; } = 0;
30 | }
31 |
32 | static void Main(string[] args)
33 | {
34 | //Can only set Window Size in Windows
35 | if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
36 | {
37 | Console.SetWindowSize(30, 22);
38 | }
39 |
40 | //Pull in the Game Board
41 | Console.CursorVisible = false;
42 | Console.Clear();
43 | Frame.SetFrame();
44 | Display.FrameChar.AddRange(Display.FrameString.ToString().Select(Chars => Chars.ToString()));
45 |
46 | //Set the Values for Movement Calculations
47 | string[] Lines = Display.FrameString.ToString().Split((Char)10);
48 | int Width = Lines[0].Length + 1;
49 | int Position = (Display.FrameChar.Count / 2) + (Width / 2);
50 |
51 | //Start Thred to Read Keypress
52 | Task.Factory.StartNew(() => Key.Press());
53 |
54 | //Game Loop
55 | do
56 | {
57 | //Set Text Color
58 | Console.ForegroundColor = Display.Color;
59 |
60 | //Check Direction for Movement
61 | switch ((Snake.Directions)Snake.Direction)
62 | {
63 | case Snake.Directions.Left:
64 | Position--;
65 | break;
66 |
67 | case Snake.Directions.Right:
68 | Position++;
69 | break;
70 |
71 | case Snake.Directions.Up:
72 | Position -= Width;
73 | break;
74 |
75 | case Snake.Directions.Down:
76 | Position += Width;
77 | break;
78 | }
79 |
80 | //Add Current Location to List
81 | Snake.Location.Add(Position);
82 |
83 | //Pull Display for Updating
84 | Display.FrameChar.Clear();
85 | Display.FrameChar.AddRange(Display.FrameString.ToString().Select(Chars => Chars.ToString()));
86 |
87 | //Reverse Locations to get the Most Recent First
88 | Snake.Location.Reverse();
89 | int[] Locations = Snake.Location.ToArray();
90 | Snake.Location.Reverse();
91 |
92 | //Check for Collision
93 | Collision.Check(Position);
94 |
95 | //Add Food to Board
96 | Food.Add();
97 |
98 | //Check if Eating
99 | if (Display.FrameChar[Position] == "§")
100 | {
101 | Task.Factory.StartNew(() => Beep.Good());
102 | Snake.Length++;
103 | Food.Feed.Change = true;
104 | if(Snake.Speed > 5){Snake.Speed -= 5;}
105 | }
106 |
107 | //Draw Snake to Board
108 | Display.FrameChar[Position] = "Θ";
109 | if (Locations.Length > Snake.Length)
110 | {
111 | for (int i = 1; i < Snake.Length; i++)
112 | {
113 | Display.FrameChar[Locations[i]] = "O";
114 | }
115 | }
116 |
117 | //Confirm Board has Food
118 | if (!Display.FrameChar.Contains("§"))
119 | {
120 | Food.Feed.Change = true;
121 | Food.Add();
122 | }
123 |
124 | //Check for Collision
125 | Collision.Check(Position);
126 |
127 | //Update Display
128 | Score.Update();
129 | Display.DisplayFrame.Clear();
130 | Display.FrameChar.ForEach(Item => Display.DisplayFrame.Append(Item));
131 | Display.DisplayFrame.Append($" Score: {Snake.Length - 1} Best: {Display.HighScore}");
132 | Display.DisplayFrame.Append(System.Environment.NewLine);
133 |
134 | //Write Display to Console
135 | Console.SetCursorPosition(0, 0);
136 | Console.Write(Display.DisplayFrame);
137 |
138 | //Set Game Speed
139 | System.Threading.Thread.Sleep(Snake.Speed);
140 |
141 | } while (!Snake.Dead);
142 |
143 | //Reset Game
144 | System.Threading.Thread.Sleep(1000);
145 | Console.Clear();
146 | Reset.Now();
147 | Main(args);
148 | }
149 | }
150 | }
151 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Build results
17 | [Dd]ebug/
18 | [Dd]ebugPublic/
19 | [Rr]elease/
20 | [Rr]eleases/
21 | x64/
22 | x86/
23 | [Aa][Rr][Mm]/
24 | [Aa][Rr][Mm]64/
25 | bld/
26 | [Bb]in/
27 | [Oo]bj/
28 | [Ll]og/
29 |
30 | # Visual Studio 2015/2017 cache/options directory
31 | .vs/
32 | # Uncomment if you have tasks that create the project's static files in wwwroot
33 | #wwwroot/
34 |
35 | # Visual Studio 2017 auto generated files
36 | Generated\ Files/
37 |
38 | # MSTest test Results
39 | [Tt]est[Rr]esult*/
40 | [Bb]uild[Ll]og.*
41 |
42 | # NUNIT
43 | *.VisualState.xml
44 | TestResult.xml
45 |
46 | # Build Results of an ATL Project
47 | [Dd]ebugPS/
48 | [Rr]eleasePS/
49 | dlldata.c
50 |
51 | # Benchmark Results
52 | BenchmarkDotNet.Artifacts/
53 |
54 | # .NET Core
55 | project.lock.json
56 | project.fragment.lock.json
57 | artifacts/
58 |
59 | # StyleCop
60 | StyleCopReport.xml
61 |
62 | # Files built by Visual Studio
63 | *_i.c
64 | *_p.c
65 | *_h.h
66 | *.ilk
67 | *.meta
68 | *.obj
69 | *.iobj
70 | *.pch
71 | *.pdb
72 | *.ipdb
73 | *.pgc
74 | *.pgd
75 | *.rsp
76 | *.sbr
77 | *.tlb
78 | *.tli
79 | *.tlh
80 | *.tmp
81 | *.tmp_proj
82 | *_wpftmp.csproj
83 | *.log
84 | *.vspscc
85 | *.vssscc
86 | .builds
87 | *.pidb
88 | *.svclog
89 | *.scc
90 |
91 | # Chutzpah Test files
92 | _Chutzpah*
93 |
94 | # Visual C++ cache files
95 | ipch/
96 | *.aps
97 | *.ncb
98 | *.opendb
99 | *.opensdf
100 | *.sdf
101 | *.cachefile
102 | *.VC.db
103 | *.VC.VC.opendb
104 |
105 | # Visual Studio profiler
106 | *.psess
107 | *.vsp
108 | *.vspx
109 | *.sap
110 |
111 | # Visual Studio Trace Files
112 | *.e2e
113 |
114 | # TFS 2012 Local Workspace
115 | $tf/
116 |
117 | # Guidance Automation Toolkit
118 | *.gpState
119 |
120 | # ReSharper is a .NET coding add-in
121 | _ReSharper*/
122 | *.[Rr]e[Ss]harper
123 | *.DotSettings.user
124 |
125 | # JustCode is a .NET coding add-in
126 | .JustCode
127 |
128 | # TeamCity is a build add-in
129 | _TeamCity*
130 |
131 | # DotCover is a Code Coverage Tool
132 | *.dotCover
133 |
134 | # AxoCover is a Code Coverage Tool
135 | .axoCover/*
136 | !.axoCover/settings.json
137 |
138 | # Visual Studio code coverage results
139 | *.coverage
140 | *.coveragexml
141 |
142 | # NCrunch
143 | _NCrunch_*
144 | .*crunch*.local.xml
145 | nCrunchTemp_*
146 |
147 | # MightyMoose
148 | *.mm.*
149 | AutoTest.Net/
150 |
151 | # Web workbench (sass)
152 | .sass-cache/
153 |
154 | # Installshield output folder
155 | [Ee]xpress/
156 |
157 | # DocProject is a documentation generator add-in
158 | DocProject/buildhelp/
159 | DocProject/Help/*.HxT
160 | DocProject/Help/*.HxC
161 | DocProject/Help/*.hhc
162 | DocProject/Help/*.hhk
163 | DocProject/Help/*.hhp
164 | DocProject/Help/Html2
165 | DocProject/Help/html
166 |
167 | # Click-Once directory
168 | publish/
169 |
170 | # Publish Web Output
171 | *.[Pp]ublish.xml
172 | *.azurePubxml
173 | # Note: Comment the next line if you want to checkin your web deploy settings,
174 | # but database connection strings (with potential passwords) will be unencrypted
175 | *.pubxml
176 | *.publishproj
177 |
178 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
179 | # checkin your Azure Web App publish settings, but sensitive information contained
180 | # in these scripts will be unencrypted
181 | PublishScripts/
182 |
183 | # NuGet Packages
184 | *.nupkg
185 | # The packages folder can be ignored because of Package Restore
186 | **/[Pp]ackages/*
187 | # except build/, which is used as an MSBuild target.
188 | !**/[Pp]ackages/build/
189 | # Uncomment if necessary however generally it will be regenerated when needed
190 | #!**/[Pp]ackages/repositories.config
191 | # NuGet v3's project.json files produces more ignorable files
192 | *.nuget.props
193 | *.nuget.targets
194 |
195 | # Microsoft Azure Build Output
196 | csx/
197 | *.build.csdef
198 |
199 | # Microsoft Azure Emulator
200 | ecf/
201 | rcf/
202 |
203 | # Windows Store app package directories and files
204 | AppPackages/
205 | BundleArtifacts/
206 | Package.StoreAssociation.xml
207 | _pkginfo.txt
208 | *.appx
209 |
210 | # Visual Studio cache files
211 | # files ending in .cache can be ignored
212 | *.[Cc]ache
213 | # but keep track of directories ending in .cache
214 | !?*.[Cc]ache/
215 |
216 | # Others
217 | ClientBin/
218 | ~$*
219 | *~
220 | *.dbmdl
221 | *.dbproj.schemaview
222 | *.jfm
223 | *.pfx
224 | *.publishsettings
225 | orleans.codegen.cs
226 |
227 | # Including strong name files can present a security risk
228 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
229 | #*.snk
230 |
231 | # Since there are multiple workflows, uncomment next line to ignore bower_components
232 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
233 | #bower_components/
234 |
235 | # RIA/Silverlight projects
236 | Generated_Code/
237 |
238 | # Backup & report files from converting an old project file
239 | # to a newer Visual Studio version. Backup files are not needed,
240 | # because we have git ;-)
241 | _UpgradeReport_Files/
242 | Backup*/
243 | UpgradeLog*.XML
244 | UpgradeLog*.htm
245 | ServiceFabricBackup/
246 | *.rptproj.bak
247 |
248 | # SQL Server files
249 | *.mdf
250 | *.ldf
251 | *.ndf
252 |
253 | # Business Intelligence projects
254 | *.rdl.data
255 | *.bim.layout
256 | *.bim_*.settings
257 | *.rptproj.rsuser
258 | *- Backup*.rdl
259 |
260 | # Microsoft Fakes
261 | FakesAssemblies/
262 |
263 | # GhostDoc plugin setting file
264 | *.GhostDoc.xml
265 |
266 | # Node.js Tools for Visual Studio
267 | .ntvs_analysis.dat
268 | node_modules/
269 |
270 | # Visual Studio 6 build log
271 | *.plg
272 |
273 | # Visual Studio 6 workspace options file
274 | *.opt
275 |
276 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
277 | *.vbw
278 |
279 | # Visual Studio LightSwitch build output
280 | **/*.HTMLClient/GeneratedArtifacts
281 | **/*.DesktopClient/GeneratedArtifacts
282 | **/*.DesktopClient/ModelManifest.xml
283 | **/*.Server/GeneratedArtifacts
284 | **/*.Server/ModelManifest.xml
285 | _Pvt_Extensions
286 |
287 | # Paket dependency manager
288 | .paket/paket.exe
289 | paket-files/
290 |
291 | # FAKE - F# Make
292 | .fake/
293 |
294 | # JetBrains Rider
295 | .idea/
296 | *.sln.iml
297 |
298 | # CodeRush personal settings
299 | .cr/personal
300 |
301 | # Python Tools for Visual Studio (PTVS)
302 | __pycache__/
303 | *.pyc
304 |
305 | # Cake - Uncomment if you are using it
306 | # tools/**
307 | # !tools/packages.config
308 |
309 | # Tabs Studio
310 | *.tss
311 |
312 | # Telerik's JustMock configuration file
313 | *.jmconfig
314 |
315 | # BizTalk build output
316 | *.btp.cs
317 | *.btm.cs
318 | *.odx.cs
319 | *.xsd.cs
320 |
321 | # OpenCover UI analysis results
322 | OpenCover/
323 |
324 | # Azure Stream Analytics local run output
325 | ASALocalRun/
326 |
327 | # MSBuild Binary and Structured Log
328 | *.binlog
329 |
330 | # NVidia Nsight GPU debugger configuration file
331 | *.nvuser
332 |
333 | # MFractors (Xamarin productivity tool) working folder
334 | .mfractor/
335 |
336 | # Local History for Visual Studio
337 | .localhistory/
338 |
339 | # BeatPulse healthcheck temp database
340 | healthchecksdb
--------------------------------------------------------------------------------