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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:48:04+00:00 2026-05-11T16:48:04+00:00

I have the following output structure of executables in my solution: %ProgramFiles% | +-[MyAppName]

  • 0

I have the following output structure of executables in my solution:

%ProgramFiles%
    |
    +-[MyAppName]
          |
          +-[Client]
          |     |
          |     +-(EXE & several DLL assemblies)
          |
          +-[Common]
          |     |
          |     +-[Schema Assemblies]
          |     |     |
          |     |     +-(several DLL assemblies)
          |     |
          |     +-(several DLL assemblies)
          |
          +-[Server]
                |
                +-(EXE & several DLL assemblies)

Each project in solution references different DLL assemblies, some of which are outputs from other projects in solution, and others are plain 3rd-party assemblies. For example, [Client] EXE might reference an assembly in [Common], which is in a different directory branch.

All references have “Copy Local” set to false, to mirror the layout of the files in the final installed application.

Now, if I take a look at reference properties in the Visual Studio IDE, I see that “Path” of every reference is absolute and that it corresponds to the actual output location of the assembly. That’s understandable and correct. As expected, solution compiles and runs just fine.

What I don’t understand is, why everything seems to work even when I close the IDE, rename the [MyAppName] directory and run the [Client] EXE manually? How does the runtime find the assemblies if the reference paths aren’t the same as they were at the time of linking?

To be clear – this is actually exactly what I’m after: a semi-dispersed set of application files that run fine regardless of where the [MyAppName] directory is located or even what it’s named. I’d just like to know, how and why this works without any specific path resolution on my part.

I’ve read the answers to this similar question, but I still don’t get it.

Help much appreciated!

  • 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-11T16:48:04+00:00Added an answer on May 11, 2026 at 4:48 pm

    AFAIK the only solution is to have at least “stub” exes in MyAppBase and then define subdirectories as sources for DLL’s in app.config for each application.

    NTFS does support “mounting” other directories (ie. hard links) as subdirectories, but they’re very unautomatic and since I’ve not tried going that way except theoretizing, I can’t tell if that would work as a hack.

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

Sidebar

Related Questions

Let's say we have a solution with the following structure: Project.DAL - Data access
I want have the following output: <?xml version=1.0 encoding=UTF-8?> <structure:structuralDataRoot xmlns:register=http://www.test.ch/register/1 xmlns:structure=http://test.ch/structure/1 > <structure:tester>ZH</structure:tester>
I have the following query in iSeries SQL which I output to a file.
I have following table structure: Table: Plant PlantID: Primary Key PlantName: String Table: Party
I am using MySQL 5.0. I have table with following structure and data. CREATE
I have a zip file with the following structure apache-tomcat-6.0.26.zip apache-tomcat-6.0.26/webapps/manager I want to
I have the following simplified XML structure: <?xml version="1.0" encoding="UTF-8"?> <ExportData> <TransportHeader> <Timestamp>2011-01-16 06:00:33</Timestamp>
we have following table (output is already ordered and separated for understanding): | PK
I have a repeater that outputs divs like the following for every item returned
I have following situation: I have loged user, standard authentication with DB table $authAdapter

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.