0

Iin my visual studio express, i have two projects in a single solution. What i want to know is that how can i differentiate both the projects??

FYI - I have added the seond project by the steps given in this link

Community
  • 1
  • 1
Aju
  • 796
  • 3
  • 10
  • 29
  • What do you mean by differenciate? Can't you already differentiate them by their names? – Olivier Payen Jan 21 '14 at 08:19
  • how to use conditional compilation guards around the code? If my first project is A and second one is B. How can i use conditional compilation? – Aju Jan 21 '14 at 10:36

2 Answers2

0

Not sure about the question. If I understood well you just need to add reference to the projects from your main project and you can use resources from them.

Can you please provide more info about what you really need?

Hadis
  • 67
  • 5
0

Here is how you can use conditional compilation:

Set a conditional compilation symbol on each project (go to the project settings, "build" tab). For example add the compilation symbol "APP1".

Then in your code, use the following syntax:

#if APP1
// This is APP1 code
#endif
Olivier Payen
  • 15,198
  • 7
  • 41
  • 70