Skip to content

Commit 3749a8f

Browse files
committed
Try again to fix source gen bracket issue
1 parent 94f3375 commit 3749a8f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SimpleViewModel/SimpleViewModel.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1111
<PackageId>SimpleViewModel</PackageId>
12-
<Version>0.9.7.3</Version>
12+
<Version>0.9.7.4</Version>
1313
<Authors>Derek Gooding</Authors>
1414
<Company>Derek Gooding</Company>
1515
<Description>

ViewModelGenerator/ViewModelGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public partial class {className} : BaseViewModel
8181
viewModelBuilder.AppendLine($" {onChange}();");
8282
viewModelBuilder.AppendLine(" }}");
8383
}
84-
viewModelBuilder.AppendLine(" }"); // <-- FIX: close property
84+
//viewModelBuilder.AppendLine(" }"); // <-- FIX: close property
8585

8686
foreach (var method in commandMethods)
8787
{
@@ -130,7 +130,7 @@ public override void Execute(object? parameter)
130130
commandBuilder.AppendLine($" vm.{method.Name}();");
131131
}
132132

133-
//commandBuilder.AppendLine(" }");
133+
commandBuilder.AppendLine(" }");
134134
var canExecute = GetCanExecuteMethodName(method);
135135
if (!string.IsNullOrWhiteSpace(canExecute))
136136
commandBuilder.AppendLine($" public override bool CanExecute(object? parameter) => vm.{canExecute}();");

0 commit comments

Comments
 (0)