Open MaybeSacred opened 6 years ago
please upload a minimal solution that reproduces the issue
@SimonCropp As there is a Zip file with code attached, why was this closed? Asking as i have the same issue
@BigHoss it was 6 years ago so i dont really remember. but i suspect i missed the zip link
I tried the repro as-is:
0>: Error : Fody: An unhandled exception occurred:
Exception:
Could not load file or assembly 'propertychanged.fody.dll' or one of its dependencies. The system cannot find the file specified.
StackTrace:
at System.Reflection.AssemblyName.nGetFileInformation(String s)
at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)
at AssemblyVersionReader.GetAssemblyVersion(String path) in C:\projects\fody\Fody\AssemblyVersionReader.cs:line 11
at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
at Processor.FindAssemblyPath(String weaverName) in C:\projects\fody\Fody\WeaverAssemblyPathFinder.cs:line 6
at Processor.ProcessConfig(WeaverEntry weaverConfig) in C:\projects\fody\Fody\InstanceLinker\WeaversConfiguredInstanceLinker.cs:line 25
at Processor.ConfigureWhenWeaversFound() in C:\projects\fody\Fody\InstanceLinker\WeaversConfiguredInstanceLinker.cs:line 7
at Processor.FindWeavers() in C:\projects\fody\Fody\Processor.cs:line 119
at Processor.Inner() in C:\projects\fody\Fody\Processor.cs:line 90
at Processor.Execute() in C:\projects\fody\Fody\Processor.cs:line 50
Source:
mscorlib
TargetSite:
System.Reflection.AssemblyName nGetFileInformation(System.String)
The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
But after updating the weaver packages:
The project builds fine. It also builds fine when uncommenting <ToString/>
. I then ran the project and made sure the PropertyChanged
event works correctly.
=> I can't reproduce with a recent version
@BigHoss could you maybe provide another repro?
PropertyChanged fails with this exception when
AddINotifyPropertyChangedInterface
is added to a class containing a type from LanguageExt:However,
ToString.Fody
works fine; when theAddINotifyPropertyChangedInterface
attribute is removed, the code compiles fine. The MCVE fails as well, with noToString
attribute/weaver.Packages used: languageext.core: 2.1.32 propertychanged.fody: 2.2.5 tostring.fody: 1.9.2
Example.zip