Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

Unreferenced assemblies in Toolkit.Graphics.GraphicsDevice #305

Closed
Gavin-Williams opened this issue Mar 15, 2014 · 3 comments
Closed

Unreferenced assemblies in Toolkit.Graphics.GraphicsDevice #305

Gavin-Williams opened this issue Mar 15, 2014 · 3 comments

Comments

@Gavin-Williams
Copy link
Contributor

Hi,

Just started using Toolkit a little bit, and have come across this error .. On the line :
GraphicsDevice d = GraphicsDevice.New(((SDKSharpDX.Window)Window).Device3D);

The following errors are given :
SharpDX.DXGI.Adaptor1 is defined in an assembly that is not referenced.
SharpDX.DXGI.Factory1 is defined in an assembly that is not referenced.

This is the ToolKit GraphicsDevice. And ive checked its meta-data and sure enough, DXGI is not referenced.

Gavin

@Gavin-Williams
Copy link
Contributor Author

I think this is a valid issue, the dll's should reference their own internal dependencies, shouldn't they ?

@xoofx
Copy link
Member

xoofx commented Mar 15, 2014

Well, you have to reference assemblies yourself, because the Toolkit is using some implicit cast that are requiring these assemblies to be added to your project. There is nothing we can do about this, as this is the behavior of .NET. If you use an assembly that as using for example System.Drawing assembly in their public interface, you need to add this assembly explicitly to your project. When the toolkit is usually used, the SharpDX.targets msbuild is added at the end of a csproj file, and this file is adding explicitly these assemblies.

@xoofx xoofx closed this as completed Mar 15, 2014
@Gavin-Williams
Copy link
Contributor Author

Ok. Thanks for clearing that up for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants