scrot
scrot

Reputation: 1647

VS2005 - Call a method from a separate project? (Same solution)

I'm having an issue calling a method from a separate project within the same solution in VS2005. Am I just being dumb or am I missing something here?

Thanks.

Upvotes: 0

Views: 328

Answers (2)

Matt H
Matt H

Reputation: 256

Also check your access modifiers. The class containing the method you're trying to call needs to be declared public.

If you don't specify an access modifier the class defaults to internal which means it's only accessible to code in the same assembly.

(I'm assuming C#)

Upvotes: 1

bdukes
bdukes

Reputation: 156055

Have you added a reference to the separate project to your current project?

Upvotes: 2

Related Questions