kswoll / ReactiveUI.Fody

C# Fody extension to generate RaisePropertyChange notifications for properties and ObservableAsPropertyHelper properties.
MIT License
154 stars 31 forks source link

An handled exception occurred when I build project first time, but it will be ok when I build it again #61

Open Jakvic opened 1 month ago

Jakvic commented 1 month ago

I'm using the net8.0-windows + WPF

here is the infomation image

  Fody: An unhandled exception occurred:
Exception:
Failed to execute weaver D:\.nuget\packages\reactiveui.fody\19.5.41\build\..\weaver\ReactiveUI.Fody.dll
Type:
System.Exception
StackTrace:
   at InnerWeaver.ExecuteWeavers() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 222
   at InnerWeaver.Execute() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 112
Source:
FodyIsolated
TargetSite:
Void ExecuteWeavers()
Sequence contains no matching element
Type:
System.InvalidOperationException
StackTrace:
   at System.Linq.ThrowHelper.ThrowNoMatchException()
   at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)
   at ReactiveUI.Fody.ReactiveUIPropertyWeaver.Execute() in /_/src/ReactiveUI.Fody/ReactiveUIPropertyWeaver.cs:line 100
   at ReactiveUI.Fody.ModuleWeaver.Execute() in /_/src/ReactiveUI.Fody/ModuleWeaver.cs:line 26
   at InnerWeaver.ExecuteWeavers() in C:\projects\fody\FodyIsolated\InnerWeaver.cs:line 204
Source:
System.Linq
TargetSite:
Void ThrowNoMatchException()

the nuget pkgs:

<PackageReference Include="ReactiveUI" Version="20.1.1" />
<PackageReference Include="ReactiveUI.WPF" Version="20.1.1" />
<PackageReference Include="ReactiveUI.Fody" Version="19.5.41" />