Search code examples
c#asp.netasp.net-corevisual-studio-2017class-library

share class library to other solution but readonly asp.net


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


Solution

  • 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.