Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 565981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:55:47+00:00 2026-05-13T12:55:47+00:00

I am working on an .NET library project, containing a bunch of interfaces which

  • 0

I am working on an .NET library project, containing a bunch of interfaces which can be consumed by a service, which I am also creating. Users of the service will provide implementations of the interfaces from the library, which are then injected into the service application.

My library relies on a third-party library, which I will of course need to reference. One of the interfaces in my library, uses types from the third-party in its method signatures. This means, that implementors of this particular interface will also need to reference the third-party library. My concern is that this adds friction, distracting the user from doing the job she is really meant to do – implement that interface.

One solution to this problem would be to include the source files from the third-party library build, rather than referencing it as a seperate assembly. I am aware that this might make it somewhat harder for me to integrate updates to the third-party code in the future, but apart from that, are there any reasons why I should not consider this an option? When do you include third-party code rather than reference it?

Notes: The third-party library in question is quite small (less than 10 classes, total 1500 SLOC), and it is made available under the open-source license as my project (Apache License 2.0).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:55:47+00:00Added an answer on May 13, 2026 at 12:55 pm

    I would be very reluctant to include the source code in your own project. Yes, your user needs to add another reference… but that means they know where it’s coming from. Maybe they’ll want to use it elsewhere – maybe they’ll even be using another project with the same 3rd party library. You don’t want to end up with multiple copies of the same type.

    Additionally, keeping it as a separate library will make it a good deal easier to update as and when the third party library changes.

    There are some projects which explicitly give you a “single source file” version of the library to make it easy to embed within a project. (linqbridge does, for example.) That changes things somewhat – at that point I think it’s more reasonable to include it if you want to. But for “normal” projects I’d just add the reference.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a C# library class which is being consumed by an ASP.NET
I'm working on a .NET library that is intended to be consumed in a
I'm working on a VS2010 Solution containing an ASP.NET Website Project and 8 c#
I am working on a C#.NET class library project in VS2010. In my project
Im currently working on a c# project that uses another .net library. This library
I am currently working on a REST library for .net, and I would like
What profilers have you used when working with .net programs, and which would you
I'm working on an ASP.NET MVC 2 application and use a seperate class library
I'm working on a project for a client in which the client owns the
I am working on a project in C#.NET using the .NET framework version 3.5.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.