Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Namespaces and projects 1

Status
Not open for further replies.

mcfarlane123

Programmer
Feb 12, 2008
1
ES
Hi,

I'm trying to build a solution in C# and I've found some problems that I don't know how tho solve.

I've defined a Solution with two projects. One contains a group of Utils classes, and I would like to use those public classes in the other project. Obviously I'd like to use the Debug and Release versions depending on the solution, so using the "References" property in Visual Studio doesn't seem to solve the problem.

I've also tried to use the same namespace in both projects, but didn't wor due that the global namespace name include the dll's name.

I'm just stuck with this and any help would be grateful.

Thanks in advance,

Natxo Mateos
 
all you need to do is reference project A in project B. VS takes care of which build (debug/release) to use. When you press <F5> to debug VS will reference the debug version of the referenced procject. When you deploy VS will use the release version. These are the default settings which you can change if you need.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top