Skip to content

Commit 23b2b39

Browse files
author
Mauro Bertoli
authored
Add new WinForms demo project with fody, dynamic data and unit tests (#518)
* upgrade to .net core 6 and latest c# functionality, aligned project namespace to folder name, make VS Designer available for UserControl * new winforms demo with unit tests
1 parent 3f12188 commit 23b2b39

38 files changed

+2782
-3
lines changed

ReactiveUI.Samples.Windows.sln

Lines changed: 127 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.29025.244
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.1.32210.238
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Xamarin", "Xamarin", "{2EF3E0D4-9E45-4C3B-9DAD-6A13F5F4A3EE}"
77
EndProject
@@ -83,6 +83,14 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReactiveUI.Samples.Basics",
8383
EndProject
8484
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReactiveUI.Samples.Commands", "wpf\ReactiveUI.Samples.Commands\ReactiveUI.Samples.Commands.csproj", "{9DC120C4-439E-4833-971D-BD8FB8938AA2}"
8585
EndProject
86+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "demo", "demo", "{73BBC72C-DE2E-442D-82D2-875F7AE0711B}"
87+
EndProject
88+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "demo2", "demo2", "{EA31D6D2-9DAC-4EEE-A340-3197C96B0DDD}"
89+
EndProject
90+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WinForms.Reactive.Client", "winforms\demo2\WinForms.Reactive.Client\WinForms.Reactive.Client.csproj", "{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}"
91+
EndProject
92+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WinForms.Reactive.Client.Tests", "winforms\demo2\WinForms.Reactive.Client.Tests\WinForms.Reactive.Client.Tests.csproj", "{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}"
93+
EndProject
8694
Global
8795
GlobalSection(SharedMSBuildProjectFiles) = preSolution
8896
Uno\ReactiveUI.UwpRouting\ReactiveUI.UwpRouting.Shared\ReactiveUI.UwpRouting.Shared.projitems*{2bbc1e31-7517-42e1-ab3f-5edf84d0da30}*SharedItemsImports = 4
@@ -1385,6 +1393,118 @@ Global
13851393
{9DC120C4-439E-4833-971D-BD8FB8938AA2}.Release|x64.Build.0 = Release|Any CPU
13861394
{9DC120C4-439E-4833-971D-BD8FB8938AA2}.Release|x86.ActiveCfg = Release|Any CPU
13871395
{9DC120C4-439E-4833-971D-BD8FB8938AA2}.Release|x86.Build.0 = Release|Any CPU
1396+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU
1397+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU
1398+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Ad-Hoc|ARM.ActiveCfg = Debug|Any CPU
1399+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Ad-Hoc|ARM.Build.0 = Debug|Any CPU
1400+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Ad-Hoc|ARM64.ActiveCfg = Debug|Any CPU
1401+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Ad-Hoc|ARM64.Build.0 = Debug|Any CPU
1402+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
1403+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
1404+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
1405+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU
1406+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Ad-Hoc|x64.ActiveCfg = Debug|Any CPU
1407+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Ad-Hoc|x64.Build.0 = Debug|Any CPU
1408+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Ad-Hoc|x86.ActiveCfg = Debug|Any CPU
1409+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Ad-Hoc|x86.Build.0 = Debug|Any CPU
1410+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU
1411+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.AppStore|Any CPU.Build.0 = Debug|Any CPU
1412+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.AppStore|ARM.ActiveCfg = Debug|Any CPU
1413+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.AppStore|ARM.Build.0 = Debug|Any CPU
1414+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.AppStore|ARM64.ActiveCfg = Debug|Any CPU
1415+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.AppStore|ARM64.Build.0 = Debug|Any CPU
1416+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
1417+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.AppStore|iPhone.Build.0 = Debug|Any CPU
1418+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
1419+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
1420+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.AppStore|x64.ActiveCfg = Debug|Any CPU
1421+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.AppStore|x64.Build.0 = Debug|Any CPU
1422+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.AppStore|x86.ActiveCfg = Debug|Any CPU
1423+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.AppStore|x86.Build.0 = Debug|Any CPU
1424+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
1425+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Debug|Any CPU.Build.0 = Debug|Any CPU
1426+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Debug|ARM.ActiveCfg = Debug|Any CPU
1427+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Debug|ARM.Build.0 = Debug|Any CPU
1428+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Debug|ARM64.ActiveCfg = Debug|Any CPU
1429+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Debug|ARM64.Build.0 = Debug|Any CPU
1430+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Debug|iPhone.ActiveCfg = Debug|Any CPU
1431+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Debug|iPhone.Build.0 = Debug|Any CPU
1432+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
1433+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
1434+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Debug|x64.ActiveCfg = Debug|Any CPU
1435+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Debug|x64.Build.0 = Debug|Any CPU
1436+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Debug|x86.ActiveCfg = Debug|Any CPU
1437+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Debug|x86.Build.0 = Debug|Any CPU
1438+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Release|Any CPU.ActiveCfg = Release|Any CPU
1439+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Release|Any CPU.Build.0 = Release|Any CPU
1440+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Release|ARM.ActiveCfg = Release|Any CPU
1441+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Release|ARM.Build.0 = Release|Any CPU
1442+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Release|ARM64.ActiveCfg = Release|Any CPU
1443+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Release|ARM64.Build.0 = Release|Any CPU
1444+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Release|iPhone.ActiveCfg = Release|Any CPU
1445+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Release|iPhone.Build.0 = Release|Any CPU
1446+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
1447+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
1448+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Release|x64.ActiveCfg = Release|Any CPU
1449+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Release|x64.Build.0 = Release|Any CPU
1450+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Release|x86.ActiveCfg = Release|Any CPU
1451+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D}.Release|x86.Build.0 = Release|Any CPU
1452+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU
1453+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU
1454+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Ad-Hoc|ARM.ActiveCfg = Debug|Any CPU
1455+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Ad-Hoc|ARM.Build.0 = Debug|Any CPU
1456+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Ad-Hoc|ARM64.ActiveCfg = Debug|Any CPU
1457+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Ad-Hoc|ARM64.Build.0 = Debug|Any CPU
1458+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
1459+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
1460+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
1461+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU
1462+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Ad-Hoc|x64.ActiveCfg = Debug|Any CPU
1463+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Ad-Hoc|x64.Build.0 = Debug|Any CPU
1464+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Ad-Hoc|x86.ActiveCfg = Debug|Any CPU
1465+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Ad-Hoc|x86.Build.0 = Debug|Any CPU
1466+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU
1467+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.AppStore|Any CPU.Build.0 = Debug|Any CPU
1468+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.AppStore|ARM.ActiveCfg = Debug|Any CPU
1469+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.AppStore|ARM.Build.0 = Debug|Any CPU
1470+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.AppStore|ARM64.ActiveCfg = Debug|Any CPU
1471+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.AppStore|ARM64.Build.0 = Debug|Any CPU
1472+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
1473+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.AppStore|iPhone.Build.0 = Debug|Any CPU
1474+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
1475+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
1476+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.AppStore|x64.ActiveCfg = Debug|Any CPU
1477+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.AppStore|x64.Build.0 = Debug|Any CPU
1478+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.AppStore|x86.ActiveCfg = Debug|Any CPU
1479+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.AppStore|x86.Build.0 = Debug|Any CPU
1480+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
1481+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Debug|Any CPU.Build.0 = Debug|Any CPU
1482+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Debug|ARM.ActiveCfg = Debug|Any CPU
1483+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Debug|ARM.Build.0 = Debug|Any CPU
1484+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Debug|ARM64.ActiveCfg = Debug|Any CPU
1485+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Debug|ARM64.Build.0 = Debug|Any CPU
1486+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Debug|iPhone.ActiveCfg = Debug|Any CPU
1487+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Debug|iPhone.Build.0 = Debug|Any CPU
1488+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
1489+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
1490+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Debug|x64.ActiveCfg = Debug|Any CPU
1491+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Debug|x64.Build.0 = Debug|Any CPU
1492+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Debug|x86.ActiveCfg = Debug|Any CPU
1493+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Debug|x86.Build.0 = Debug|Any CPU
1494+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Release|Any CPU.ActiveCfg = Release|Any CPU
1495+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Release|Any CPU.Build.0 = Release|Any CPU
1496+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Release|ARM.ActiveCfg = Release|Any CPU
1497+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Release|ARM.Build.0 = Release|Any CPU
1498+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Release|ARM64.ActiveCfg = Release|Any CPU
1499+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Release|ARM64.Build.0 = Release|Any CPU
1500+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Release|iPhone.ActiveCfg = Release|Any CPU
1501+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Release|iPhone.Build.0 = Release|Any CPU
1502+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
1503+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
1504+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Release|x64.ActiveCfg = Release|Any CPU
1505+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Release|x64.Build.0 = Release|Any CPU
1506+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Release|x86.ActiveCfg = Release|Any CPU
1507+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0}.Release|x86.Build.0 = Release|Any CPU
13881508
EndGlobalSection
13891509
GlobalSection(SolutionProperties) = preSolution
13901510
HideSolutionNode = FALSE
@@ -1398,7 +1518,7 @@ Global
13981518
{CC0560B7-D03A-47F1-8723-C58531969372} = {6403E649-5861-45EA-BE5A-91EF15E68EE8}
13991519
{0378820F-CB5E-4A3A-B664-F192D9EBEA6A} = {6403E649-5861-45EA-BE5A-91EF15E68EE8}
14001520
{CD36C96F-6DED-42E8-80E6-A036AC075357} = {6403E649-5861-45EA-BE5A-91EF15E68EE8}
1401-
{6E814355-0A7D-4CAA-BA94-06A451E9EC68} = {B78B452F-A57F-4968-9FBD-365F744D131C}
1521+
{6E814355-0A7D-4CAA-BA94-06A451E9EC68} = {73BBC72C-DE2E-442D-82D2-875F7AE0711B}
14021522
{DD00DA24-DDE5-46FA-BDC1-27B246B62A86} = {5F9E4B2A-F6E5-4D13-837C-20A061FB7BAB}
14031523
{245902DC-8FF7-4001-8854-78A5A879F0C9} = {5F9E4B2A-F6E5-4D13-837C-20A061FB7BAB}
14041524
{2BBC1E31-7517-42E1-AB3F-5EDF84D0DA30} = {245902DC-8FF7-4001-8854-78A5A879F0C9}
@@ -1417,6 +1537,10 @@ Global
14171537
{4D615C79-CBEC-46B2-969B-78DBEC525366} = {D13EB866-0C42-4429-BD3F-EEAA56DBB33E}
14181538
{8BFEB353-EB18-41D3-97F9-FFA1374C09CC} = {3DDE730B-1413-4A14-86E2-93FAB0940290}
14191539
{9DC120C4-439E-4833-971D-BD8FB8938AA2} = {3DDE730B-1413-4A14-86E2-93FAB0940290}
1540+
{73BBC72C-DE2E-442D-82D2-875F7AE0711B} = {B78B452F-A57F-4968-9FBD-365F744D131C}
1541+
{EA31D6D2-9DAC-4EEE-A340-3197C96B0DDD} = {B78B452F-A57F-4968-9FBD-365F744D131C}
1542+
{C44079CB-7DB9-445F-A243-A4BA2DEDDF4D} = {EA31D6D2-9DAC-4EEE-A340-3197C96B0DDD}
1543+
{06D24A4C-A940-45F5-9FA4-3F6B11E423E0} = {EA31D6D2-9DAC-4EEE-A340-3197C96B0DDD}
14201544
EndGlobalSection
14211545
GlobalSection(ExtensibilityGlobals) = postSolution
14221546
SolutionGuid = {9CF08746-3F6B-4A63-A043-F66E12D202B0}

winforms/demo2/.editorconfig

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
# Rules in this file were initially inferred by Visual Studio IntelliCode from the C:\GitHub\nordfishit-nordsoft\PoC\sw-architecture codebase based on best match to current usage at 30.01.2022
2+
# You can modify the rules from these initially generated values to suit your own policies
3+
# You can learn more about editorconfig here: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
4+
[*.cs]
5+
6+
7+
#Core editorconfig formatting - indentation
8+
9+
#use soft tabs (spaces) for indentation
10+
indent_style = space
11+
12+
#Formatting - new line options
13+
14+
#place catch statements on a new line
15+
csharp_new_line_before_catch = true
16+
#require finally statements to be on a new line after the closing brace
17+
csharp_new_line_before_finally = true
18+
#require members of object initializers to be on the same line
19+
csharp_new_line_before_members_in_object_initializers = false
20+
#require braces to be on a new line for control_blocks, properties, lambdas, types, methods, and accessors (also known as "Allman" style)
21+
csharp_new_line_before_open_brace = control_blocks, properties, lambdas, types, methods, accessors
22+
23+
#Formatting - organize using options
24+
25+
#sort System.* using directives alphabetically, and place them before other usings
26+
dotnet_sort_system_directives_first = true
27+
28+
#Formatting - spacing options
29+
30+
#require NO space between a cast and the value
31+
csharp_space_after_cast = false
32+
#require a space before the colon for bases or interfaces in a type declaration
33+
csharp_space_after_colon_in_inheritance_clause = true
34+
#require a space after a keyword in a control flow statement such as a for loop
35+
csharp_space_after_keywords_in_control_flow_statements = true
36+
#require a space before the colon for bases or interfaces in a type declaration
37+
csharp_space_before_colon_in_inheritance_clause = true
38+
#remove space within empty argument list parentheses
39+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
40+
#remove space between method call name and opening parenthesis
41+
csharp_space_between_method_call_name_and_opening_parenthesis = false
42+
#do not place space characters after the opening parenthesis and before the closing parenthesis of a method call
43+
csharp_space_between_method_call_parameter_list_parentheses = false
44+
#remove space within empty parameter list parentheses for a method declaration
45+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
46+
#place a space character after the opening parenthesis and before the closing parenthesis of a method declaration parameter list.
47+
csharp_space_between_method_declaration_parameter_list_parentheses = false
48+
49+
#Formatting - wrapping options
50+
51+
#leave code block on single line
52+
csharp_preserve_single_line_blocks = true
53+
54+
#Style - Code block preferences
55+
56+
#prefer curly braces even for one line of code
57+
csharp_prefer_braces = true:suggestion
58+
59+
#Style - expression bodied member options
60+
61+
#prefer block bodies for accessors
62+
csharp_style_expression_bodied_accessors = false:suggestion
63+
#prefer expression-bodied members for constructors
64+
csharp_style_expression_bodied_constructors = true:suggestion
65+
#prefer expression-bodied members for methods
66+
csharp_style_expression_bodied_methods = true:suggestion
67+
#prefer block bodies for properties
68+
csharp_style_expression_bodied_properties =when_on_single_line:suggestion
69+
70+
#Style - expression level options
71+
72+
#prefer out variables to be declared inline in the argument list of a method call when possible
73+
csharp_style_inlined_variable_declaration = true:suggestion
74+
#prefer the language keyword for member access expressions, instead of the type name, for types that have a keyword to represent them
75+
dotnet_style_predefined_type_for_member_access = true:suggestion
76+
77+
#Style - Expression-level preferences
78+
79+
#prefer default(T) over default
80+
csharp_prefer_simple_default_expression = false:suggestion
81+
#prefer objects to be initialized using object initializers when possible
82+
dotnet_style_object_initializer = true:suggestion
83+
#prefer inferred tuple element names
84+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
85+
86+
#Style - implicit and explicit types
87+
88+
#prefer var over explicit type in all cases, unless overridden by another code style rule
89+
csharp_style_var_elsewhere = true:suggestion
90+
#prefer var is used to declare variables with built-in system types such as int
91+
csharp_style_var_for_built_in_types = true:suggestion
92+
#prefer var when the type is already mentioned on the right-hand side of a declaration expression
93+
csharp_style_var_when_type_is_apparent = true:suggestion
94+
95+
#Style - language keyword and framework type options
96+
97+
#prefer the language keyword for local variables, method parameters, and class members, instead of the type name, for types that have a keyword to represent them
98+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
99+
100+
#Style - Miscellaneous preferences
101+
102+
#prefer local functions over anonymous functions
103+
csharp_style_pattern_local_over_anonymous_function = true:suggestion
104+
105+
#Style - modifier options
106+
107+
#prefer accessibility modifiers to be declared except for public interface members. This will currently not differ from always and will act as future proofing for if C# adds default interface methods.
108+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
109+
110+
#Style - Modifier preferences
111+
112+
#when this rule is set to a list of modifiers, prefer the specified ordering.
113+
csharp_preferred_modifier_order = private,public,protected,internal,static,readonly,async,virtual,override,sealed,extern,abstract:suggestion
114+
115+
#Style - qualification options
116+
117+
#prefer fields not to be prefaced with this. or Me. in Visual Basic
118+
dotnet_style_qualification_for_field = false:suggestion
119+
#prefer methods not to be prefaced with this. or Me. in Visual Basic
120+
dotnet_style_qualification_for_method = false:suggestion
121+
#prefer properties not to be prefaced with this. or Me. in Visual Basic
122+
dotnet_style_qualification_for_property = false:suggestion
123+
insert_final_newline=true
124+
csharp_style_namespace_declarations=file_scoped:silent
125+
126+
[*.{cs,vb}]
127+
indent_style=tab

0 commit comments

Comments
 (0)