Skip to content

Commit 1827eef

Browse files
committed
Updates analyzer packages
Updates analyzer packages to newer versions. Adds a default parameterless overload to the InitializeStellarComponent extension method. Enables preview language features. Marks IsValid property as partial to allow for extension.
1 parent 4ab4110 commit 1827eef

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

Directory.build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
Version="1.2.0-beta.435"
1919
PrivateAssets="all"/>
2020
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers"
21-
Version="8.0.0"
21+
Version="9.0.0"
2222
PrivateAssets="all"/>
2323
<PackageReference Include="Roslynator.Analyzers"
24-
Version="4.12.10"
24+
Version="4.13.1"
2525
PrivateAssets="All"/>
2626
</ItemGroup>
2727
<ItemGroup>

Stellar/Extensions/IStellarViewExtensions.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ namespace Stellar;
55

66
public static class IStellarViewExtensions
77
{
8+
public static void InitializeStellarComponent<TViewModel>(
9+
this IStellarView<TViewModel> stellarView,
10+
bool maintain = false,
11+
bool delayBindingRegistrationUntilAttached = false)
12+
where TViewModel : class
13+
{
14+
InitializeStellarComponent(stellarView, null, maintain, delayBindingRegistrationUntilAttached);
15+
}
16+
817
public static void InitializeStellarComponent<TViewModel>(
918
this IStellarView<TViewModel> stellarView,
1019
TViewModel? viewModel,

Stellar/Stellar.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<SingleProject>true</SingleProject>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
7+
<LangVersion>preview</LangVersion>
78
<PackageId>StellarUI</PackageId>
89
<Title>Stellar UI</Title>
910
<Authors>Eight-Bot</Authors>

Stellar/ViewModel/ValidatingViewModelBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public abstract partial class ValidatingViewModelBase<TNeedsValidation> : ViewMo
1717
protected readonly IProvideValidation<TNeedsValidation> Validator;
1818

1919
[Reactive]
20-
public bool IsValid { get; private set; }
20+
public partial bool IsValid { get; private set; }
2121

2222
public ObservableCollection<ValidationInformation> ValidationErrors { get; } = new();
2323

0 commit comments

Comments
 (0)