├── global.json ├── HTTPClientDigestAuth ├── HTTPClientDigestAuth.csproj ├── DigestAuthHeader.cs └── HttpClientExtensions.cs ├── .idea └── .idea.HTTPClientDigestAuth │ └── .idea │ ├── encodings.xml │ ├── vcs.xml │ ├── indexLayout.xml │ └── .gitignore ├── .github └── workflows │ └── dotnet.yml ├── HTTPClientDigestAuth.IntegrationTests ├── HTTPClientDigestAuth.IntegrationTests.csproj └── HTTPClientExtensionsTests.cs ├── HTTPClientDigestAuth.sln ├── README.md └── .gitignore /global.json: -------------------------------------------------------------------------------- 1 | { 2 | "sdk": { 3 | "version": "3.1.0", 4 | "rollForward": "latestMinor", 5 | "allowPrerelease": false 6 | } 7 | } -------------------------------------------------------------------------------- /HTTPClientDigestAuth/HTTPClientDigestAuth.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp3.1 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/.idea.HTTPClientDigestAuth/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /.idea/.idea.HTTPClientDigestAuth/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/.idea.HTTPClientDigestAuth/.idea/indexLayout.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/.idea.HTTPClientDigestAuth/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Rider ignored files 5 | /projectSettingsUpdater.xml 6 | /modules.xml 7 | /.idea.HTTPClientDigestAuth.iml 8 | /contentModel.xml 9 | # Editor-based HTTP Client requests 10 | /httpRequests/ 11 | # Datasource local storage ignored files 12 | /dataSources/ 13 | /dataSources.local.xml 14 | -------------------------------------------------------------------------------- /.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@v3 16 | - name: Setup .NET 17 | uses: actions/setup-dotnet@v2 18 | with: 19 | dotnet-version: '3.1.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 | -------------------------------------------------------------------------------- /HTTPClientDigestAuth.IntegrationTests/HTTPClientDigestAuth.IntegrationTests.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp3.1 5 | 6 | false 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /HTTPClientDigestAuth/DigestAuthHeader.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace HTTPClientDigestAuth 4 | { 5 | internal class DigestAuthHeader 6 | { 7 | public DigestAuthHeader(string realm, string username, string password, string nonce, string qualityOfProtection, 8 | int nonceCount, string clientNonce, string opaque) 9 | { 10 | Realm = realm; 11 | Username = username; 12 | Password = password; 13 | Nonce = nonce; 14 | QualityOfProtection = qualityOfProtection; 15 | NonceCount = nonceCount; 16 | ClientNonce = clientNonce; 17 | Opaque = opaque; 18 | } 19 | 20 | public string Realm { get; } 21 | public string Username { get; } 22 | public string Password { get; } 23 | public string Nonce { get; } 24 | public string QualityOfProtection { get; } 25 | public int NonceCount { get; } 26 | public string ClientNonce { get; } 27 | public string Opaque { get; } 28 | } 29 | } -------------------------------------------------------------------------------- /HTTPClientDigestAuth.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HTTPClientDigestAuth", "HTTPClientDigestAuth\HTTPClientDigestAuth.csproj", "{D9228C2E-B019-452F-8878-377EB7B07DD0}" 4 | EndProject 5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HTTPClientDigestAuth.IntegrationTests", "HTTPClientDigestAuth.IntegrationTests\HTTPClientDigestAuth.IntegrationTests.csproj", "{3DD1ED4A-3B5F-4E12-880B-6852D4164B11}" 6 | EndProject 7 | Global 8 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 9 | Debug|Any CPU = Debug|Any CPU 10 | Release|Any CPU = Release|Any CPU 11 | EndGlobalSection 12 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 13 | {D9228C2E-B019-452F-8878-377EB7B07DD0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 14 | {D9228C2E-B019-452F-8878-377EB7B07DD0}.Debug|Any CPU.Build.0 = Debug|Any CPU 15 | {D9228C2E-B019-452F-8878-377EB7B07DD0}.Release|Any CPU.ActiveCfg = Release|Any CPU 16 | {D9228C2E-B019-452F-8878-377EB7B07DD0}.Release|Any CPU.Build.0 = Release|Any CPU 17 | {3DD1ED4A-3B5F-4E12-880B-6852D4164B11}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 18 | {3DD1ED4A-3B5F-4E12-880B-6852D4164B11}.Debug|Any CPU.Build.0 = Debug|Any CPU 19 | {3DD1ED4A-3B5F-4E12-880B-6852D4164B11}.Release|Any CPU.ActiveCfg = Release|Any CPU 20 | {3DD1ED4A-3B5F-4E12-880B-6852D4164B11}.Release|Any CPU.Build.0 = Release|Any CPU 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Digest Authentication in .NET - An Example 2 | 3 | **UPDATE (03/10/2022): .NET 6 should now successfully do digest authentication, [as kindly pointed by someone in the example repository](https://github.com/CallumHoughton18/csharp-dotnet-digest-authentication/issues/1). Should save you the hassle of doing it manually, like in this repository!** 4 | 5 | This project contains an extension method in `HttpClientExtensions` that should work out 6 | of the box for basic digest authentication, and be a good starting point to expand upon. 7 | 8 | I couldn't personally find a way within .NET to handle digest authentication, and the ways that 9 | were documented flat out didn't work. 10 | 11 | I might release this as a Nuget package if I get the time. 12 | 13 | ## Example Usage 14 | 15 | The integration test in `HttpClientExtensionTests` provides the best example usage of 16 | the simple extension method: 17 | 18 | ```c# 19 | var client = new HttpClient(); 20 | client.BaseAddress = new Uri("https://httpbin.org"); 21 | var request = new HttpRequestMessage(HttpMethod.Get, "/digest-auth/auth/username/password"); 22 | request.Headers.Add("Accept", "*/*"); 23 | request.Headers.Add("User-Agent", "HttpClientDigestAuthTester"); 24 | request.Headers.Add("Accept-Encoding", "gzip, deflate, br"); 25 | request.Headers.Add("Connection", "keep-alive"); 26 | 27 | var response = await client.SendWithDigestAuthAsync(request, HttpCompletionOption.ResponseContentRead, "username", "password"); 28 | ``` 29 | 30 | ## Compatibility 31 | 32 | The `HttpClientDigestAuth` targets .NET Core 3.1, as this is most supported, being a LTS release, and stable .NET version before the newly released .NET 6.0. 33 | -------------------------------------------------------------------------------- /HTTPClientDigestAuth.IntegrationTests/HTTPClientExtensionsTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Net; 3 | using System.Net.Http; 4 | using System.Threading.Tasks; 5 | using Newtonsoft.Json.Linq; 6 | using Xunit; 7 | 8 | namespace HTTPClientDigestAuth.IntegrationTests 9 | { 10 | /// 11 | /// Peforms integration tests against the test digest authentication service hosted at httpbin.org 12 | /// 13 | public class HttpClientExtensionTests 14 | { 15 | // Httpbin doesn't *actually* contain this user, so don't need to hide the values. It's just a simple 16 | // http request and response service to perform tests against. 17 | // https://github.com/postmanlabs/httpbin 18 | 19 | private const string Username = "test"; 20 | private const string Password = "password"; 21 | private const string Host = "https://httpbin.org"; 22 | private readonly string _resource = $"/digest-auth/auth/{Username}/{Password}"; 23 | 24 | [Fact] 25 | public async Task Should_Authenticate_And_Return_200_Response() 26 | { 27 | var client = new HttpClient(); 28 | client.BaseAddress = new Uri(Host); 29 | var request = GenerateRequestToHttpBin(_resource); 30 | 31 | var response = await client.SendWithDigestAuthAsync(request, HttpCompletionOption.ResponseContentRead, Username, Password); 32 | Assert.True(response.StatusCode == HttpStatusCode.OK); 33 | 34 | var expectedJsonResponse = JToken.Parse($@"{{""authenticated"": true,""user"": ""{Username}""}}"); 35 | var actualBodyText = await response.Content.ReadAsStringAsync(); 36 | var actualJsonResponse = JToken.Parse(actualBodyText); 37 | 38 | Assert.Equal(expectedJsonResponse, actualJsonResponse); 39 | } 40 | 41 | private HttpRequestMessage GenerateRequestToHttpBin(string resourcePath) 42 | { 43 | var request = new HttpRequestMessage(HttpMethod.Get, resourcePath); 44 | request.Headers.Add("Accept", "*/*"); 45 | request.Headers.Add("User-Agent", "HttpClientDigestAuthTester"); 46 | request.Headers.Add("Accept-Encoding", "gzip, deflate, br"); 47 | request.Headers.Add("Connection", "keep-alive"); 48 | return request; 49 | } 50 | } 51 | } -------------------------------------------------------------------------------- /HTTPClientDigestAuth/HttpClientExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Net.Http; 5 | using System.Security.Cryptography; 6 | using System.Text; 7 | using System.Text.RegularExpressions; 8 | using System.Threading.Tasks; 9 | 10 | namespace HTTPClientDigestAuth 11 | { 12 | public static class HttpClientExtensions 13 | { 14 | /// 15 | /// Executes a secondary call to if the call to fails due to a 401 error, using Digest authentication 16 | /// 17 | /// HTTPClient object, this should have the BaseAddress property set 18 | /// Relative path to the resource from the host, e.g /services/service1?param=value 19 | /// 20 | /// 21 | /// 22 | /// 23 | /// 24 | public static async Task SendWithDigestAuthAsync(this HttpClient client, 25 | HttpRequestMessage request, HttpCompletionOption httpCompletionOption, 26 | string username, string password) 27 | { 28 | var newRequest = CloneBeforeContentSet(request); 29 | var response = await client.SendAsync(request, httpCompletionOption); 30 | if (response.StatusCode != System.Net.HttpStatusCode.Unauthorized) return response; 31 | 32 | var wwwAuthenticateHeaderValue = response.Headers.GetValues("WWW-Authenticate").FirstOrDefault(); 33 | 34 | var realm = GetChallengeValueFromHeader("realm", wwwAuthenticateHeaderValue); 35 | var nonce = GetChallengeValueFromHeader("nonce", wwwAuthenticateHeaderValue); 36 | var qop = GetChallengeValueFromHeader("qop", wwwAuthenticateHeaderValue); 37 | 38 | // Must be fresh on every request, so low chance of same client nonce here by just using a random number. 39 | var clientNonce = new Random().Next(123400, 9999999).ToString(); 40 | var opaque = GetChallengeValueFromHeader("opaque", wwwAuthenticateHeaderValue); 41 | 42 | // The nonce count 'nc' doesn't really matter, so we just set this to one. Why we always sending two requests per 1 request 43 | var digestHeader = new DigestAuthHeader(realm, username, password, nonce, qop, nonceCount: 1, clientNonce, opaque); 44 | var digestRequestHeader = GetDigestHeader(digestHeader, newRequest.RequestUri.ToString(), request.Method); 45 | 46 | newRequest.Headers.Add("Authorization", digestRequestHeader); 47 | var authRes = await client.SendAsync(newRequest, httpCompletionOption); 48 | return authRes; 49 | } 50 | 51 | private static string GetChallengeValueFromHeader(string challengeName, string fullHeaderValue) 52 | { 53 | // if variableName = qop, the below regex would look like qop="([^""]*)" 54 | // So it matches anything with the challenge name and then gets the challenge value 55 | var regHeader = new Regex($@"{challengeName}=""([^""]*)"""); 56 | var matchHeader = regHeader.Match(fullHeaderValue); 57 | 58 | if (matchHeader.Success) return matchHeader.Groups[1].Value; 59 | 60 | throw new ApplicationException($"Header {challengeName} not found"); 61 | } 62 | 63 | private static string GenerateMD5Hash(string input) 64 | { 65 | // x2 formatter is for hexadecimal in the ToString function 66 | using MD5 hash = MD5.Create(); 67 | return string.Concat(hash.ComputeHash(Encoding.UTF8.GetBytes(input)) 68 | .Select( x => x.ToString("x2")) 69 | ); 70 | } 71 | 72 | private static string GetDigestHeader(DigestAuthHeader digest, string digestUri, HttpMethod method) 73 | { 74 | var ha1 = GenerateMD5Hash($"{digest.Username}:{digest.Realm}:{digest.Password}"); 75 | var ha2 = GenerateMD5Hash($"{method}:{digestUri}"); 76 | var digestResponse = 77 | GenerateMD5Hash($"{ha1}:{digest.Nonce}:{digest.NonceCount:00000000}:{digest.ClientNonce}:{digest.QualityOfProtection}:{ha2}"); 78 | 79 | var headerString = 80 | $"Digest username=\"{digest.Username}\", realm=\"{digest.Realm}\", nonce=\"{digest.Nonce}\", uri=\"{digestUri}\", " + 81 | $"algorithm=MD5, qop={digest.QualityOfProtection}, nc={digest.NonceCount:00000000}, cnonce=\"{digest.ClientNonce}\", " + 82 | $"response=\"{digestResponse}\", opaque=\"{digest.Opaque}\""; 83 | 84 | return headerString; 85 | } 86 | 87 | private static HttpRequestMessage CloneBeforeContentSet(this HttpRequestMessage req) 88 | { 89 | // Deep clone of a given request, outlined here: 90 | // https://stackoverflow.com/questions/18000583/re-send-httprequestmessage-exception/18014515#18014515 91 | HttpRequestMessage clone = new HttpRequestMessage(req.Method, req.RequestUri); 92 | 93 | clone.Content = req.Content; 94 | clone.Version = req.Version; 95 | 96 | foreach (KeyValuePair prop in req.Properties) 97 | { 98 | clone.Properties.Add(prop); 99 | } 100 | 101 | foreach (KeyValuePair> header in req.Headers) 102 | { 103 | clone.Headers.TryAddWithoutValidation(header.Key, header.Value); 104 | } 105 | 106 | return clone; 107 | } 108 | } 109 | } -------------------------------------------------------------------------------- /.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/main/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 Core 61 | project.lock.json 62 | project.fragment.lock.json 63 | artifacts/ 64 | 65 | # ASP.NET Scaffolding 66 | ScaffoldingReadMe.txt 67 | 68 | # StyleCop 69 | StyleCopReport.xml 70 | 71 | # Files built by Visual Studio 72 | *_i.c 73 | *_p.c 74 | *_h.h 75 | *.ilk 76 | *.meta 77 | *.obj 78 | *.iobj 79 | *.pch 80 | *.pdb 81 | *.ipdb 82 | *.pgc 83 | *.pgd 84 | *.rsp 85 | *.sbr 86 | *.tlb 87 | *.tli 88 | *.tlh 89 | *.tmp 90 | *.tmp_proj 91 | *_wpftmp.csproj 92 | *.log 93 | *.tlog 94 | *.vspscc 95 | *.vssscc 96 | .builds 97 | *.pidb 98 | *.svclog 99 | *.scc 100 | 101 | # Chutzpah Test files 102 | _Chutzpah* 103 | 104 | # Visual C++ cache files 105 | ipch/ 106 | *.aps 107 | *.ncb 108 | *.opendb 109 | *.opensdf 110 | *.sdf 111 | *.cachefile 112 | *.VC.db 113 | *.VC.VC.opendb 114 | 115 | # Visual Studio profiler 116 | *.psess 117 | *.vsp 118 | *.vspx 119 | *.sap 120 | 121 | # Visual Studio Trace Files 122 | *.e2e 123 | 124 | # TFS 2012 Local Workspace 125 | $tf/ 126 | 127 | # Guidance Automation Toolkit 128 | *.gpState 129 | 130 | # ReSharper is a .NET coding add-in 131 | _ReSharper*/ 132 | *.[Rr]e[Ss]harper 133 | *.DotSettings.user 134 | 135 | # TeamCity is a build add-in 136 | _TeamCity* 137 | 138 | # DotCover is a Code Coverage Tool 139 | *.dotCover 140 | 141 | # AxoCover is a Code Coverage Tool 142 | .axoCover/* 143 | !.axoCover/settings.json 144 | 145 | # Coverlet is a free, cross platform Code Coverage Tool 146 | coverage*.json 147 | coverage*.xml 148 | coverage*.info 149 | 150 | # Visual Studio code coverage results 151 | *.coverage 152 | *.coveragexml 153 | 154 | # NCrunch 155 | _NCrunch_* 156 | .*crunch*.local.xml 157 | nCrunchTemp_* 158 | 159 | # MightyMoose 160 | *.mm.* 161 | AutoTest.Net/ 162 | 163 | # Web workbench (sass) 164 | .sass-cache/ 165 | 166 | # Installshield output folder 167 | [Ee]xpress/ 168 | 169 | # DocProject is a documentation generator add-in 170 | DocProject/buildhelp/ 171 | DocProject/Help/*.HxT 172 | DocProject/Help/*.HxC 173 | DocProject/Help/*.hhc 174 | DocProject/Help/*.hhk 175 | DocProject/Help/*.hhp 176 | DocProject/Help/Html2 177 | DocProject/Help/html 178 | 179 | # Click-Once directory 180 | publish/ 181 | 182 | # Publish Web Output 183 | *.[Pp]ublish.xml 184 | *.azurePubxml 185 | # Note: Comment the next line if you want to checkin your web deploy settings, 186 | # but database connection strings (with potential passwords) will be unencrypted 187 | *.pubxml 188 | *.publishproj 189 | 190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 191 | # checkin your Azure Web App publish settings, but sensitive information contained 192 | # in these scripts will be unencrypted 193 | PublishScripts/ 194 | 195 | # NuGet Packages 196 | *.nupkg 197 | # NuGet Symbol Packages 198 | *.snupkg 199 | # The packages folder can be ignored because of Package Restore 200 | **/[Pp]ackages/* 201 | # except build/, which is used as an MSBuild target. 202 | !**/[Pp]ackages/build/ 203 | # Uncomment if necessary however generally it will be regenerated when needed 204 | #!**/[Pp]ackages/repositories.config 205 | # NuGet v3's project.json files produces more ignorable files 206 | *.nuget.props 207 | *.nuget.targets 208 | 209 | # Microsoft Azure Build Output 210 | csx/ 211 | *.build.csdef 212 | 213 | # Microsoft Azure Emulator 214 | ecf/ 215 | rcf/ 216 | 217 | # Windows Store app package directories and files 218 | AppPackages/ 219 | BundleArtifacts/ 220 | Package.StoreAssociation.xml 221 | _pkginfo.txt 222 | *.appx 223 | *.appxbundle 224 | *.appxupload 225 | 226 | # Visual Studio cache files 227 | # files ending in .cache can be ignored 228 | *.[Cc]ache 229 | # but keep track of directories ending in .cache 230 | !?*.[Cc]ache/ 231 | 232 | # Others 233 | ClientBin/ 234 | ~$* 235 | *~ 236 | *.dbmdl 237 | *.dbproj.schemaview 238 | *.jfm 239 | *.pfx 240 | *.publishsettings 241 | orleans.codegen.cs 242 | 243 | # Including strong name files can present a security risk 244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 245 | #*.snk 246 | 247 | # Since there are multiple workflows, uncomment next line to ignore bower_components 248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 249 | #bower_components/ 250 | 251 | # RIA/Silverlight projects 252 | Generated_Code/ 253 | 254 | # Backup & report files from converting an old project file 255 | # to a newer Visual Studio version. Backup files are not needed, 256 | # because we have git ;-) 257 | _UpgradeReport_Files/ 258 | Backup*/ 259 | UpgradeLog*.XML 260 | UpgradeLog*.htm 261 | ServiceFabricBackup/ 262 | *.rptproj.bak 263 | 264 | # SQL Server files 265 | *.mdf 266 | *.ldf 267 | *.ndf 268 | 269 | # Business Intelligence projects 270 | *.rdl.data 271 | *.bim.layout 272 | *.bim_*.settings 273 | *.rptproj.rsuser 274 | *- [Bb]ackup.rdl 275 | *- [Bb]ackup ([0-9]).rdl 276 | *- [Bb]ackup ([0-9][0-9]).rdl 277 | 278 | # Microsoft Fakes 279 | FakesAssemblies/ 280 | 281 | # GhostDoc plugin setting file 282 | *.GhostDoc.xml 283 | 284 | # Node.js Tools for Visual Studio 285 | .ntvs_analysis.dat 286 | node_modules/ 287 | 288 | # Visual Studio 6 build log 289 | *.plg 290 | 291 | # Visual Studio 6 workspace options file 292 | *.opt 293 | 294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 295 | *.vbw 296 | 297 | # Visual Studio 6 auto-generated project file (contains which files were open etc.) 298 | *.vbp 299 | 300 | # Visual Studio 6 workspace and project file (working project files containing files to include in project) 301 | *.dsw 302 | *.dsp 303 | 304 | # Visual Studio 6 technical files 305 | *.ncb 306 | *.aps 307 | 308 | # Visual Studio LightSwitch build output 309 | **/*.HTMLClient/GeneratedArtifacts 310 | **/*.DesktopClient/GeneratedArtifacts 311 | **/*.DesktopClient/ModelManifest.xml 312 | **/*.Server/GeneratedArtifacts 313 | **/*.Server/ModelManifest.xml 314 | _Pvt_Extensions 315 | 316 | # Paket dependency manager 317 | .paket/paket.exe 318 | paket-files/ 319 | 320 | # FAKE - F# Make 321 | .fake/ 322 | 323 | # CodeRush personal settings 324 | .cr/personal 325 | 326 | # Python Tools for Visual Studio (PTVS) 327 | __pycache__/ 328 | *.pyc 329 | 330 | # Cake - Uncomment if you are using it 331 | # tools/** 332 | # !tools/packages.config 333 | 334 | # Tabs Studio 335 | *.tss 336 | 337 | # Telerik's JustMock configuration file 338 | *.jmconfig 339 | 340 | # BizTalk build output 341 | *.btp.cs 342 | *.btm.cs 343 | *.odx.cs 344 | *.xsd.cs 345 | 346 | # OpenCover UI analysis results 347 | OpenCover/ 348 | 349 | # Azure Stream Analytics local run output 350 | ASALocalRun/ 351 | 352 | # MSBuild Binary and Structured Log 353 | *.binlog 354 | 355 | # NVidia Nsight GPU debugger configuration file 356 | *.nvuser 357 | 358 | # MFractors (Xamarin productivity tool) working folder 359 | .mfractor/ 360 | 361 | # Local History for Visual Studio 362 | .localhistory/ 363 | 364 | # Visual Studio History (VSHistory) files 365 | .vshistory/ 366 | 367 | # BeatPulse healthcheck temp database 368 | healthchecksdb 369 | 370 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 371 | MigrationBackup/ 372 | 373 | # Ionide (cross platform F# VS Code tools) working folder 374 | .ionide/ 375 | 376 | # Fody - auto-generated XML schema 377 | FodyWeavers.xsd 378 | 379 | # VS Code files for those working on multiple tools 380 | .vscode/* 381 | !.vscode/settings.json 382 | !.vscode/tasks.json 383 | !.vscode/launch.json 384 | !.vscode/extensions.json 385 | *.code-workspace 386 | 387 | # Local History for Visual Studio Code 388 | .history/ 389 | 390 | # Windows Installer files from build outputs 391 | *.cab 392 | *.msi 393 | *.msix 394 | *.msm 395 | *.msp 396 | 397 | # JetBrains Rider 398 | *.sln.iml --------------------------------------------------------------------------------