I have 3 project in my C# solution.
Signatures has public and internal interfaces. Also it has
The suggested fix message uses a const/static field for the assembly name:
[assembly: InternalsVisibleTo(InternalsVisible.ToDynamicProxyGenAssembly2)]
You used a string which does not correspond to the assembly name:
[assembly: InternalsVisibleTo("InternalsVisible.DynamicProxyGenAssembly2")]
Change it to:
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]
You can see the actual assembly name (which should appear in InternalsVisibleTo
) in your error message:
Type 'Castle.Proxies.IReminiscenceableDataTableProxy' from assembly 'DynamicProxyGenAssembly2 (...)