Returning or inheriting a generic that contains a nested class?

I assume that your test project testing assembly B doesn't have a copy of assembly A. Setting "Copy Local" to true on the references should copy the assemblies, so that they can be found correctly when compiling (and finally running) the tests.

Actually, assembly B is loaded with the unit test project as well. In all cases, "Copy Local" is set to True, so I do not believe this is the issue. Good idea though.

– Raskolnikov Nov 23 '10 at 10:15.

I doubt that this is anything to do with nested classes - just a lack of transitive dependencies being surfaced in .NET. Basically, if you're going to use AnotherClass in one project, you'll need to explicitly add a reference to both AssemblyB and AssemblyA. That way both should be copied and loaded appropriately.

If that doesn't help, you could try enabling fusion logging.

I have added a reference to both assemblies in my unit test project, so that's not the issue. Nothing came up in the binding log window either, but I'd never come across that tool before so that's still something new I've learned. Thanks for that!

– Raskolnikov Nov 23 '10 at 10:51 1 Last time I checked (some years ago) Fuslogvw. Exe was a bit inflexible. So I rather spool my fusion logs to some folder.

Alter "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion", set ForceLog and LogFailures to 1 and set LogPath=C:\Temp\FusionLog and create that folder. – Petar Repac Nov 23 '10 at 14:03.

You get this error message in visual studio 2010 if your project has target framework set to "Framework 4 Client Profile" and the linked dll has a target Framework "Framework 4". Check that in your project settings.

All my projects have the target of ". NET Framework 4". Thanks anyway :) – Raskolnikov Nov 23 '10 at 10:49.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions