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 6673769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:40:01+00:00 2026-05-26T03:40:01+00:00

I want to split the components of my applications like: Application A -> Component

  • 0

I want to split the components of my applications like:

Application A -> Component X <- Application B

without compiling Component X to a dll.
When I include the .cs, Visual Studio copies it to the application directory. I don’t want that. I want to include the file and then use a part of it, like C’s #define. For example if I have a ZIP library, I don’t want to include the whole assembly if I need a decompression. What’s the C# way to make this? Can I somehow tell VS to not copy the file and use #defines or maybe some method attributes?

  • 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-26T03:40:02+00:00Added an answer on May 26, 2026 at 3:40 am

    Don’t create a problem where there isn’t any.

    Create a new dll, and MOVE .cs files that should be shared there. Build it, and have AppA and AppB reference and use that dll.

    BTW, you can add reference from AppA to AppB, or from AppB to AppA, but not at the same time because it will create circular reference.

    And if you want to stick to your idea, LINK your code files as Chris suggested, and use:

    #if APPA
    // code for AppA
    #endif
    

    To have pieces of code compile just in one application. Use project level #defines (project properties) to define APPA and APPB in their respective projects.

    where to insert defines

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

Sidebar

Related Questions

We want to split our large asp.net mvc web application into multiple Visual Studio
Using Java (1.6) I want to split an input string that has components of
I want to split a command line like string in single string parameters. How
I want to split a string like this: abc//def//ghi into a part before and
I want to split this text in to 2 parts with C#.Net windows application.
I want to split string without using split . can anybody solve my problem
I have a string that represents a path to a directory. I want split
abcd+xyz i want to split the string and get left and right components with
I want to Split Single Image in Four Pieces and Display it Like Single
I want to split $path = getenv('PATH'); into its components. How do I determine

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.