views:

869

answers:

4

I have a three projects in the solution WinSync. I have WinSyncGui, WinSyncLib and Setup. WinSyncGui requires files from WinSyncLib. How can I get it to include WinSyncLib in WinSyncGui?

VS complains The type or namespace name 'WinSyncLib' could not be found (are you missing a using directive or an assembly reference?)

I've set the dependencies so that WinSyncGui depends on WinSyncLib (so Lib is built first), but it's still not working.

+2  A: 

You need to add WinSyncLib as a reference in your WinSyncGui project.

Adding a project reference.

chills42
+2  A: 

Right click your project (WebSyncGui) and select Add Reference, Projects tab, and then select the project you need to reference.

Brandon
+1  A: 

I've set the dependencies

That sounds wrong. Did you set the "dependencies" or did you set the "references". Dependencies just determine build order, references are used to link projects.

Jonathan Allen
A: 

Are you sure all of the types are public? if you omit the modifier, it's internal by default.

Joel Martinez