Results 1 to 3 of 3

Thread: [2008] How to distribute your Solution without broken references

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    515

    [2008] How to distribute your Solution without broken references

    Too often I see VB.Net demo project solution files not running because of broken references.

    What is the best way to add/deploy/reference dlls to a project so that end users don't face broken refs ?

    Thanks

  2. #2
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Re: [2008] How to distribute your Solution without broken references

    In your solution explorer you push the "Show all files button", then you can see the references folder, select the references that doesnt belong to .net framework and in the properties and set copy local to True...

    I think that this is the way....

    Merry Christmas

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

    Re: [2008] How to distribute your Solution without broken references

    Normally you would view and manipulate references on the References tab of the project properties. All your referenced libraries must be present either in the GAC or the same folder as your EXE for the application to work properly. If Copy Local is False then the assumption is that they will be in the GAC, which is why all the Framework libraries are False. If Copy Local is True then the expectation is that that DLL will be distributed along with the EXE and be in the same folder when the EXE is run.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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