Skip to content

Commit 7e5af03

Browse files
committed
🎨 Avalonia ProjRef 2
1 parent 7afcc50 commit 7e5af03

File tree

5,144 files changed

+592302
-71
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,144 files changed

+592302
-71
lines changed

Avalonia.WebView2.slnx

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,43 @@
11
<Solution>
22
<Folder Name="/Avalonia.Ref/">
3-
<Project Path="src/Avalonia.Ref/Avalonia.Desktop/Avalonia.Desktop.csproj" />
4-
<Project Path="src/Avalonia.Ref/Avalonia.Native/Avalonia.Native.csproj" />
5-
<Project Path="src/Avalonia.Ref/Avalonia.X11/Avalonia.X11.csproj" />
3+
<Project Path="ref/Avalonia-11.3.0/packages/Avalonia/Avalonia.csproj" />
4+
<Project Path="ref/Avalonia-11.3.0/src/Android/Avalonia.Android/Avalonia.Android.csproj" />
5+
<Project Path="ref/Avalonia-11.3.0/src/Avalonia.Base/Avalonia.Base.csproj" />
6+
<Project Path="ref/Avalonia-11.3.0/src/Avalonia.Build.Tasks/Avalonia.Build.Tasks.csproj" />
7+
<Project Path="ref/Avalonia-11.3.0/src/Avalonia.Controls.ColorPicker/Avalonia.Controls.ColorPicker.csproj" />
8+
<Project Path="ref/Avalonia-11.3.0/src/Avalonia.Controls/Avalonia.Controls.csproj" />
9+
<Project Path="ref/Avalonia-11.3.0/src/Avalonia.DesignerSupport/Avalonia.DesignerSupport.csproj" />
10+
<Project Path="ref/Avalonia-11.3.0/src/Avalonia.Diagnostics/Avalonia.Diagnostics.csproj" />
11+
<Project Path="ref/Avalonia-11.3.0/src/Avalonia.Dialogs/Avalonia.Dialogs.csproj" />
12+
<Project Path="ref/Avalonia-11.3.0/src/Avalonia.FreeDesktop/Avalonia.FreeDesktop.csproj" />
13+
<Project Path="ref/Avalonia-11.3.0/src/Avalonia.Metal/Avalonia.Metal.csproj" />
14+
<Project Path="ref/Avalonia-11.3.0/src/Avalonia.MicroCom/Avalonia.MicroCom.csproj" />
15+
<Project Path="ref/Avalonia-11.3.0/src/Avalonia.Native/Avalonia.Native.csproj" />
16+
<Project Path="ref/Avalonia-11.3.0/src/Avalonia.OpenGL/Avalonia.OpenGL.csproj" />
17+
<Project Path="ref/Avalonia-11.3.0/src/Avalonia.ReactiveUI/Avalonia.ReactiveUI.csproj" />
18+
<Project Path="ref/Avalonia-11.3.0/src/Avalonia.Remote.Protocol/Avalonia.Remote.Protocol.csproj" />
19+
<Project Path="ref/Avalonia-11.3.0/src/Avalonia.Themes.Fluent/Avalonia.Themes.Fluent.csproj" />
20+
<Project Path="ref/Avalonia-11.3.0/src/Avalonia.Themes.Simple/Avalonia.Themes.Simple.csproj" />
21+
<Project Path="ref/Avalonia-11.3.0/src/Avalonia.Vulkan/Avalonia.Vulkan.csproj" />
22+
<Project Path="ref/Avalonia-11.3.0/src/Avalonia.X11/Avalonia.X11.csproj" />
23+
<Project Path="ref/Avalonia-11.3.0/src/iOS/Avalonia.iOS/Avalonia.iOS.csproj" />
24+
<Project Path="ref/Avalonia-11.3.0/src/Markup/Avalonia.Markup.Xaml/Avalonia.Markup.Xaml.csproj" />
25+
<Project Path="ref/Avalonia-11.3.0/src/Markup/Avalonia.Markup/Avalonia.Markup.csproj" />
26+
<Project Path="ref/Avalonia-11.3.0/src/Skia/Avalonia.Skia/Avalonia.Skia.csproj" />
27+
<Project Path="ref/Avalonia-11.3.0/src/tools/Avalonia.Analyzers/Avalonia.Analyzers.csproj" />
28+
<Project Path="ref/Avalonia-11.3.0/src/tools/Avalonia.Designer.HostApp/Avalonia.Designer.HostApp.csproj" />
29+
<Project Path="ref/Avalonia-11.3.0/src/tools/Avalonia.Generators/Avalonia.Generators.csproj" />
30+
<Project Path="ref/Avalonia-11.3.0/src/tools/DevAnalyzers/DevAnalyzers.csproj" />
31+
<Project Path="ref/Avalonia-11.3.0/src/tools/DevGenerators/DevGenerators.csproj" />
32+
<Project Path="ref/Avalonia-11.3.0/src/Windows/Avalonia.Win32.Automation/Avalonia.Win32.Automation.csproj" />
33+
<Project Path="ref/Avalonia-11.3.0/src/Windows/Avalonia.Win32/Avalonia.Win32.csproj" />
634
</Folder>
735
<Folder Name="/_Root/">
836
<File Path=".github/workflows/CI.yml" />
937
<File Path=".gitignore" />
1038
<File Path="README.md" />
39+
<File Path="ref/Avalonia.PackageReference.props" />
40+
<File Path="ref/Avalonia.ProjectReference.props" />
1141
<File Path="src/.editorconfig" />
1242
<File Path="src/Directory.Build.props" />
1343
<File Path="src/Directory.Build.targets" />

ref/Avalonia-11.3.0/.editorconfig

Lines changed: 251 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,251 @@
1+
# editorconfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Default settings:
7+
# A newline ending every file
8+
# Use 4 spaces as indentation
9+
[*]
10+
insert_final_newline = true
11+
indent_style = space
12+
indent_size = 4
13+
14+
# C# files
15+
[*.cs]
16+
# New line preferences
17+
csharp_new_line_before_open_brace = all
18+
csharp_new_line_before_else = true
19+
csharp_new_line_before_catch = true
20+
csharp_new_line_before_finally = true
21+
csharp_new_line_before_members_in_object_initializers = true
22+
csharp_new_line_before_members_in_anonymous_types = true
23+
csharp_new_line_between_query_expression_clauses = true
24+
# trim_trailing_whitespace = true
25+
26+
# Indentation preferences
27+
csharp_indent_block_contents = true
28+
csharp_indent_braces = false
29+
csharp_indent_case_contents = true
30+
csharp_indent_switch_labels = true
31+
csharp_indent_labels = one_less_than_current
32+
33+
# avoid this. unless absolutely necessary
34+
dotnet_style_qualification_for_field = false:suggestion
35+
dotnet_style_qualification_for_property = false:suggestion
36+
dotnet_style_qualification_for_method = false:suggestion
37+
dotnet_style_qualification_for_event = false:suggestion
38+
39+
# prefer var
40+
csharp_style_var_for_built_in_types = true
41+
csharp_style_var_when_type_is_apparent = true
42+
csharp_style_var_elsewhere = true:suggestion
43+
44+
# use language keywords instead of BCL types
45+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
46+
dotnet_style_predefined_type_for_member_access = true:suggestion
47+
48+
# name all constant fields using PascalCase
49+
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
50+
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
51+
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
52+
53+
dotnet_naming_symbols.constant_fields.applicable_kinds = field
54+
dotnet_naming_symbols.constant_fields.required_modifiers = const
55+
56+
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
57+
58+
# private static fields should have s_ prefix
59+
dotnet_naming_rule.private_static_fields_should_have_prefix.severity = suggestion
60+
dotnet_naming_rule.private_static_fields_should_have_prefix.symbols = private_static_fields
61+
dotnet_naming_rule.private_static_fields_should_have_prefix.style = private_static_prefix_style
62+
63+
dotnet_naming_symbols.private_static_fields.applicable_kinds = field
64+
dotnet_naming_symbols.private_static_fields.required_modifiers = static
65+
dotnet_naming_symbols.private_static_fields.applicable_accessibilities = private
66+
67+
dotnet_naming_style.private_static_prefix_style.required_prefix = s_
68+
dotnet_naming_style.private_static_prefix_style.capitalization = camel_case
69+
70+
# internal and private fields should be _camelCase
71+
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
72+
dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
73+
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
74+
75+
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
76+
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
77+
78+
dotnet_naming_style.camel_case_underscore_style.required_prefix = _
79+
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
80+
81+
# use accessibility modifiers
82+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
83+
84+
# Code style defaults
85+
dotnet_sort_system_directives_first = true
86+
csharp_preserve_single_line_blocks = true
87+
csharp_preserve_single_line_statements = false
88+
89+
# Expression-level preferences
90+
dotnet_style_object_initializer = true:suggestion
91+
dotnet_style_collection_initializer = true:suggestion
92+
dotnet_style_explicit_tuple_names = true:suggestion
93+
dotnet_style_coalesce_expression = true:suggestion
94+
dotnet_style_null_propagation = true:suggestion
95+
96+
# Expression-bodied members
97+
csharp_style_expression_bodied_methods = false:none
98+
csharp_style_expression_bodied_constructors = false:none
99+
csharp_style_expression_bodied_operators = false:none
100+
csharp_style_expression_bodied_properties = true:none
101+
csharp_style_expression_bodied_indexers = true:none
102+
csharp_style_expression_bodied_accessors = true:none
103+
104+
# Pattern matching
105+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
106+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
107+
csharp_style_inlined_variable_declaration = true:suggestion
108+
109+
# Null checking preferences
110+
csharp_style_throw_expression = true:suggestion
111+
csharp_style_conditional_delegate_call = true:suggestion
112+
113+
# Space preferences
114+
csharp_space_after_cast = false
115+
csharp_space_after_colon_in_inheritance_clause = true
116+
csharp_space_after_comma = true
117+
csharp_space_after_dot = false
118+
csharp_space_after_keywords_in_control_flow_statements = true
119+
csharp_space_after_semicolon_in_for_statement = true
120+
csharp_space_around_binary_operators = before_and_after
121+
csharp_space_around_declaration_statements = false
122+
csharp_space_before_colon_in_inheritance_clause = true
123+
csharp_space_before_comma = false
124+
csharp_space_before_dot = false
125+
csharp_space_before_open_square_brackets = false
126+
csharp_space_before_semicolon_in_for_statement = false
127+
csharp_space_between_empty_square_brackets = false
128+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
129+
csharp_space_between_method_call_name_and_opening_parenthesis = false
130+
csharp_space_between_method_call_parameter_list_parentheses = false
131+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
132+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
133+
csharp_space_between_method_declaration_parameter_list_parentheses = false
134+
csharp_space_between_parentheses = false
135+
csharp_space_between_square_brackets = false
136+
space_within_single_line_array_initializer_braces = true
137+
138+
#Net Analyzer
139+
dotnet_analyzer_diagnostic.category-Performance.severity = none #error - Uncomment when all violations are fixed.
140+
141+
# CS0649: Field 'field' is never assigned to, and will always have its default value 'value'
142+
dotnet_diagnostic.CS0649.severity = error
143+
144+
# CS1591: Missing XML comment for publicly visible type or member
145+
dotnet_diagnostic.CS1591.severity = suggestion
146+
147+
# CS0162: Remove unreachable code
148+
dotnet_diagnostic.CS0162.severity = error
149+
# CA1018: Mark attributes with AttributeUsageAttribute
150+
dotnet_diagnostic.CA1018.severity = error
151+
# CA1304: Specify CultureInfo
152+
dotnet_diagnostic.CA1304.severity = warning
153+
# CA1802: Use literals where appropriate
154+
dotnet_diagnostic.CA1802.severity = warning
155+
# CA1813: Avoid unsealed attributes
156+
dotnet_diagnostic.CA1813.severity = error
157+
# CA1815: Override equals and operator equals on value types
158+
dotnet_diagnostic.CA1815.severity = warning
159+
# CA1820: Test for empty strings using string length
160+
dotnet_diagnostic.CA1820.severity = warning
161+
# CA1821: Remove empty finalizers
162+
dotnet_diagnostic.CA1821.severity = error
163+
# CA1822: Mark members as static
164+
dotnet_diagnostic.CA1822.severity = suggestion
165+
dotnet_code_quality.CA1822.api_surface = private, internal
166+
# CA1823: Avoid unused private fields
167+
dotnet_diagnostic.CA1823.severity = error
168+
# CA1825: Avoid zero-length array allocations
169+
dotnet_diagnostic.CA1825.severity = warning
170+
# CA1826: Use property instead of Linq Enumerable method
171+
dotnet_diagnostic.CA1826.severity = suggestion
172+
# CA1827: Do not use Count/LongCount when Any can be used
173+
dotnet_diagnostic.CA1827.severity = warning
174+
# CA1828: Do not use CountAsync/LongCountAsync when AnyAsync can be used
175+
dotnet_diagnostic.CA1828.severity = warning
176+
# CA1829: Use Length/Count property instead of Enumerable.Count method
177+
dotnet_diagnostic.CA1829.severity = warning
178+
#CA1847: Use string.Contains(char) instead of string.Contains(string) with single characters
179+
dotnet_diagnostic.CA1847.severity = warning
180+
# CA1851: Possible multiple enumerations of IEnumerable collection
181+
dotnet_diagnostic.CA1851.severity = warning
182+
#CA1854: Prefer the IDictionary.TryGetValue(TKey, out TValue) method
183+
dotnet_diagnostic.CA1854.severity = warning
184+
#CA2211:Non-constant fields should not be visible
185+
dotnet_diagnostic.CA2211.severity = error
186+
187+
# Wrapping preferences
188+
csharp_wrap_before_ternary_opsigns = false
189+
190+
# Avalonia DevAnalyzer preferences
191+
dotnet_diagnostic.AVADEV2001.severity = error
192+
193+
# Avalonia PublicAnalyzer preferences
194+
dotnet_diagnostic.AVP1000.severity = error
195+
dotnet_diagnostic.AVP1001.severity = error
196+
dotnet_diagnostic.AVP1002.severity = error
197+
dotnet_diagnostic.AVP1010.severity = error
198+
dotnet_diagnostic.AVP1011.severity = error
199+
dotnet_diagnostic.AVP1012.severity = warning
200+
dotnet_diagnostic.AVP1013.severity = error
201+
dotnet_diagnostic.AVP1020.severity = error
202+
dotnet_diagnostic.AVP1021.severity = error
203+
dotnet_diagnostic.AVP1022.severity = error
204+
dotnet_diagnostic.AVP1030.severity = error
205+
dotnet_diagnostic.AVP1031.severity = error
206+
dotnet_diagnostic.AVP1032.severity = error
207+
dotnet_diagnostic.AVP1040.severity = error
208+
dotnet_diagnostic.AVA2001.severity = error
209+
210+
# Xaml files
211+
[*.{xaml,axaml}]
212+
indent_size = 2
213+
# DuplicateSetterError
214+
avalonia_xaml_diagnostic.AVLN2203.severity = error
215+
# StyleInMergedDictionaries
216+
avalonia_xaml_diagnostic.AVLN2204.severity = error
217+
# RequiredTemplatePartMissing
218+
avalonia_xaml_diagnostic.AVLN2205.severity = error
219+
# OptionalTemplatePartMissing
220+
avalonia_xaml_diagnostic.AVLN2206.severity = info
221+
# TemplatePartWrongType
222+
avalonia_xaml_diagnostic.AVLN2207.severity = error
223+
# ItemContainerInsideTemplate
224+
avalonia_xaml_diagnostic.AVLN2208.severity = error
225+
# Obsolete
226+
avalonia_xaml_diagnostic.AVLN5001.severity = error
227+
228+
# Xml project files
229+
[*.{csproj,vcxproj,vcxproj.filters,proj,nativeproj,locproj}]
230+
indent_size = 2
231+
232+
# Xml build files
233+
[*.builds]
234+
indent_size = 2
235+
236+
# Xml files
237+
[*.{xml,stylecop,resx,ruleset}]
238+
indent_size = 2
239+
240+
# Xml config files
241+
[*.{props,targets,config,nuspec}]
242+
indent_size = 2
243+
244+
[*.json]
245+
indent_size = 2
246+
247+
# Shell scripts
248+
[*.sh]
249+
end_of_line = lf
250+
[*.{cmd,bat}]
251+
end_of_line = crlf

ref/Avalonia-11.3.0/.gitattributes

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
*.sln merge=union
7+
*.csproj merge=union
8+
*.vbproj merge=union
9+
*.fsproj merge=union
10+
*.dbproj merge=union
11+
12+
# Standard to msysgit
13+
*.doc diff=astextplain
14+
*.DOC diff=astextplain
15+
*.docx diff=astextplain
16+
*.DOCX diff=astextplain
17+
*.dot diff=astextplain
18+
*.DOT diff=astextplain
19+
*.pdf diff=astextplain
20+
*.PDF diff=astextplain
21+
*.rtf diff=astextplain
22+
*.RTF diff=astextplain
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: avaloniaui
2+
open_collective: avalonia
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Bug Report
2+
description: File a bug report
3+
labels: ["bug"]
4+
body:
5+
- type: textarea
6+
id: what-happened
7+
attributes:
8+
label: Describe the bug
9+
description: A clear and concise description of what the bug is.
10+
validations:
11+
required: true
12+
- type: textarea
13+
id: steps
14+
attributes:
15+
label: To Reproduce
16+
description: Steps to reproduce the behavior.
17+
validations:
18+
required: true
19+
- type: textarea
20+
id: what-expected
21+
attributes:
22+
label: Expected behavior
23+
description: A clear and concise description of what you expected to happen.
24+
- type: input
25+
id: avalonia-version
26+
attributes:
27+
label: Avalonia version
28+
placeholder: e.g. 11.2.0, 11.1.0
29+
validations:
30+
required: true
31+
- type: dropdown
32+
id: os
33+
attributes:
34+
label: OS
35+
multiple: true
36+
options:
37+
- Windows
38+
- macOS
39+
- Linux
40+
- WebAssembly
41+
- Android
42+
- iOS
43+
- Tizen
44+
- type: textarea
45+
id: additional-info
46+
attributes:
47+
label: Additional context
48+
description: |
49+
Add any other context about the problem here.
50+
If applicable, add screenshots to help explain your problem.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Questions, Discussions, Ideas
4+
url: https://github.com/AvaloniaUI/Avalonia/discussions/new
5+
about: Please ask and answer questions here.
6+
- name: Avalonia Community Support on Telegram
7+
url: https://t.me/Avalonia
8+
about: Please ask and answer questions here.

0 commit comments

Comments
 (0)