DEV Community

Discussion on: Sharing is Caring: Using Shared Projects in ASP.NET

Collapse
 
rafalpienkowski profile image
Rafal Pienkowski

Hi Rion. Very nice and useful article. I've never tried Shared Project approach. In my case I had code I want to share in different repositories and I've chosen NuGet packaging approach.

I've faced a problem with a lot of conditional compilation statements. If I had to target multiple framework code became to be messy and unmaintainable very fast.

Thanks for sharing your experience with shared projects. I don't like when there a lot of copy paste fragments in code. Both shared projects and PLCs can help to avoid this.