├── HelloLambda
├── Properties
│ └── launchSettings.json
├── HelloLambda.csproj
├── Function.cs
├── aws-lambda-tools-defaults.json
└── Readme.md
├── StudentLambda
├── Properties
│ └── launchSettings.json
├── Student.cs
├── StudentLambda.csproj
├── aws-lambda-tools-defaults.json
├── Function.cs
└── Readme.md
├── README.md
├── AWSServerless.Dotnet.Demo.sln
└── .gitignore
/HelloLambda/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "profiles": {
3 | "Mock Lambda Test Tool": {
4 | "commandName": "Executable",
5 | "commandLineArgs": "--port 5050",
6 | "workingDirectory": ".\\bin\\$(Configuration)\\net6.0",
7 | "executablePath": "%USERPROFILE%\\.dotnet\\tools\\dotnet-lambda-test-tool-6.0.exe"
8 | }
9 | }
10 | }
--------------------------------------------------------------------------------
/StudentLambda/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "profiles": {
3 | "Mock Lambda Test Tool": {
4 | "commandName": "Executable",
5 | "commandLineArgs": "--port 5050",
6 | "workingDirectory": ".\\bin\\$(Configuration)\\net6.0",
7 | "executablePath": "%USERPROFILE%\\.dotnet\\tools\\dotnet-lambda-test-tool-6.0.exe"
8 | }
9 | }
10 | }
--------------------------------------------------------------------------------
/StudentLambda/Student.cs:
--------------------------------------------------------------------------------
1 | using Amazon.DynamoDBv2.DataModel;
2 |
3 | namespace StudentLambda
4 | {
5 | [DynamoDBTable("students")]
6 | public class Student
7 | {
8 | [DynamoDBHashKey("id")]
9 | public int? Id { get; set; }
10 |
11 | [DynamoDBProperty("first_name")]
12 | public string? FirstName { get; set; }
13 |
14 | [DynamoDBProperty("last_name")]
15 | public string? LastName { get; set; }
16 |
17 | [DynamoDBProperty("class")]
18 | public int Class { get; set; }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/HelloLambda/HelloLambda.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 | net6.0
4 | enable
5 | enable
6 | true
7 | Lambda
8 |
9 | true
10 |
11 | true
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/HelloLambda/Function.cs:
--------------------------------------------------------------------------------
1 | using Amazon.Lambda.APIGatewayEvents;
2 | using Amazon.Lambda.Core;
3 |
4 | // Assembly attribute to enable the Lambda function's JSON input to be converted into a .NET class.
5 | [assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.SystemTextJson.DefaultLambdaJsonSerializer))]
6 |
7 | namespace HelloLambda;
8 |
9 | public class Function
10 | {
11 |
12 | ///
13 | /// A simple function that takes a string and does a ToUpper
14 | ///
15 | ///
16 | ///
17 | ///
18 | public APIGatewayHttpApiV2ProxyResponse FunctionHandler(APIGatewayHttpApiV2ProxyRequest request, ILambdaContext context)
19 | {
20 | request.QueryStringParameters.TryGetValue("name", out var name);
21 | name = name ?? "John Doe";
22 | var message = $"Hello {name}, from AWS Lambda";
23 | return new APIGatewayHttpApiV2ProxyResponse
24 | {
25 | Body = message,
26 | StatusCode = 200
27 | };
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/StudentLambda/StudentLambda.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 | net6.0
4 | enable
5 | enable
6 | true
7 | Lambda
8 |
9 | true
10 |
11 | true
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Amazon API Gateway with .NET – AWS Lambda & DynamoDB Integrations
2 |
3 | In this article, we will be getting started with Amazon API Gateway with .NET. Using this, we will be able to expose AWS Lambdas to the external world quite easily.
4 |
5 | 
6 |
7 | In a previous article, we learned about working with AWS Lambda using .NET, which is a vital point for getting started with Serverless applications. Although we built and deployed those Lambdas onto AWS, we never really discussed how we would expose them to be invoked by the external world.
8 |
9 | ## Topics Covered:
10 | - What is Amazon API Gateway?
11 | - AWS REST API vs HTTP API
12 | - Building & Publishing an AWS Lambda with .NET
13 | - Creating Amazon API Gateway
14 | - Exploring Amazon API Gateway Console Interface
15 | - Building Students Management AWS Lambda with .NET
16 | - Getting All Students
17 | - Create Student
18 | - Get Student By ID
19 | - Adding DynamoDB Permissions.
20 | - Wiring up Amazon API Gateway with .NET Lambda
21 |
22 | Read the entire article - https://codewithmukesh.com/blog/amazon-api-gateway-with-dotnet/
23 |
24 |
--------------------------------------------------------------------------------
/HelloLambda/aws-lambda-tools-defaults.json:
--------------------------------------------------------------------------------
1 |
2 | {
3 | "Information" : [
4 | "This file provides default values for the deployment wizard inside Visual Studio and the AWS Lambda commands added to the .NET Core CLI.",
5 | "To learn more about the Lambda commands with the .NET Core CLI execute the following command at the command line in the project root directory.",
6 | "dotnet lambda help",
7 | "All the command line options for the Lambda command can be specified in this file."
8 | ],
9 | "profile" : "aws-admin",
10 | "region" : "ap-south-1",
11 | "configuration" : "Release",
12 | "function-runtime" : "dotnet6",
13 | "function-memory-size" : 256,
14 | "function-timeout" : 30,
15 | "function-handler" : "HelloLambda::HelloLambda.Function::FunctionHandler",
16 | "framework" : "net6.0",
17 | "function-name" : "hello",
18 | "function-description" : "A Simple Hello Lambda.",
19 | "package-type" : "Zip",
20 | "function-role" : "arn:aws:iam::821175633958:role/lambda_exec_hello",
21 | "function-architecture" : "x86_64",
22 | "tracing-mode" : "PassThrough",
23 | "environment-variables" : "",
24 | "image-tag" : ""
25 | }
--------------------------------------------------------------------------------
/StudentLambda/aws-lambda-tools-defaults.json:
--------------------------------------------------------------------------------
1 |
2 | {
3 | "Information" : [
4 | "This file provides default values for the deployment wizard inside Visual Studio and the AWS Lambda commands added to the .NET Core CLI.",
5 | "To learn more about the Lambda commands with the .NET Core CLI execute the following command at the command line in the project root directory.",
6 | "dotnet lambda help",
7 | "All the command line options for the Lambda command can be specified in this file."
8 | ],
9 | "profile" : "aws-admin",
10 | "region" : "ap-south-1",
11 | "configuration" : "Release",
12 | "function-runtime" : "dotnet6",
13 | "function-memory-size" : 256,
14 | "function-timeout" : 30,
15 | "function-handler" : "StudentLambda::StudentLambda.Function::CreateStudentAsync",
16 | "framework" : "net6.0",
17 | "function-name" : "create-student",
18 | "function-description" : "Creates a student Record.",
19 | "package-type" : "Zip",
20 | "function-role" : "arn:aws:iam::821175633958:role/lambda_exec_get-all-students",
21 | "function-architecture" : "x86_64",
22 | "tracing-mode" : "PassThrough",
23 | "environment-variables" : "",
24 | "image-tag" : ""
25 | }
--------------------------------------------------------------------------------
/AWSServerless.Dotnet.Demo.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.2.32516.85
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloLambda", "HelloLambda\HelloLambda.csproj", "{0DA03988-4289-4E1B-A611-44838FFB1368}"
7 | EndProject
8 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StudentLambda", "StudentLambda\StudentLambda.csproj", "{DB835548-2F6F-41AE-8DE0-68B9B6CD5C73}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|Any CPU = Debug|Any CPU
13 | Release|Any CPU = Release|Any CPU
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {0DA03988-4289-4E1B-A611-44838FFB1368}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {0DA03988-4289-4E1B-A611-44838FFB1368}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {0DA03988-4289-4E1B-A611-44838FFB1368}.Release|Any CPU.ActiveCfg = Release|Any CPU
19 | {0DA03988-4289-4E1B-A611-44838FFB1368}.Release|Any CPU.Build.0 = Release|Any CPU
20 | {DB835548-2F6F-41AE-8DE0-68B9B6CD5C73}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {DB835548-2F6F-41AE-8DE0-68B9B6CD5C73}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {DB835548-2F6F-41AE-8DE0-68B9B6CD5C73}.Release|Any CPU.ActiveCfg = Release|Any CPU
23 | {DB835548-2F6F-41AE-8DE0-68B9B6CD5C73}.Release|Any CPU.Build.0 = Release|Any CPU
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | GlobalSection(ExtensibilityGlobals) = postSolution
29 | SolutionGuid = {5E1AACF6-C510-457D-A32D-B0E7508E6AA1}
30 | EndGlobalSection
31 | EndGlobal
32 |
--------------------------------------------------------------------------------
/StudentLambda/Function.cs:
--------------------------------------------------------------------------------
1 | using Amazon.DynamoDBv2;
2 | using Amazon.DynamoDBv2.DataModel;
3 | using Amazon.Lambda.APIGatewayEvents;
4 | using Amazon.Lambda.Core;
5 | using Newtonsoft.Json;
6 |
7 | // Assembly attribute to enable the Lambda function's JSON input to be converted into a .NET class.
8 | [assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.SystemTextJson.DefaultLambdaJsonSerializer))]
9 |
10 | namespace StudentLambda;
11 |
12 | public class Function
13 | {
14 |
15 | public async Task> GetAllStudentsAsync(APIGatewayHttpApiV2ProxyRequest request, ILambdaContext context)
16 | {
17 | AmazonDynamoDBClient client = new AmazonDynamoDBClient();
18 | DynamoDBContext dbContext = new DynamoDBContext(client);
19 | var data = await dbContext.ScanAsync(default).GetRemainingAsync();
20 | return data;
21 | }
22 | public async Task CreateStudentAsync(APIGatewayHttpApiV2ProxyRequest request, ILambdaContext context)
23 | {
24 | var studentRequest = JsonConvert.DeserializeObject(request.Body);
25 | AmazonDynamoDBClient client = new AmazonDynamoDBClient();
26 | DynamoDBContext dbContext = new DynamoDBContext(client);
27 | await dbContext.SaveAsync(studentRequest);
28 | var message = $"Student with Id {studentRequest?.Id} Created";
29 | LambdaLogger.Log(message);
30 | return new APIGatewayHttpApiV2ProxyResponse
31 | {
32 | Body = message,
33 | StatusCode = 200
34 | };
35 | }
36 | public async Task GetStudentByIdAsync(APIGatewayHttpApiV2ProxyRequest request, ILambdaContext context)
37 | {
38 | AmazonDynamoDBClient client = new AmazonDynamoDBClient();
39 | DynamoDBContext dbContext = new DynamoDBContext(client);
40 | string idFromPath = request.PathParameters["id"];
41 | int id = Int32.Parse(idFromPath);
42 | var student = await dbContext.LoadAsync(id);
43 | if (student == null) throw new Exception("Not Found!");
44 | return student;
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/HelloLambda/Readme.md:
--------------------------------------------------------------------------------
1 | # AWS Lambda Empty Function Project
2 |
3 | This starter project consists of:
4 | * Function.cs - class file containing a class with a single function handler method
5 | * aws-lambda-tools-defaults.json - default argument settings for use with Visual Studio and command line deployment tools for AWS
6 |
7 | You may also have a test project depending on the options selected.
8 |
9 | The generated function handler is a simple method accepting a string argument that returns the uppercase equivalent of the input string. Replace the body of this method, and parameters, to suit your needs.
10 |
11 | ## Here are some steps to follow from Visual Studio:
12 |
13 | To deploy your function to AWS Lambda, right click the project in Solution Explorer and select *Publish to AWS Lambda*.
14 |
15 | To view your deployed function open its Function View window by double-clicking the function name shown beneath the AWS Lambda node in the AWS Explorer tree.
16 |
17 | To perform testing against your deployed function use the Test Invoke tab in the opened Function View window.
18 |
19 | To configure event sources for your deployed function, for example to have your function invoked when an object is created in an Amazon S3 bucket, use the Event Sources tab in the opened Function View window.
20 |
21 | To update the runtime configuration of your deployed function use the Configuration tab in the opened Function View window.
22 |
23 | To view execution logs of invocations of your function use the Logs tab in the opened Function View window.
24 |
25 | ## Here are some steps to follow to get started from the command line:
26 |
27 | Once you have edited your template and code you can deploy your application using the [Amazon.Lambda.Tools Global Tool](https://github.com/aws/aws-extensions-for-dotnet-cli#aws-lambda-amazonlambdatools) from the command line.
28 |
29 | Install Amazon.Lambda.Tools Global Tools if not already installed.
30 | ```
31 | dotnet tool install -g Amazon.Lambda.Tools
32 | ```
33 |
34 | If already installed check if new version is available.
35 | ```
36 | dotnet tool update -g Amazon.Lambda.Tools
37 | ```
38 |
39 | Execute unit tests
40 | ```
41 | cd "HelloLambda/test/HelloLambda.Tests"
42 | dotnet test
43 | ```
44 |
45 | Deploy function to AWS Lambda
46 | ```
47 | cd "HelloLambda/src/HelloLambda"
48 | dotnet lambda deploy-function
49 | ```
50 |
--------------------------------------------------------------------------------
/StudentLambda/Readme.md:
--------------------------------------------------------------------------------
1 | # AWS Lambda Empty Function Project
2 |
3 | This starter project consists of:
4 | * Function.cs - class file containing a class with a single function handler method
5 | * aws-lambda-tools-defaults.json - default argument settings for use with Visual Studio and command line deployment tools for AWS
6 |
7 | You may also have a test project depending on the options selected.
8 |
9 | The generated function handler is a simple method accepting a string argument that returns the uppercase equivalent of the input string. Replace the body of this method, and parameters, to suit your needs.
10 |
11 | ## Here are some steps to follow from Visual Studio:
12 |
13 | To deploy your function to AWS Lambda, right click the project in Solution Explorer and select *Publish to AWS Lambda*.
14 |
15 | To view your deployed function open its Function View window by double-clicking the function name shown beneath the AWS Lambda node in the AWS Explorer tree.
16 |
17 | To perform testing against your deployed function use the Test Invoke tab in the opened Function View window.
18 |
19 | To configure event sources for your deployed function, for example to have your function invoked when an object is created in an Amazon S3 bucket, use the Event Sources tab in the opened Function View window.
20 |
21 | To update the runtime configuration of your deployed function use the Configuration tab in the opened Function View window.
22 |
23 | To view execution logs of invocations of your function use the Logs tab in the opened Function View window.
24 |
25 | ## Here are some steps to follow to get started from the command line:
26 |
27 | Once you have edited your template and code you can deploy your application using the [Amazon.Lambda.Tools Global Tool](https://github.com/aws/aws-extensions-for-dotnet-cli#aws-lambda-amazonlambdatools) from the command line.
28 |
29 | Install Amazon.Lambda.Tools Global Tools if not already installed.
30 | ```
31 | dotnet tool install -g Amazon.Lambda.Tools
32 | ```
33 |
34 | If already installed check if new version is available.
35 | ```
36 | dotnet tool update -g Amazon.Lambda.Tools
37 | ```
38 |
39 | Execute unit tests
40 | ```
41 | cd "StudentLambda/test/StudentLambda.Tests"
42 | dotnet test
43 | ```
44 |
45 | Deploy function to AWS Lambda
46 | ```
47 | cd "StudentLambda/src/StudentLambda"
48 | dotnet lambda deploy-function
49 | ```
50 |
--------------------------------------------------------------------------------
/.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 | # Mono auto generated files
17 | mono_crash.*
18 |
19 | # Build results
20 | [Dd]ebug/
21 | [Dd]ebugPublic/
22 | [Rr]elease/
23 | [Rr]eleases/
24 | x64/
25 | x86/
26 | [Ww][Ii][Nn]32/
27 | [Aa][Rr][Mm]/
28 | [Aa][Rr][Mm]64/
29 | bld/
30 | [Bb]in/
31 | [Oo]bj/
32 | [Ll]og/
33 | [Ll]ogs/
34 |
35 | # Visual Studio 2015/2017 cache/options directory
36 | .vs/
37 | # Uncomment if you have tasks that create the project's static files in wwwroot
38 | #wwwroot/
39 |
40 | # Visual Studio 2017 auto generated files
41 | Generated\ Files/
42 |
43 | # MSTest test Results
44 | [Tt]est[Rr]esult*/
45 | [Bb]uild[Ll]og.*
46 |
47 | # NUnit
48 | *.VisualState.xml
49 | TestResult.xml
50 | nunit-*.xml
51 |
52 | # Build Results of an ATL Project
53 | [Dd]ebugPS/
54 | [Rr]eleasePS/
55 | dlldata.c
56 |
57 | # Benchmark Results
58 | BenchmarkDotNet.Artifacts/
59 |
60 | # .NET
61 | project.lock.json
62 | project.fragment.lock.json
63 | artifacts/
64 |
65 | # Tye
66 | .tye/
67 |
68 | # ASP.NET Scaffolding
69 | ScaffoldingReadMe.txt
70 |
71 | # StyleCop
72 | StyleCopReport.xml
73 |
74 | # Files built by Visual Studio
75 | *_i.c
76 | *_p.c
77 | *_h.h
78 | *.ilk
79 | *.meta
80 | *.obj
81 | *.iobj
82 | *.pch
83 | *.pdb
84 | *.ipdb
85 | *.pgc
86 | *.pgd
87 | *.rsp
88 | *.sbr
89 | *.tlb
90 | *.tli
91 | *.tlh
92 | *.tmp
93 | *.tmp_proj
94 | *_wpftmp.csproj
95 | *.log
96 | *.vspscc
97 | *.vssscc
98 | .builds
99 | *.pidb
100 | *.svclog
101 | *.scc
102 |
103 | # Chutzpah Test files
104 | _Chutzpah*
105 |
106 | # Visual C++ cache files
107 | ipch/
108 | *.aps
109 | *.ncb
110 | *.opendb
111 | *.opensdf
112 | *.sdf
113 | *.cachefile
114 | *.VC.db
115 | *.VC.VC.opendb
116 |
117 | # Visual Studio profiler
118 | *.psess
119 | *.vsp
120 | *.vspx
121 | *.sap
122 |
123 | # Visual Studio Trace Files
124 | *.e2e
125 |
126 | # TFS 2012 Local Workspace
127 | $tf/
128 |
129 | # Guidance Automation Toolkit
130 | *.gpState
131 |
132 | # ReSharper is a .NET coding add-in
133 | _ReSharper*/
134 | *.[Rr]e[Ss]harper
135 | *.DotSettings.user
136 |
137 | # TeamCity is a build add-in
138 | _TeamCity*
139 |
140 | # DotCover is a Code Coverage Tool
141 | *.dotCover
142 |
143 | # AxoCover is a Code Coverage Tool
144 | .axoCover/*
145 | !.axoCover/settings.json
146 |
147 | # Coverlet is a free, cross platform Code Coverage Tool
148 | coverage*.json
149 | coverage*.xml
150 | coverage*.info
151 |
152 | # Visual Studio code coverage results
153 | *.coverage
154 | *.coveragexml
155 |
156 | # NCrunch
157 | _NCrunch_*
158 | .*crunch*.local.xml
159 | nCrunchTemp_*
160 |
161 | # MightyMoose
162 | *.mm.*
163 | AutoTest.Net/
164 |
165 | # Web workbench (sass)
166 | .sass-cache/
167 |
168 | # Installshield output folder
169 | [Ee]xpress/
170 |
171 | # DocProject is a documentation generator add-in
172 | DocProject/buildhelp/
173 | DocProject/Help/*.HxT
174 | DocProject/Help/*.HxC
175 | DocProject/Help/*.hhc
176 | DocProject/Help/*.hhk
177 | DocProject/Help/*.hhp
178 | DocProject/Help/Html2
179 | DocProject/Help/html
180 |
181 | # Click-Once directory
182 | publish/
183 |
184 | # Publish Web Output
185 | *.[Pp]ublish.xml
186 | *.azurePubxml
187 | # Note: Comment the next line if you want to checkin your web deploy settings,
188 | # but database connection strings (with potential passwords) will be unencrypted
189 | *.pubxml
190 | *.publishproj
191 |
192 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
193 | # checkin your Azure Web App publish settings, but sensitive information contained
194 | # in these scripts will be unencrypted
195 | PublishScripts/
196 |
197 | # NuGet Packages
198 | *.nupkg
199 | # NuGet Symbol Packages
200 | *.snupkg
201 | # The packages folder can be ignored because of Package Restore
202 | **/[Pp]ackages/*
203 | # except build/, which is used as an MSBuild target.
204 | !**/[Pp]ackages/build/
205 | # Uncomment if necessary however generally it will be regenerated when needed
206 | #!**/[Pp]ackages/repositories.config
207 | # NuGet v3's project.json files produces more ignorable files
208 | *.nuget.props
209 | *.nuget.targets
210 |
211 | # Microsoft Azure Build Output
212 | csx/
213 | *.build.csdef
214 |
215 | # Microsoft Azure Emulator
216 | ecf/
217 | rcf/
218 |
219 | # Windows Store app package directories and files
220 | AppPackages/
221 | BundleArtifacts/
222 | Package.StoreAssociation.xml
223 | _pkginfo.txt
224 | *.appx
225 | *.appxbundle
226 | *.appxupload
227 |
228 | # Visual Studio cache files
229 | # files ending in .cache can be ignored
230 | *.[Cc]ache
231 | # but keep track of directories ending in .cache
232 | !?*.[Cc]ache/
233 |
234 | # Others
235 | ClientBin/
236 | ~$*
237 | *~
238 | *.dbmdl
239 | *.dbproj.schemaview
240 | *.jfm
241 | *.pfx
242 | *.publishsettings
243 | orleans.codegen.cs
244 |
245 | # Including strong name files can present a security risk
246 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
247 | #*.snk
248 |
249 | # Since there are multiple workflows, uncomment next line to ignore bower_components
250 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
251 | #bower_components/
252 |
253 | # RIA/Silverlight projects
254 | Generated_Code/
255 |
256 | # Backup & report files from converting an old project file
257 | # to a newer Visual Studio version. Backup files are not needed,
258 | # because we have git ;-)
259 | _UpgradeReport_Files/
260 | Backup*/
261 | UpgradeLog*.XML
262 | UpgradeLog*.htm
263 | ServiceFabricBackup/
264 | *.rptproj.bak
265 |
266 | # SQL Server files
267 | *.mdf
268 | *.ldf
269 | *.ndf
270 |
271 | # Business Intelligence projects
272 | *.rdl.data
273 | *.bim.layout
274 | *.bim_*.settings
275 | *.rptproj.rsuser
276 | *- [Bb]ackup.rdl
277 | *- [Bb]ackup ([0-9]).rdl
278 | *- [Bb]ackup ([0-9][0-9]).rdl
279 |
280 | # Microsoft Fakes
281 | FakesAssemblies/
282 |
283 | # GhostDoc plugin setting file
284 | *.GhostDoc.xml
285 |
286 | # Node.js Tools for Visual Studio
287 | .ntvs_analysis.dat
288 | node_modules/
289 |
290 | # Visual Studio 6 build log
291 | *.plg
292 |
293 | # Visual Studio 6 workspace options file
294 | *.opt
295 |
296 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
297 | *.vbw
298 |
299 | # Visual Studio LightSwitch build output
300 | **/*.HTMLClient/GeneratedArtifacts
301 | **/*.DesktopClient/GeneratedArtifacts
302 | **/*.DesktopClient/ModelManifest.xml
303 | **/*.Server/GeneratedArtifacts
304 | **/*.Server/ModelManifest.xml
305 | _Pvt_Extensions
306 |
307 | # Paket dependency manager
308 | .paket/paket.exe
309 | paket-files/
310 |
311 | # FAKE - F# Make
312 | .fake/
313 |
314 | # CodeRush personal settings
315 | .cr/personal
316 |
317 | # Python Tools for Visual Studio (PTVS)
318 | __pycache__/
319 | *.pyc
320 |
321 | # Cake - Uncomment if you are using it
322 | # tools/**
323 | # !tools/packages.config
324 |
325 | # Tabs Studio
326 | *.tss
327 |
328 | # Telerik's JustMock configuration file
329 | *.jmconfig
330 |
331 | # BizTalk build output
332 | *.btp.cs
333 | *.btm.cs
334 | *.odx.cs
335 | *.xsd.cs
336 |
337 | # OpenCover UI analysis results
338 | OpenCover/
339 |
340 | # Azure Stream Analytics local run output
341 | ASALocalRun/
342 |
343 | # MSBuild Binary and Structured Log
344 | *.binlog
345 |
346 | # NVidia Nsight GPU debugger configuration file
347 | *.nvuser
348 |
349 | # MFractors (Xamarin productivity tool) working folder
350 | .mfractor/
351 |
352 | # Local History for Visual Studio
353 | .localhistory/
354 |
355 | # BeatPulse healthcheck temp database
356 | healthchecksdb
357 |
358 | # Backup folder for Package Reference Convert tool in Visual Studio 2017
359 | MigrationBackup/
360 |
361 | # Ionide (cross platform F# VS Code tools) working folder
362 | .ionide/
363 |
364 | # Fody - auto-generated XML schema
365 | FodyWeavers.xsd
366 |
367 | ##
368 | ## Visual studio for Mac
369 | ##
370 |
371 |
372 | # globs
373 | Makefile.in
374 | *.userprefs
375 | *.usertasks
376 | config.make
377 | config.status
378 | aclocal.m4
379 | install-sh
380 | autom4te.cache/
381 | *.tar.gz
382 | tarballs/
383 | test-results/
384 |
385 | # Mac bundle stuff
386 | *.dmg
387 | *.app
388 |
389 | # content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore
390 | # General
391 | .DS_Store
392 | .AppleDouble
393 | .LSOverride
394 |
395 | # Icon must end with two \r
396 | Icon
397 |
398 |
399 | # Thumbnails
400 | ._*
401 |
402 | # Files that might appear in the root of a volume
403 | .DocumentRevisions-V100
404 | .fseventsd
405 | .Spotlight-V100
406 | .TemporaryItems
407 | .Trashes
408 | .VolumeIcon.icns
409 | .com.apple.timemachine.donotpresent
410 |
411 | # Directories potentially created on remote AFP share
412 | .AppleDB
413 | .AppleDesktop
414 | Network Trash Folder
415 | Temporary Items
416 | .apdisk
417 |
418 | # content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore
419 | # Windows thumbnail cache files
420 | Thumbs.db
421 | ehthumbs.db
422 | ehthumbs_vista.db
423 |
424 | # Dump file
425 | *.stackdump
426 |
427 | # Folder config file
428 | [Dd]esktop.ini
429 |
430 | # Recycle Bin used on file shares
431 | $RECYCLE.BIN/
432 |
433 | # Windows Installer files
434 | *.cab
435 | *.msi
436 | *.msix
437 | *.msm
438 | *.msp
439 |
440 | # Windows shortcuts
441 | *.lnk
442 |
443 | # JetBrains Rider
444 | .idea/
445 | *.sln.iml
446 |
447 | ##
448 | ## Visual Studio Code
449 | ##
450 | .vscode/*
451 | !.vscode/settings.json
452 | !.vscode/tasks.json
453 | !.vscode/launch.json
454 | !.vscode/extensions.json
455 |
--------------------------------------------------------------------------------