dc stein

dc stein

  • NA
  • 25
  • 31k

C#.net deployment

Jul 27 2011 11:55 PM
  I have a question about deploying a C#.net 2008 windows form application. The solution contains 5 project files where the processing is shared with 10 other project files. The 10 other project files meet the needs of users. (I changed 1 of the 10 project files that meet the needs of users. According to a couple of the users, the project file that I changed can be a shortcut on users desktops.)
 I am wondering what kind of files from each project do you think I need to include in the deployment  package? Is there some kind of a url you think I should use as a reference?

 I am asking this question since there is no documentation for this application at all, and i have never worked with this type if an application before.
 

Answers (2)

0
Zoran Horvat

Zoran Horvat

  • 0
  • 4.5k
  • 747.5k
Jul 28 2011 3:48 AM
One of the projects is the one producing .exe file, which is in fact the application you want to deploy. Find that .exe in its bin/Release folder and there you should find numerous .dll files - those are the libraries referenced by the .exe.

What you need to include in the package is the .exe and all .dll files located in the same bin/Release directory. All other DLLs referenced by this .exe are located in GAC and need not be copied, but need be installed in GAC on the target machine. This is generally true in practice so do not bother about the possibility that some of those DLLs are missing in advance.

Zoran
Accepted Answer
0
dc stein

dc stein

  • 0
  • 25
  • 31k
Jul 28 2011 10:47 AM

Your answer is very helpful, but I still have the following additional questions:

1. Since this solutiion has alot of proejct files in it, I would thinkl there would be a deployment project setup also,would you agree?

2. What I do see in this application is the following in the default project startup file in the postbuild event  is the following:

$(SolutionDir)EnrT.PostIT\$(OutDir)\EnrT.PostIT.exe $(ConfigurationName).

Note: the startup project file is called Alluse'.

The above would translate to: c:\enr\EnrT.PostIT\bin\X86\debug\EnrT.PostIT.exe Debug. Would you think this would point to the

files that are required for deployment?

3. do you think the EnrT.PostIT project file would 'bundle' all the files I need? **Note: I do see some old documentation that there is a .bat files for the network administrator to use when installing the application on various user's desktop.

4. I pulled out the statement '$(SolutionDir)EnrT.PostIT\$(OutDir)\EnrT.PostIT.exe $(ConfigurationName' from the postbuild event since I could not get this application to compile clean. Would you have any ideas what I need to do to figure out why this statement keeps the entire application from building with no errors?