none
Assembly physical location after Publishing

    Question

  •  

    I have a Windows application that I published on a shared server.  When I ran setup, it creates the shortcut

    into my workstation?  Where does the assembly resides?  I cannot seem to find it in my PC.  I deleted the files

    from the server and my program still works?

    Thursday, September 20, 2007 6:22 PM

Answers

  •  

    Hi busyme,

    It seems that you have published your application via a setup project. The setup deployment will install the application into a client machine. Users can choose where to install the application. The default location is ‘[ProgramFilesFolder][Manufacturer]\[ProductName]’. However, you can get the application’s absolute path using the following code.

    Code Snippet
                string exePath = Application.StartupPath;

     

    Hope this helps.
    Best regards.
    Rong-Chun Zhang

    Tuesday, September 25, 2007 9:51 AM