@@ -79,7 +79,7 @@ namespace ReactiveUI.SourceGenerators;
7979/// ReactiveObjectAttribute.
8080/// </summary>
8181/// <seealso cref="System.Attribute" />
82- [global::System.CodeDom.Compiler.GeneratedCode("ReactiveUI.SourceGenerators.ReactiveObjectGenerator", "1.1.0.0 ")]
82+ [global::System.CodeDom.Compiler.GeneratedCode("ReactiveUI.SourceGenerators.ReactiveObjectGenerator", "{{ ReactiveGenerator . GeneratorVersion }} ")]
8383[global::System.AttributeUsage(global::System.AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
8484internal sealed class ReactiveObjectAttribute : global::System.Attribute;
8585#nullable restore
@@ -109,7 +109,7 @@ namespace ReactiveUI.SourceGenerators;
109109/// ReativeCommandAttribute.
110110/// </summary>
111111/// <seealso cref="Attribute" />
112- [global::System.CodeDom.Compiler.GeneratedCode("ReactiveUI.SourceGenerators.ReactiveCommandGenerator", "1.1.0.0 ")]
112+ [global::System.CodeDom.Compiler.GeneratedCode("ReactiveUI.SourceGenerators.ReactiveCommandGenerator", "{{ ReactiveGenerator . GeneratorVersion }} ")]
113113[global::System.AttributeUsage(global::System.AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
114114internal sealed class ReactiveCommandAttribute : global::System.Attribute
115115{
@@ -242,7 +242,7 @@ namespace ReactiveUI.SourceGenerators;
242242/// ObservableAsPropertyAttribute.
243243/// </summary>
244244/// <seealso cref="Attribute" />
245- [global::System.CodeDom.Compiler.GeneratedCode("ReactiveUI.SourceGenerators.ObservableAsPropertyGenerator", "1.1.0.0 ")]
245+ [global::System.CodeDom.Compiler.GeneratedCode("ReactiveUI.SourceGenerators.ObservableAsPropertyGenerator", "{{ ReactiveGenerator . GeneratorVersion }} ")]
246246[global::System.AttributeUsage(global::System.AttributeTargets.Field | global::System.AttributeTargets.Property | global::System.AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
247247internal sealed class ObservableAsPropertyAttribute : global::System.Attribute
248248{
@@ -297,7 +297,7 @@ namespace ReactiveUI.SourceGenerators;
297297/// ObservableAsPropertyAttribute.
298298/// </summary>
299299/// <seealso cref="Attribute" />
300- [global::System.CodeDom.Compiler.GeneratedCode("ReactiveUI.SourceGenerators.ObservableAsPropertyGenerator", "1.1.0.0 ")]
300+ [global::System.CodeDom.Compiler.GeneratedCode("ReactiveUI.SourceGenerators.ObservableAsPropertyGenerator", "{{ ReactiveGenerator . GeneratorVersion }} ")]
301301[global::System.AttributeUsage(global::System.AttributeTargets.Field | global::System.AttributeTargets.Property | global::System.AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
302302internal sealed class ObservableAsPropertyAttribute : global::System.Attribute
303303{
@@ -350,15 +350,21 @@ namespace ReactiveUI.SourceGenerators;
350350/// Initializes a new instance of the <see cref="IViewForAttribute"/> class.
351351/// </remarks>
352352/// <param name="viewModelType">Type of the view model.</param>
353- [global::System.CodeDom.Compiler.GeneratedCode("ReactiveUI.SourceGenerators.IViewForGenerator", "1.1.0.0 ")]
353+ [global::System.CodeDom.Compiler.GeneratedCode("ReactiveUI.SourceGenerators.IViewForGenerator", "{{ ReactiveGenerator . GeneratorVersion }} ")]
354354[global::System.AttributeUsage(global::System.AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
355355internal sealed class IViewForAttribute<T> : global::System.Attribute
356356{
357357 /// <summary>
358- /// Gets the Splat registration type for Splat registration.
358+ /// Gets the Splat registration type for Splat IViewFor registration.
359359 /// Registers IViewFor<T> in the Splat service locator.
360360 /// </summary>
361361 public SplatRegistrationType RegistrationType { get; init; } = SplatRegistrationType.None;
362+
363+ /// <summary>
364+ /// Gets the Splat registration type for Splat View Model registration.
365+ /// Registers IViewFor<T> in the Splat service locator.
366+ /// </summary>
367+ public SplatRegistrationType ViewModelRegistrationType { get; init; } = SplatRegistrationType.None;
362368}
363369
364370/// <summary>
@@ -369,15 +375,21 @@ internal sealed class IViewForAttribute<T> : global::System.Attribute
369375/// Initializes a new instance of the <see cref="IViewForAttribute"/> class.
370376/// </remarks>
371377/// <param name="viewModelType">Type of the view model, ensure to use the full type name including namespace.</param>
372- [global::System.CodeDom.Compiler.GeneratedCode("ReactiveUI.SourceGenerators.IViewForGenerator", "1.1.0.0 ")]
378+ [global::System.CodeDom.Compiler.GeneratedCode("ReactiveUI.SourceGenerators.IViewForGenerator", "{{ ReactiveGenerator . GeneratorVersion }} ")]
373379[global::System.AttributeUsage(global::System.AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
374380internal sealed class IViewForAttribute(string? viewModelType) : global::System.Attribute
375381{
376382 /// <summary>
377- /// Gets the Splat registration type for Splat registration.
383+ /// Gets the Splat registration type for Splat IViewFor registration.
378384 /// Registers IViewFor<T> in the Splat service locator.
379385 /// </summary>
380386 public SplatRegistrationType RegistrationType { get; init; } = SplatRegistrationType.None;
387+
388+ /// <summary>
389+ /// Gets the Splat registration type for Splat View Model registration.
390+ /// Registers IViewFor<T> in the Splat service locator.
391+ /// </summary>
392+ public SplatRegistrationType ViewModelRegistrationType { get; init; } = SplatRegistrationType.None;
381393}
382394#nullable restore
383395#pragma warning restore
@@ -404,7 +416,7 @@ namespace ReactiveUI.SourceGenerators.WinForms;
404416/// Initializes a new instance of the <see cref="ViewModelControlHostAttribute"/> class.
405417/// </remarks>
406418/// <param name="viewModelType">Type of the view model.</param>
407- [global::System.CodeDom.Compiler.GeneratedCode("ReactiveUI.SourceGenerators.ViewModelControlHostGenerator", "1.1.0.0 ")]
419+ [global::System.CodeDom.Compiler.GeneratedCode("ReactiveUI.SourceGenerators.ViewModelControlHostGenerator", "{{ ReactiveGenerator . GeneratorVersion }} ")]
408420[global::System.AttributeUsage(global::System.AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
409421internal sealed class ViewModelControlHostAttribute(string? baseType) : global::System.Attribute;
410422#nullable restore
@@ -432,7 +444,7 @@ namespace ReactiveUI.SourceGenerators.WinForms;
432444/// Initializes a new instance of the <see cref="RoutedControlHostAttribute"/> class.
433445/// </remarks>
434446/// <param name="viewModelType">Type of the view model.</param>
435- [global::System.CodeDom.Compiler.GeneratedCode("ReactiveUI.SourceGenerators.RoutedControlHostGenerator", "1.1.0.0 ")]
447+ [global::System.CodeDom.Compiler.GeneratedCode("ReactiveUI.SourceGenerators.RoutedControlHostGenerator", "{{ ReactiveGenerator . GeneratorVersion }} ")]
436448[global::System.AttributeUsage(global::System.AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
437449internal sealed class RoutedControlHostAttribute(string? baseType) : global::System.Attribute;
438450#nullable restore
0 commit comments