I think the package i needed to add was: System.Runtime.InteropServcies.WindowsRuntime
FrameworkElement events not supported

I was trying to resolve an issue where 'multiple assemblies with the same identity have been imported" so I removed one of the assemblies (System.Runtime.InteropServices) but then i started getting this message ..
CS1545 Property, indexer, or event 'FrameworkElement.SizeChanged' is not supported by the language; try directly calling accessor methods 'FrameworkElement.add_SizeChanged(SizeChangedEventHandler)' or 'FrameworkElement.remove_SizeChanged(EventRegistrationToken)'
I added System.Runtime.InteropServices back in. But I haven't fixed it. Have I made a mistake and added the wrong nuget package back in?
No, I don't think it did strangely. But I can't tell now, because my app is now in a broken state - refusing to run file loading code and throwing an unhelpful exception - System.IO.FileLoadException on code that was never touched and working earlier today. So until i figure that out ...
Hi, if you encounter new problem, you can open a new thread to ask question. If adding this package still doesn't solve your problem, please provide a minimum runnable demo to help us analyze your problem
Hello, has your issue been resolved?
I'll have to close this for now, I have another issue to deal with, and I suspect this was just my own stuff-up.
Sign in to comment