In the attached Code, i've derived CustonMeshContainer from MeshContainer and
overwritten its Dispose(bool)-Method.
When the MeshContainer.Dispose()-Method is called in Line 85, the following
exception is thrown:
System.MethodAccessException was unhandled by user code
Message=[C:\Windows\Microsoft.Net\assembly\GAC_64\SlimDX\v4.0_4.0.11.43__b1b0c32fd1ffe4f9\SlimDX.dll] Strong-name signed assemblies must specify a public key in their InternalsVisibleTo declarations.
Source=TT.Library.Graphic.SlimDX
StackTrace:
at TT.Library.Graphic.SlimDX.Primitives.CustomMeshContainer.Dispose(Boolean disposing)
at SlimDX.Direct3D9.MeshContainer.Dispose()
at TT.Library.Graphic.SlimDX.Primitives.CustomAllocateHierarchy.DestroyMeshContainer(MeshContainer container) in J:\trunk\TT.Library.Graphic.SlimDX\source\Primitives\CustomAllocateHierarchy.cs:line 85
at SlimDX.Direct3D9.IAllocateHierarchyShim.DestroyMeshContainer(IAllocateHierarchyShim* , _D3DXMESHCONTAINER* pMeshContainerToFree)
InnerException:
I've dug into the SlimDX sources and it seems to me, that the "PUBLIC"
Preprocessor Constant is never declared. Without it the public key of
SlimDX.Tests is not provided to the InternalsVisibleToAttribute in
AssemblyInfo.cs.
Disassembling SlimDX.dll confirms that the
InternalsVisibleTo("SlimDX.Tests")-Attribute does not have a public key.
Original issue reported on code.google.com by frauklei...@gmx.net on 11 May 2011 at 6:34
Original issue reported on code.google.com by
frauklei...@gmx.net
on 11 May 2011 at 6:34Attachments: