You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
# ReactiveUI.SourceGenerators
2
2
Use source generators to generate ReactiveUI objects.
3
+
The minimum C# version is 12.0 and the minimum Visual Studio version is 17.8.0.
3
4
4
5
These Source Generators were designed to work in full with ReactiveUI V19.5.31 and newer supporting all features, currently:
5
6
-[Reactive]
@@ -15,6 +16,8 @@ These Source Generators were designed to work in full with ReactiveUI V19.5.31 a
15
16
Versions older than V19.5.31 to this:
16
17
-[ReactiveCommand] all options supported except Cancellation Token asnyc methods.
17
18
19
+
For dot net framework 4.8 and older versions please add Polyfill or PolySharp package to your project to gain the IsExternalInit class and set the LangVersion to 12.0 or latest in your project file.
<PackageDescription>A MVVM framework that integrates with the Reactive Extensions for .NET to create elegant, testable User Interfaces that run on any mobile or desktop platform. This is the Source Generators package for ReactiveUI</PackageDescription>
<PackageDescription>A MVVM framework that integrates with the Reactive Extensions for .NET to create elegant, testable User Interfaces that run on any mobile or desktop platform. This is the Source Generators package for ReactiveUI</PackageDescription>
Copy file name to clipboardExpand all lines: src/ReactiveUI.SourceGenerators/Diagnostics/DiagnosticDescriptors.cs
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ internal static class DiagnosticDescriptors
37
37
id:"RXUISG0002",
38
38
title:"Invalid ReactiveCommand method signature",
39
39
messageFormat:"The method {0}.{1} cannot be used to generate a command property, as its signature isn't compatible with any of the existing reactive command types",
description:"Cannot set the CanExecute name in [ReactiveCommand] to one that has multiple matches in its parent type (it must refer to a single compatible member).",
@@ -85,7 +85,7 @@ internal static class DiagnosticDescriptors
85
85
id:"RXUISG0005",
86
86
title:"No valid ReactiveCommand.CanExecute member match",
87
87
messageFormat:"The CanExecute name must refer to a compatible member, but no valid members were found for \"{0}\" in type {1}",
description:"The CanExecute name in [ReactiveCommand] must refer to a compatible member (either a property or a method) to be used in a generated command.",
@@ -101,7 +101,7 @@ internal static class DiagnosticDescriptors
101
101
id:"RXUISG0006",
102
102
title:"Invalid field or property targeted attribute type",
103
103
messageFormat:"The method {0} annotated with [ReactiveCommand] is using attribute \"{1}\" which was not recognized as a valid type (are you missing a using directive?)",
description:"All attributes targeting the generated field or property for a method annotated with [ReactiveCommand] must correctly be resolved to valid types.",
@@ -117,7 +117,7 @@ internal static class DiagnosticDescriptors
117
117
id:"RXUISG0007",
118
118
title:"Invalid field or property targeted attribute expression",
119
119
messageFormat:"The method {0} annotated with [ReactiveCommand] is using attribute \"{1}\" with an invalid expression (are you passing any incorrect parameters to the attribute constructor?)",
description:"All attributes targeting the generated field or property for a method annotated with [ReactiveCommand] must be using valid expressions.",
@@ -149,7 +149,7 @@ internal static class DiagnosticDescriptors
149
149
id:"RXUISG0009",
150
150
title:"Name collision for generated property",
151
151
messageFormat:"The field {0}.{1} cannot be used to generate an reactive property, as its name would collide with the field name (instance fields should use the \"lowerCamel\", \"_lowerCamel\" or \"m_lowerCamel\" pattern)",
description:"The name of fields annotated with [Reactive] should use \"lowerCamel\", \"_lowerCamel\" or \"m_lowerCamel\" pattern to avoid collisions with the generated properties.",
@@ -165,7 +165,7 @@ internal static class DiagnosticDescriptors
165
165
id:"RXUISG0010",
166
166
title:"Invalid property targeted attribute type",
167
167
messageFormat:"The field {0} annotated with [Reactive] is using attribute \"{1}\" which was not recognized as a valid type (are you missing a using directive?)",
messageFormat:"The field {0} annotated with [Reactive] is using attribute \"{1}\" with an invalid expression (are you passing any incorrect parameters to the attribute constructor?)",
description:"All attributes targeting the generated property for a field annotated with [Reactive] must be using valid expressions.",
@@ -245,7 +245,7 @@ internal static class DiagnosticDescriptors
245
245
id:"RXUISG0015",
246
246
title:"Invalid generated property declaration",
247
247
messageFormat:"The field {0}.{1} cannot be used to generate an reactive property, as its name or type would cause conflicts with other generated members",
description:"The fields annotated with [Reactive] cannot result in a property name or have a type that would cause conflicts with other generated members.",
0 commit comments