Results 1 to 5 of 5

Thread: How to start the application if I dont have the needed references?

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2018
    Posts
    61

    Question How to start the application if I dont have the needed references?

    Hey everyone! Is there any method, to start my .NET app which has in reference 3 library files? My Startup form is a check form, which checks these 3 files, and shows the error message if they are missing. Can I turn off something, to start the app? It's not opening if these are missing. Thank You!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,344

    Re: How to start the application if I dont have the needed references?

    I would think that you'd have to be loading the assemblies dynamically for that to work, which adds another level of complexity. What references are you talking about and why would they be missing in the first place?

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,344

    Re: How to start the application if I dont have the needed references?

    Another option would to provide a second executable that doesn't rely on those references. Start it instead of your "real" application and have it check for the references. If they are not found, it can alert you and, if they are found, it can start the "real" app and close itself. This adds another moving part but it may be the best option.

  4. #4

    Thread Starter
    Member
    Join Date
    Dec 2018
    Posts
    61

    Re: How to start the application if I dont have the needed references?

    I think i will delete this idea, because to load dinamically, it would take a lot of time, and yea, its complex, and in my position, two apps aren't the best mod. But anyway, thank you very much!!

  5. #5
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    39,038

    Re: How to start the application if I dont have the needed references?

    Loading an assembly dynamically doesn't take much time at all, but I'm not quite sure what these files are.
    My usual boring signature: Nothing

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width