问题
I have the [assembly:InternalsVisibleTo("GuiAssembly")] set in the other assembly but when wpf binding occurs on a class that lives in the other assembly, it throws an exception because of the property in that class being internal.
I know this works with other applications but not sure why it is not working with this particular WPF app.
回答1:
I'm pretty sure that everything that WPF binds to needs to be public.
来源:https://stackoverflow.com/questions/4106721/internalsvisibleto-is-not-working-for-wpf-application