Answer:
This is a typical .Net interview question which is asked to understand if you know how to create deployment packages. When you are done with your application you would like to give your end user a setup package rather than the source code.
The short answer which the interviewer is expecting is that we can use the Visual studio deployment package project. Now the long answer just in case the interviewer gets in to details. So lets understand step by step of how to create a deployment package.
Following are the simple steps for creating setup and deployment for window application:
Step 1: Go to file and click add new project > select other project type > setup and deployment >visual studio installer then select the setup project, below are the sample diagrams which you need to follow.
The default File System editor will appear in the window as shown in the below diagram.
Step 2:Select Application Folder and right click Add>Project Output>select Primary output.
Step 3: If you want to shortcut on desktop then Select User’s Desktop right click on the second window>click create new shortcut>select output file from Application folder>change the file name from primary output which you want.
If you want to shortcut on program menu then Select User’s Programs Menu right click on the second window>click create new shortcut>select output file from Application folder>change the file name from primary output which you want.
If you want to change the Manufactures name and other properties just right click the project goes to properties.
Step 4: Finally Build the Setup1 project.
Exe or installer will be available on the physical path of the project.
Please click here to see more C# / .NET interview questions