CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2008
    Posts
    14

    Shipping .Net Application

    Hello All,

    I have developed a tool using c# 9, .Net 3.5, which has got something to do with our business, electricity distribution

    The solution has got 1 EXE and 4 DLL. In the development environment (VS 2005), The EXE project make references to the DLL projects by adding references.

    as in VC++ projects I thought, this adding references in .net projects, is something like static linking of DLL. so i just gave the EXE to friend of mine to use. And i his machine the exe is reporting some assembly missing error

    Could some one please tell what should i need to do, i order to ship the application to other machines?

    Regards

    RK

  2. #2
    Join Date
    Jun 2008
    Posts
    2,477

    Re: Shipping .Net Application

    The statement "statically linking a DLL" makes absolutely no sense at all. DLL stands for "Dynamic Link Library". You cannot statically link in C#, and you cannot statically link a DLL in C++ either. You can only statically link a static library (usually a .lib file). So, you need to distribute your DLL's with the application,.
    If you liked my post go ahead and give me an upvote so that my epee.... ahem, reputation will grow.

    Yes; I have a blog too - http://the-angry-gorilla.com/

  3. #3
    Join Date
    Nov 2008
    Posts
    14

    Re: Shipping .Net Application

    Hello BigED,
    Thank you very much for educating me..... In fact i meant what you have said, but i havent used proper technical terms..... once again thanks...

    But still I havent got answer for my query, anybody please......
    Regards

  4. #4
    Join Date
    Jun 2001
    Location
    Melbourne/Aus (C# .Net 4.0)
    Posts
    686

    Re: Shipping .Net Application

    Investigate creating a Setup project within the solution. It's fairly straightforward and allows you to create a Setup.exe or App.msi to install your app. It will also take care of installing the correct .NET framework on the User's PC too.

    Right click the Solution in the Solution Explorer and choose Add / New Project, you should find 'Setup Project' under 'Setup and Deployment'....
    Rob
    -
    Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......

  5. #5
    Join Date
    Apr 2010
    Posts
    4

    Re: Shipping .Net Application

    You could also just zip the executable and referenced assemblies and send it off. The person receiving it can just unzip it into a directory and run the executable without problems. This is easy enough if it's just internal distribution. Otherwise I would look at developing a setup project like rliq suggested.

  6. #6
    Join Date
    Jun 2001
    Location
    Melbourne/Aus (C# .Net 4.0)
    Posts
    686

    Re: Shipping .Net Application

    bscar, that is ok, providing the person installing already has the correct version of .NET installed on their machine. Also, a simple Zip does not give the option of adding short cuts to the start menu, desktop etc. Most users like these options as they can configure it the way they like it. It's ok to send a zip file to another developer like you and I, but to send it to a normal user and have them extract it into a suitable directory and the then click on the correct exe file maybe asking too much. At least the users that I know (and love)
    Rob
    -
    Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......

  7. #7
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: Shipping .Net Application



    Some of my end users need help just running the installer.
    Always use [code][/code] tags when posting code.

  8. #8
    Join Date
    Dec 2007
    Posts
    234

    Re: Shipping .Net Application

    We ship using Click Once and still have issues from time to time.


    rliq - depending on which version of VS you have, you can create an Installation Project and include the outputs from your app. In addition, you can then mark the FW as a prerequisite and it will make sure that it is installed before the user attempts to install your app. You may also want to look at ClickOnce publishing options, as that gives a simple interface and allows for automatic updates.

    -tg
    * I don't respond to private requests for help. It's not conducive to the general learning of others.-I also subscribe to all threads I participate, so there's no need to pm when there's an update.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help - how to remove eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to???
    * On Error Resume Next is error ignoring, not error handling(tm). * Use Offensive Programming, not Defensive Programming.
    "There is a major problem with your code, and VB wants to tell you what it is.. but you have decided to put your fingers in your ears and shout 'I'm not listening!'" - si_the_geek on using OERN
    MVP '06-'10

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

Featured