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

  • SEARCH
  • Home
  • 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 56203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:29:52+00:00 2026-05-10T17:29:52+00:00

I have a few ‘helper’ style extension methods I use quite regularly now (they

  • 0

I have a few ‘helper’ style extension methods I use quite regularly now (they are mostly quite simple, intuitive, and work for good not evil, so please don’t have this descend into a discussion around whether or not I should use them). They are largely extending core .NET CLR classes.

Currently, I have to copy the ‘ExtensionMethods.cs’ file that holds my extension methods to each new project within a solution to be able to use them in multiple projects.

Is it possible to define an extension to work over multiple projects within a solution, or wrap them in an ‘extensions’ dll, or are they confined to the scope of project?

EDIT Whilst the ‘dedicated project’ answers are perfectly valid, I chose marxidad’s as I prefer the approach he gives. Thanks for all the answers so far, and I have upmodded them all, as they were all good answers

  • 1 1 Answer
  • 2 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. 2026-05-10T17:29:52+00:00Added an answer on May 10, 2026 at 5:29 pm

    If you don’t want to create a whole project just for the extension methods, you can link the same file into separate projects without copying the file:

    1. In Solution Explorer, select the target project.
    2. Select the Project menu.
    3. Select Add Existing Item.
    4. In the Add Existing Item dialog box, select the item you want to link.
    5. From the Open button drop-down list, select Add As Link.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have few PC's that run on slow Internet connection network + they use
i have few variables like this: self.lamp_1 self.lamp_2 self.lamp_3 self.lamp_4 and now i want
I have few textviews and it looks like this now: ramdomName 10.20 - 11.30
I have few years of exp on linux, mainly ubuntu (dual-boot). Now i am
I have few simple django-based sites and I their number increasing all the time.
I have few element in my html page which has tabIndex attribute. Now I
I have few lines of C++ code which has simple purpose - to store
I have few question in this regard When you create an internet page, does
We have few components like libraries dlls When initially created I ran the following
I have few nested DIVs at page. I want to add event only for

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.