To prove it isn't a problem with SharpDX, I put this line before that GraphicsAdapter line: Dim testRect As SharpDX.Rectangle = New Rectangle() NOTE: These are all up-to-date packages from NuGet, in Visual Studio 2015. What could be wrong? Not compatible with this SharpDX version? So I don't see why it would fail this way. The project references these assemblies (among others):įrom NuGet "", file Note the inner exception: Could not load type 'SharpDX.Rectangle' from assembly 'SharpDX, Version=4.0.1.0. Message=Could not load type 'SharpDX.Rectangle' from assembly 'SharpDX, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b4dcf0f35e5521f1'.Īt .GraphicsAdapter.CreateAdapter(Adapter1 device, Output monitor)Īt .GraphicsAdapter.PlatformInitializeAdapters(ReadOnl圜ollection`1& adapters)Īt .tor() TypeName=.GraphicsAdapterĪt .GraphicsAdapter.get_Adapters() Message=The type initializer for '.GraphicsAdapter' threw an exception. Result is an exception: System.TypeInitializationException occurred On this line: For Each adapter As GraphicsAdapter In GraphicsAdapter.Adapters For example, trying to enumerate GraphicsAdapters. Converting VB code from XNA 3.1 to MonoGame.Īny attempt to access class GraphicsAdapter throws the exception below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |