assemblies - How to access namespace which is part of different project? -


I have two C # .net projects Project 1 and Project 2 (single name) I am using Visual Studio 2005 . I have right click in Project 2 in context of Project 2 and choose 'Aad Reference'. Both projects are not of the 'application' project type Class library type I have some classes in Project 2 which I want to use in the project. After adding the reference I try to use Project 2 Import Namespaces in Project 1 But I think that its not available Visual Studio Intelligence is not showing me the desired namespace, is there any suggestions Sector could show you how to many projects using namespaces and classes?

Edit: - Is this because there are separate assemblies for both projects?

Thanks

Be sure that the sections you want to reach are public Assume that you have the following class in Project 2: Project 1 in Project 2 after Project 2:

  Namespace Project 2 {Public class} {}}  

2 You can use this class:

  Namespace Project1 {using Project 2; Click on the public class bar {public bar} (Foo foo = new Foo ();}}}  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -