Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge branch dev into main (NuGet.Jobs and ServerCommon merge) #10135

Merged
merged 3,967 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3967 commits
Select commit Hold shift + click to select a range
423d1c4
Preferring build environment's dotnet.exe to our own. (#409)
agr Jun 2, 2023
80a6d4f
Updating from vulnerable package version (#1140)
agr Jun 19, 2023
e5c602b
Updating client libraries (#410)
agr Jul 13, 2023
49d5fdf
Updating NuGet dependencies (#1141)
agr Jul 15, 2023
de1c6c3
Merge remote-tracking branch 'origin/dev' into agr-main-conflicts
agr Jul 18, 2023
5e425c7
Merge pull request #1144 from NuGet/agr-main-conflicts
agr Jul 19, 2023
e382ab8
Attempt at keyvault library upgrade.
agr Dec 7, 2022
b49d547
Build fix
agr Dec 7, 2022
810a9a2
MSI support for Azure SQL connection test application
agr Jan 27, 2023
7637864
Trying ManagedIdentityCredential instead of DefaultAzureCredential
agr Jan 28, 2023
34afff6
Build fix
agr Aug 8, 2023
1d52ef4
Pass clientId in ManagedIdentity
erdembayar Aug 9, 2023
e26b005
Pass clientId for Keyvault used in managed Identity
erdembayar Aug 9, 2023
2a23db4
Try again with DefaultAzureCredential
erdembayar Aug 9, 2023
c44b01a
Package source mapping (#1142)
agr Aug 26, 2023
2b5b6ab
Pass clientId
erdembayar Sep 1, 2023
29c4c0b
Pass client id value
erdembayar Sep 2, 2023
c44da56
Try managed identity before defaultIdentity
erdembayar Sep 6, 2023
e3b7906
Address PR comments
erdembayar Sep 8, 2023
12937ef
Use migrated Keyvault dependencies
erdembayar Sep 6, 2023
eda5d06
Address api change
erdembayar Sep 6, 2023
dad8355
Address NU1605 error
erdembayar Sep 6, 2023
e4e6bfc
Upgrade versions
erdembayar Sep 7, 2023
c575745
Update versions after ManagedIdentityCredential instead of DefaultAzu…
erdembayar Sep 8, 2023
544fb83
Pass clientID for ManagedIdentityClient
erdembayar Sep 8, 2023
67fdcde
Fix typo
erdembayar Sep 8, 2023
6229e38
Rename var
erdembayar Sep 8, 2023
344f549
Function for adding new package source mappings to nuget.config files…
agr Sep 9, 2023
fb9071b
Merge branch 'main' into agr-kv-lib-upgrade3
erdembayar Sep 9, 2023
1b2dcc7
Merge pull request #1146 from NuGet/dev-eryondon-keyvault2
erdembayar Sep 10, 2023
7faae4a
Remove clientId check from IsCertificateConfigurationProvided
erdembayar Sep 11, 2023
7a8fad8
Merge pull request #414 from NuGet/agr-kv-lib-upgrade3
erdembayar Sep 11, 2023
1351084
Use latest stable versions (#1148)
erdembayar Sep 11, 2023
6adc9c2
Improve placeholder config for Search Service (#1149)
joelverhagen Sep 18, 2023
b4bce36
Move from WindowsAzure.ServiceBus to Azure.Messaging.ServiceBus (#412)
joelverhagen Sep 21, 2023
872034f
Move to latest ServerCommon for new Service Bus SDK (#1152)
joelverhagen Sep 22, 2023
5295c6e
Move from ADAL to MSAL (#415)
joelverhagen Sep 25, 2023
cb782cf
Move from ADAL to MSAL (#1153)
joelverhagen Sep 25, 2023
4fba7c8
Logging actual signature status. (#1155)
agr Oct 11, 2023
f92a258
Merge pull request #1154 from NuGet/dev
joelverhagen Oct 12, 2023
502578b
Update README.md (#1156)
dtivel Oct 17, 2023
a88a2ee
Bump Azure.Identity in /src/NuGet.Services.ServiceBus (#417)
dependabot[bot] Oct 19, 2023
5b740bf
Bump Azure.Identity from 1.8.0 to 1.10.2 in /src/NuGet.Services.KeyVa…
dependabot[bot] Oct 19, 2023
3af293a
update package version for vulnerability (#1157)
lyndaidaii Oct 25, 2023
c22de24
Update Test.Utility to latest working build and resolve CG errors (#1…
joelverhagen Oct 27, 2023
9a7d621
Merge pull request #1159 from NuGet/dev
joelverhagen Oct 27, 2023
d312db5
Allow for missing SQL DB config in CreateAzureCdnWarehouseReportsJob …
joelverhagen Nov 6, 2023
5b34c8e
Add Cache-Control headers for catalog leaves and finished pages (#1145)
joelverhagen Nov 8, 2023
b6059ca
Merge pull request #1161 from NuGet/main
joelverhagen Nov 8, 2023
bc459e4
Merge pull request #1162 from NuGet/dev
joelverhagen Nov 8, 2023
e7b3df1
Add FixCatalogCaching mode for ng.exe (#1163)
joelverhagen Nov 16, 2023
b5b596f
Merge pull request #1164 from NuGet/dev
joelverhagen Nov 20, 2023
85c4c4c
Perf logs for log collector (#1167)
agr Dec 22, 2023
5b545c8
[Search-by-TFM] Index-builder jobs for computed frameworks (#1166)
advay26 Dec 23, 2023
7c1facd
[Search-by-TFM] Search services changes for computed frameworks + All…
advay26 Jan 4, 2024
4143547
Merge pull request #1169 from NuGet/dev-feature-sbtfm
advay26 Jan 4, 2024
4b4f2f3
Merge pull request #1170 from NuGet/dev
advay26 Jan 4, 2024
9dc4f44
Force stopping Stats.CollectAzureChinaCDNLogs after reaching executio…
agr Jan 23, 2024
66ab6a6
Bump System.Data.SqlClient in /src/NuGet.Services.Sql (#418)
dependabot[bot] Jan 23, 2024
4c9b4bd
Update sql client version for security vulnerability. (#1172)
lyndaidaii Jan 24, 2024
c82a68e
Merge pull request #1173 from NuGet/dev
lyndaidaii Jan 26, 2024
f36edb3
fix format
Jan 27, 2024
ac00e90
Merge pull request #1174 from NuGet/updateF
lyndaidaii Jan 29, 2024
79c7b62
update azure identity to 1.10.4 (#419)
lyndaidaii Feb 9, 2024
3dc7f93
Update NuGet.Packaging (#422)
lyndaidaii Feb 20, 2024
76f7ed6
Update NuGet client packages (#1177)
lyndaidaii Feb 20, 2024
6e3393e
Update SearchResponseBuilderFacts.cs to fix Bug 1974435: [ NuGet.Jobs…
mariaghiondea Feb 21, 2024
74dcf1a
update NuGet package version (#1178)
lyndaidaii Feb 21, 2024
5a1eaad
Update SearchResponseBuilderFacts.cs in include using for serialization
mariaghiondea Feb 21, 2024
f36dd71
Update NuGet get gallery packages (#1180)
lyndaidaii Feb 21, 2024
b109b4e
Merge pull request #1179 from NuGet/mariaghiondea-1974435
mariaghiondea Feb 21, 2024
6c3ac3e
Revert "update NuGet package version (#1178)" (#1182)
lyndaidaii Feb 21, 2024
144dc9d
update package version (#1183)
lyndaidaii Feb 21, 2024
4b8bbe4
Merge pull request #1184 from NuGet/dev
lyndaidaii Feb 22, 2024
f220838
`GetRawBody` method (#423)
agr Feb 24, 2024
7bba470
Suppress devskim warnings
sbanni Feb 24, 2024
f2146a4
Merge pull request #1186 from NuGet/scoban-devskim-1
sbanni Feb 26, 2024
59eafee
SearchService docs updated with new framework filter options (#1175)
advay26 Mar 11, 2024
dcad893
Suppress credscan on test files (#424)
ryuyu Mar 16, 2024
feefd10
Changing the way NSSM starts (#1188)
agr Mar 21, 2024
3ea64a7
Add error code for ScanOperationStates table (#421)
erdembayar Mar 22, 2024
469c853
Add error code for ScanOperationStates table (#1187)
erdembayar Mar 25, 2024
2bebb9c
Merge pull request #1189 from NuGet/dev
agr Mar 26, 2024
d471d59
Merge pull request #1191 from NuGet/main
agr Mar 26, 2024
e0a9e63
Use stable version (#1193)
erdembayar Mar 27, 2024
33454e4
Pipeline to be a trigger source for other pipelines (#1194)
agr Mar 28, 2024
278ba73
Pipeline to be a trigger source for other pipelines (#425)
agr Mar 28, 2024
9dfb006
Extra check for empty ChainStatus (#1192)
agr Apr 1, 2024
d2cfb18
Enable creation of Azure Search index from Kusto NuGet Insights data …
joelverhagen Apr 3, 2024
6fe505f
CI pipeline for NuGet.Jobs (#1196)
agr Apr 5, 2024
fa4cce0
[ReleasePrep][2024.04.10]FI of main into dev (#1197)
erdembayar Apr 12, 2024
3b0c7bc
Merge pull request #1198 from NuGet/dev
erdembayar Apr 12, 2024
fc85df5
Merge pull request #1199 from NuGet/main
erdembayar Apr 12, 2024
e805879
ServerCommon CI pipeline (#426)
agr Apr 17, 2024
d16ffd9
Not publishing unsigned artifacts (#1200)
agr Apr 17, 2024
2760baa
Explicitly disabling PR validation trigger for release trigger pipeli…
agr Apr 22, 2024
a68358f
Disabling PR triggering (#427)
agr Apr 23, 2024
3369055
Merge pull request #1202 from NuGet/main
agr Apr 24, 2024
cf756fe
update to official version for serverCommon (#1203)
lyndaidaii May 29, 2024
0dc29e5
AzCopy download fix. (#1204)
agr Jun 1, 2024
f535e41
Upgraded sharpziplib version
Jun 7, 2024
c371b27
Tests failing so trying a different version
Jun 7, 2024
8d8ea8f
Tests still failing, now testing whether change breaks it, or they we…
Jun 10, 2024
b358b66
dev is not the problem, updating the version
Jun 10, 2024
89e1be3
Changed the test that was failing, trying again
Jun 12, 2024
3705b35
Testing
Jun 14, 2024
0c5917e
Testing base case
Jun 18, 2024
fd786cc
Still testing base case
Jun 18, 2024
0e1f49c
Testing for version 1.3.0
Jun 18, 2024
7a16342
Testing version 1.3.2
Jun 18, 2024
6b81afb
Testing version 1.3.3
Jun 18, 2024
68244e7
Testing version 1.2.0
Jun 18, 2024
3ebb0f7
Testing version 1.1.0
Jun 18, 2024
2577bb9
Testing version 1.2.0 again
Jun 20, 2024
ff02d97
Build taking too long, trying something to speed it up
Jun 20, 2024
9d9e66f
Testing version 1.2.0, addressing change 302
Jun 21, 2024
798cdd8
Trying version 1.2.0 again, still addressing the same change, this ti…
Jun 21, 2024
7d49d3c
More tests are failing than before, undoing the change, still version…
Jun 24, 2024
da1a634
NuGetGallery.Core update with new storage SDK (#1207)
agr Jun 28, 2024
b24449e
Migrate to new sdk
erdembayar Jun 27, 2024
64306ed
1
erdembayar Jul 1, 2024
c4c0328
Trying version 1.3.3, problmeatic test skipped
Jul 3, 2024
4fb7c3a
Removed test code
Jul 3, 2024
4e8c8dc
Bringing back test code, because a new test is failing
Jul 3, 2024
76df7a3
Removed half of the test code
Jul 3, 2024
e33c7c0
Commented out the rest of the test code
Jul 3, 2024
ef84af3
removed comments
Jul 3, 2024
feb0a92
Changed the link
Jul 3, 2024
4265cde
1
erdembayar Jul 3, 2024
d5bd1be
Trigger pipeline update. (#1209)
agr Jul 5, 2024
a899cf3
Explicit pipeline trigger (#431)
agr Jul 6, 2024
9ed9b0e
3
erdembayar Jul 6, 2024
f0657e7
3
erdembayar Jul 6, 2024
8603299
Upgrade Gallery version
erdembayar Jul 7, 2024
b317254
Migration Catalog2Registion jobs
erdembayar Jul 7, 2024
1a26d11
Update Server.Common for Ng.csproj
erdembayar Jul 7, 2024
ffa9686
Merge pull request #1206 from NuGet/upgrade-sharpziplib-version-2
Lanaparezanin Jul 8, 2024
d82908a
AzureStorage migration to v12 SDK (#1208)
dannyjdev Jul 9, 2024
d9608a9
Clean up
erdembayar Jul 7, 2024
93937cd
Rename IBlobContainerClientWrapper
erdembayar Jul 9, 2024
2be1141
Merge branch 'dev' into dev-eryondon-azuresearch-sdk-migrate
erdembayar Jul 9, 2024
76e0532
Fix merging problems
erdembayar Jul 9, 2024
cb959c0
Remove unnecessary variable properties
erdembayar Jul 10, 2024
90a5939
Testing NugetGalleryCore fix
agr Jul 10, 2024
9ac2e87
Use BlockBlobClient instead of BlobClient
erdembayar Jul 10, 2024
1d96db0
Removing unused function.
agr Jul 10, 2024
5c5f0a6
Explicit reference to WindowsAzure.Storage since NuGetGallery.Core no…
agr Jul 10, 2024
2bf589c
Replace BlobContainerClient with IBlobContainerClientWrapper
erdembayar Jul 10, 2024
57855ed
Clean up
erdembayar Jul 10, 2024
91d9297
Rename back method since it's used for file storage too
erdembayar Jul 10, 2024
706185d
Fix var name
erdembayar Jul 10, 2024
78a9039
Minor dependency injection fix
erdembayar Jul 10, 2024
f443b32
Remove unnecessary var
erdembayar Jul 10, 2024
0b1d5e9
Clean up
erdembayar Jul 10, 2024
58201b4
Package update
agr Jul 10, 2024
9e6ee12
Organized usings.
agr Jul 10, 2024
8bde1f5
Improve code readability
erdembayar Jul 10, 2024
35299b7
Use correct access condition for upload
erdembayar Jul 10, 2024
168ae17
Use latest version of NuGetGallery
erdembayar Jul 10, 2024
28867dc
Add back comment
erdembayar Jul 10, 2024
d4ccbc0
Merge remote-tracking branch 'origin/agr-msi-test' into dev-eryondon-…
erdembayar Jul 11, 2024
2eee9db
Fix build after merge
erdembayar Jul 11, 2024
6942481
Fix tests
erdembayar Jul 11, 2024
e23fd3b
Fix tests
erdembayar Jul 11, 2024
dded3cf
Fix more tests
erdembayar Jul 11, 2024
15993a5
Updating to NuGetGallery.Core version with bugfixes (#1212)
agr Jul 11, 2024
925f05b
Fix language version problem, Servercommon depends on C# 5.0
erdembayar Jul 11, 2024
c740c1e
Remove SAS in query part is causing problem
erdembayar Jul 11, 2024
5aff9e9
Remove seemingly unused SetPropertiesAsync
erdembayar Jul 11, 2024
309812a
Package update (#1211)
agr Jul 11, 2024
e017ddf
Merge pull request #1213 from NuGet/main
agr Jul 11, 2024
f8ccfa0
Try lower C# version
erdembayar Jul 11, 2024
fad0cc3
Add github tracking link for Azure SAS problem
erdembayar Jul 12, 2024
4111c73
Fix more tests
erdembayar Jul 12, 2024
62c6e5d
Fix more tests
erdembayar Jul 12, 2024
f6360fc
Fix remaining tests
erdembayar Jul 12, 2024
eec2ab5
Fix remaining tests
erdembayar Jul 12, 2024
4f46235
Address PR comment, remove extension
erdembayar Jul 16, 2024
98177c0
Address PR comment about namespace
erdembayar Jul 16, 2024
66990a5
Address PR comment, rename var
erdembayar Jul 16, 2024
34fa336
nit
erdembayar Jul 16, 2024
01cb7a1
Fix missing using
erdembayar Jul 16, 2024
fd31d3f
Merge pull request #1210 from NuGet/dev-eryondon-azuresearch-sdk-migrate
erdembayar Jul 17, 2024
f6781f4
update azure identity version (#433)
lyndaidaii Jul 17, 2024
b07c5ee
[Storage]Update ServerCommon library to v12 storage SDKs (#430)
ryuyu Jul 18, 2024
3e7b03c
Switch to version 8.0.303 of the .NET sdk (#1214)
dlemstra Jul 19, 2024
f2745b3
Update packages with security vulnerabilities (#1215)
dlemstra Jul 20, 2024
4494644
Rev gallery version
drewgillies Jul 21, 2024
67a9f3b
Merge pull request #1218 from NuGet/dg-revgalleryversion
drewgillies Jul 22, 2024
c6f068c
Update to latest Xunit and Moq, fix test bugs, stop suppressing analy…
joelverhagen Jul 22, 2024
1952080
Clean up build infra to make a repository merge easier (#434)
joelverhagen Jul 23, 2024
72f99d3
Clean up build infra to make a repository merge easier (#1217)
joelverhagen Jul 23, 2024
9c675cb
Add how documentation for how to create local db (#435)
erdembayar Jul 24, 2024
00a01b7
Fix typo in common.ps1 (#436)
joelverhagen Jul 24, 2024
59283f5
Move to latest build tools (#1220)
joelverhagen Jul 24, 2024
11121eb
Fix broken references to .nuget\packages.config after move (#1221)
joelverhagen Jul 24, 2024
0a1251c
Implement #10082
clairernovotny Jul 26, 2024
0415c7d
Remove unnecessary usings (#438)
joelverhagen Jul 26, 2024
f7d8421
Remove unnecessary usings (#1224)
joelverhagen Jul 26, 2024
caca1e9
Discover project list for tests and assembly info (#437)
joelverhagen Jul 26, 2024
15e626c
Improve null checks and update tests for file services
clairernovotny Jul 29, 2024
030504e
Add editorconfig to ensure code isn't formatted incorrectly on save
clairernovotny Jul 29, 2024
7d03008
Global MSI client id for KV (#440)
dannyjdev Jul 29, 2024
e5c703f
Fixes from feedback
clairernovotny Jul 29, 2024
8ea7f23
Align package versions, remove unused method, quality "common" build …
joelverhagen Jul 29, 2024
5e245ab
Move test projects to SDK-based .csproj (#1225)
joelverhagen Jul 29, 2024
4d5379b
Move job projects (non-web) to SDK-based .csproj (#1226)
joelverhagen Jul 30, 2024
31a6257
Merge branch dev from NuGet.Jobs into NuGetGallery
joelverhagen Jul 30, 2024
9213e64
Merge jobs README.md into the main one
joelverhagen Jul 30, 2024
6bb2527
Add shared projects to NuGetGallery.sln and NuGet.Jobs
joelverhagen Jul 30, 2024
d55ed52
Merge pull request #10091 (Merge NuGet.Jobs int NuGetGallery)
joelverhagen Jul 30, 2024
99b2b49
Merge NuGet.Jobs-CI into NuGetGallery-CI as a stage (#10093)
joelverhagen Jul 30, 2024
b3ccb52
Use explicit types per feedback
clairernovotny Jul 31, 2024
7a6e130
Make errors into suggestions
clairernovotny Aug 1, 2024
4036cf1
Merge pull request #10083 from NuGet/cnov-package-version-param
clairernovotny Aug 1, 2024
ec3c8d2
[Dark mode] Fix table colors in dark mode (#10096)
martinrrm Aug 1, 2024
6b751db
Fix Partition Key and Row Key assignments in Status entities (#442)
joelverhagen Aug 1, 2024
ef7726f
Switch to server-side blob copy (#441)
joelverhagen Aug 1, 2024
20dbfbd
Fix connection string for orchestrator lease service (#10100)
joelverhagen Aug 1, 2024
3c6480a
Update System.Formats.Asn1 package (#10098)
erdembayar Aug 1, 2024
2ccce56
Fetch and copy HTTP headers if they are being updated (#443)
joelverhagen Aug 1, 2024
1d62552
Fetch and copy HTTP headers if they are being updated (#10101)
joelverhagen Aug 1, 2024
d25d34d
Fix flaky test CanRetryOnConflict (#10104)
joelverhagen Aug 2, 2024
a782405
Move to latest ServerCommon version (#10106)
joelverhagen Aug 2, 2024
7816f6e
Force AzureStorageFactory to specify blob public access (#444)
joelverhagen Aug 2, 2024
d8c3780
Update to latest ServerCommon (v2.123.0) (#10108)
joelverhagen Aug 2, 2024
71c6f67
Merge ServerCommon main into NuGetGallery dev
joelverhagen Aug 2, 2024
a1bdaf5
Merge ServerCommon README into the main one
joelverhagen Aug 2, 2024
7feec13
Merge ServerCommon CI into main one with -SkipCommon
joelverhagen Aug 3, 2024
e1e4b64
Switch from PackageReference to ProjectReference for ServerCommon pro…
joelverhagen Aug 3, 2024
04a00d5
Switch from MSBuild friend assembly to AssemblyInfo friend
joelverhagen Aug 3, 2024
e4f95ca
Enhance init.ps1 to no-op better and wrap logs in a group
joelverhagen Aug 3, 2024
082cd37
Change gallery packages parameter for consistency
joelverhagen Aug 3, 2024
9684321
Merge pull request #10109 (Merge ServerCommon into NuGetGallery)
joelverhagen Aug 3, 2024
30179f2
Change font weight of package list page links (#10105)
Goodyear2017 Aug 6, 2024
ddb37d3
Remove focus on package page tables (#10103)
Goodyear2017 Aug 6, 2024
b16859d
Add a Python module for log version parsing (#10107)
clairernovotny Aug 6, 2024
5a08b79
Fix Db2Catalog and Catalog2Dnx with new SDK changes (#10110)
joelverhagen Aug 7, 2024
adf401e
Fix endpoint suffix (Azure China) not being used (#10112)
joelverhagen Aug 7, 2024
920fa54
Update to latest 7za.exe (v9.20 to v24.07) (#10119)
joelverhagen Aug 8, 2024
b1c2839
UserAgentParser parsing (#10114)
clairernovotny Aug 8, 2024
c0248ba
Add auth to V3 monitoring search cursor URLs (#10115)
joelverhagen Aug 9, 2024
19ee5b1
Packaging for LogIntegration (#10122)
clairernovotny Aug 9, 2024
32b79e8
Set PackageVersion in MSBuild to allow different versions at pack tim…
joelverhagen Aug 13, 2024
843a4eb
Fix Monitoring2Monitoring blob name generation, handle size mismatch …
joelverhagen Aug 13, 2024
978a209
First ResolveUri in NuGet.Services.Storage (#10129)
joelverhagen Aug 15, 2024
923741d
Move to 5.0.0-*, put all dependency packages in NuGet.Server.Common.s…
joelverhagen Aug 15, 2024
34f60ee
Fix NuGetBuildExtensions import, unify props/targets (#10132)
joelverhagen Aug 15, 2024
666b91d
Add client name translation (#10134)
clairernovotny Aug 15, 2024
ef1455c
Disable public blob access on search containers (#10136)
joelverhagen Aug 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
212 changes: 212 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
; EditorConfig to support per-solution formatting.
; Use the EditorConfig VS add-in to make this work.
; http://editorconfig.org/

; This is the default for the codeline.
root = true

[*]
; Don't use tabs for indentation.
indent_style = space
; (Please don't specify an indent_size here; that has too many unintended consequences.)
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

; Code files
[*.{cs}]
indent_size = 4

; All XML-based file formats
[*.{config,csproj,nuspec,props,resx,ruleset,targets,vsct,vsixmanifest,xaml,xml,vsmanproj,swixproj}]
indent_size = 2

; JSON files
[*.json]
indent_size = 2

; PowerShell scripts
[*.{ps1}]
indent_size = 4

[*.{sh}]
indent_size = 4

; Dotnet code style settings
[*.{cs,vb}]
; Sort using and Import directives with System.* appearing first
dotnet_sort_system_directives_first = true
dotnet_separate_import_directive_groups = false

; IDE0003 Avoid "this." and "Me." if not necessary
dotnet_style_qualification_for_field = false:silent
dotnet_style_qualification_for_property = false:silent
dotnet_style_qualification_for_method = false:silent
dotnet_style_qualification_for_event = false:silent

; IDE0012 Use language keywords instead of framework type names for type references
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
; IDE0013
dotnet_style_predefined_type_for_member_access = true:silent

; Suggest more modern language features when available
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion

; Licence header
file_header_template = Copyright (c) .NET Foundation. All rights reserved.\nLicensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

; CSharp code style settings
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
dotnet_style_prefer_conditional_expression_over_return = true:silent
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_compound_assignment = true:suggestion
dotnet_style_prefer_simplified_interpolation = true:suggestion
dotnet_style_namespace_match_folder = true:suggestion
dotnet_style_prefer_collection_expression = when_types_loosely_match:suggestion
dotnet_style_readonly_field = true:suggestion
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
dotnet_style_allow_statement_immediately_after_block_experimental = true:silent
dotnet_style_allow_multiple_blank_lines_experimental = true:silent
dotnet_code_quality_unused_parameters = all:suggestion
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
dotnet_style_prefer_auto_properties = true:silent
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_operator_placement_when_wrapping = beginning_of_line
end_of_line = crlf
indent_size = 4
tab_width = 4
[*.cs]
; IDE0007 'var' preferences
csharp_style_var_for_built_in_types = true:silent
csharp_style_var_when_type_is_apparent = true:silent
csharp_style_var_elsewhere = false:silent

; Helpful errors
dotnet_diagnostic.CA2017.severity = suggestion
dotnet_diagnostic.CS0105.severity = suggestion
dotnet_diagnostic.IDE0005.severity = suggestion
dotnet_diagnostic.CA1304.severity = suggestion
dotnet_diagnostic.CA1305.severity = suggestion
dotnet_diagnostic.CA1307.severity = suggestion
dotnet_diagnostic.CA1309.severity = suggestion
dotnet_diagnostic.CA1310.severity = suggestion
dotnet_diagnostic.CA1311.severity = suggestion

; Prefer method-like constructs to have a block body
csharp_style_expression_bodied_methods = false:silent
csharp_style_expression_bodied_constructors = false:silent
csharp_style_expression_bodied_operators = false:silent

; Prefer property-like constructs to have an expression-body
csharp_style_expression_bodied_properties = true:silent
csharp_style_expression_bodied_indexers = true:silent
csharp_style_expression_bodied_accessors = true:silent

; Suggest more modern language features when available
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
csharp_style_throw_expression = true:suggestion
csharp_style_conditional_delegate_call = true:suggestion

; Newline settings
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true

; Naming styles
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
dotnet_naming_style.camel_case_style.capitalization = camel_case

; Naming rule: async methods end in Async
dotnet_naming_style.async_method_style.capitalization = pascal_case
dotnet_naming_style.async_method_style.required_suffix = Async
dotnet_naming_symbols.async_method_symbols.applicable_kinds = method
dotnet_naming_symbols.async_method_symbols.required_modifiers = async
dotnet_naming_rule.async_methods_rule.severity = suggestion
dotnet_naming_rule.async_methods_rule.symbols = async_method_symbols
dotnet_naming_rule.async_methods_rule.style = async_method_style

; Naming rule: Interfaces must be pascal-cased prefixed with I
dotnet_naming_style.interface_style.capitalization = pascal_case
dotnet_naming_style.interface_style.required_prefix = I
dotnet_naming_symbols.interface_symbols.applicable_kinds = interface
dotnet_naming_symbols.interface_symbols.applicable_accessibilities = *
dotnet_naming_rule.interfaces_rule.severity = warning
dotnet_naming_rule.interfaces_rule.symbols = interface_symbols
dotnet_naming_rule.interfaces_rule.style = interface_style

; Naming rule: All methods and properties must be pascal-cased
dotnet_naming_symbols.method_and_property_symbols.applicable_kinds = method,property,class,struct,enum:property,namespace
dotnet_naming_symbols.method_and_property_symbols.applicable_accessibilities = *
dotnet_naming_rule.methods_and_properties_rule.severity = warning
dotnet_naming_rule.methods_and_properties_rule.symbols = method_and_property_symbols
dotnet_naming_rule.methods_and_properties_rule.style = pascal_case_style

; Naming rule: Static fields must be pascal-cased
dotnet_naming_symbols.static_member_symbols.applicable_kinds = field
dotnet_naming_symbols.static_member_symbols.applicable_accessibilities = *
dotnet_naming_symbols.static_member_symbols.required_modifiers = static
dotnet_naming_symbols.const_member_symbols.applicable_kinds = field
dotnet_naming_symbols.const_member_symbols.applicable_accessibilities = *
dotnet_naming_symbols.const_member_symbols.required_modifiers = const
dotnet_naming_rule.static_fields_rule.severity = warning
dotnet_naming_rule.static_fields_rule.symbols = static_member_symbols
dotnet_naming_rule.static_fields_rule.style = pascal_case_style

; Naming rule: Private members must be camel-cased and prefixed with underscore
dotnet_naming_style.private_member_style.capitalization = camel_case
dotnet_naming_style.private_member_style.required_prefix = _
dotnet_naming_symbols.private_field_symbols.applicable_kinds = field,event
dotnet_naming_symbols.private_field_symbols.applicable_accessibilities = private,protected,internal
dotnet_naming_rule.private_field_rule.severity = warning
dotnet_naming_rule.private_field_rule.symbols = private_field_symbols
dotnet_naming_rule.private_field_rule.style = private_member_style
csharp_style_prefer_null_check_over_type_check = true:suggestion
csharp_prefer_simple_default_expression = true:suggestion
csharp_style_prefer_local_over_anonymous_function = true:suggestion
csharp_style_prefer_index_operator = true:suggestion
csharp_style_prefer_range_operator = true:suggestion
csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion
csharp_style_prefer_tuple_swap = true:suggestion
csharp_style_deconstructed_variable_declaration = true:suggestion
csharp_style_prefer_utf8_string_literals = true:suggestion
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
csharp_prefer_static_anonymous_function = true:suggestion
csharp_prefer_static_local_function = true:suggestion
csharp_style_prefer_readonly_struct = true:suggestion
csharp_style_allow_embedded_statements_on_same_line_experimental = true:silent
csharp_style_prefer_readonly_struct_member = true:suggestion
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true:silent
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true:silent
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true:silent
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true:silent
csharp_style_prefer_pattern_matching = true:silent
csharp_style_prefer_switch_expression = true:suggestion
csharp_style_prefer_extended_property_pattern = true:suggestion
csharp_style_prefer_not_pattern = true:suggestion
csharp_style_expression_bodied_local_functions = false:silent
csharp_style_expression_bodied_lambdas = true:silent
csharp_prefer_system_threading_lock = true:suggestion
csharp_style_prefer_primary_constructors = true:suggestion
csharp_style_prefer_top_level_statements = true:silent
csharp_style_prefer_method_group_conversion = true:silent
csharp_style_namespace_declarations = block_scoped:silent
csharp_using_directive_placement = outside_namespace:silent
csharp_prefer_braces = true:silent
csharp_prefer_simple_using_statement = true:suggestion
csharp_space_around_binary_operators = before_and_after
csharp_indent_labels = no_change
17 changes: 11 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ FodyWeavers.xsd
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/
Expand All @@ -397,6 +397,10 @@ FodyWeavers.xsd
# JetBrains Rider
*.sln.iml

# macOS
.DS_Store


#######################
# Repository specific #
#######################
Expand All @@ -405,17 +409,16 @@ nuget.exe
Results.*.xml
AssemblyInfo.*.cs

# common build tools
build/
tools/

# Functional test results
tests/functionaltests.*.xml
*.trx
*.g.txt

# launch settings for running jobs locally
**/Properties/launchSettings.json

# The applicationhost.config is ignored, but already comitted on purpose
# Reason: The localtest.me setting needs to be configured in the <sites>-section.
# Reason: The localtest.me setting needs to be configured in the <sites>-section.
# See ReadMe.md for more information
.vs/config/applicationhost.config

Expand All @@ -431,3 +434,5 @@ src/NuGetGallery/App_Data/Files/*
!src/NuGetGallery/App_Data/Files/Content/
!src/NuGetGallery/Views/Packages/
!src/NuGetGallery/Branding/Views/Packages/


Loading