-1

hi i have to 2 solutions this is the first one(ProjectB)

enter image description here

my goal is to reference the ProjectB.Core to my other solution (ProjectA) but it needs to be read only or visible false

enter image description here

i successfully referenced it using add existing project but i can edit the code in projectA

Jeinz Hernandez
  • 119
  • 1
  • 1
  • 10
  • Then do not add the project to the solution. just reference the ProjectB.Core dll from its output directory (usually the bin directory) from project A. – Nkosi Jun 10 '17 at 17:17
  • i need a solution that whenever i change some code to projectB.Core it will automatically reflected in projectA – Jeinz Hernandez Jun 10 '17 at 17:31
  • not without having the other project as part of the solution. So it is either one or the other. – Nkosi Jun 10 '17 at 17:33

1 Answers1

0

You may add a post-build event in project properties to copy your library DLL to a folder where your other solution can reference it. Play with xcopy command.

Saša Ćetković
  • 885
  • 9
  • 21