Sponsored Ad

Sunday, July 24, 2011

Publish and Deploy Code using Visual Studio

Visual studio provide very easy and good feature to publish ad deploy the code  and dlls. Follow the below steps to deploy and publish:

Step 1: Right click on project and select the publish option

Publish and Deploy Code using Visual Studio

Step 2: Select the Directory where you want to publish

There is 4 kind of location

  1. Disk Path
  2. File Share
  3. FTP Server
  4. Web site

Select as per your requirement.

Publish and Deploy Code using Visual Studio

Step 3: Select How user will install applcation

Publish and Deploy Code using Visual Studio

Step 4: Select option for application to check for updates.

Publish and Deploy Code using Visual Studio

Step 5: Click on Finish and publish the solution.

Publish and Deploy Code using Visual Studio

Search/Replace Text in Entire Solution by using Visual Studio Search

Visual studio provide different kind of search to find text in file(s) or selected File(s). The search available with VS are:

  1. Quick Find
  2. Quick Replace
  3. Find in files
  4. Replace in Files
  5. Find Symbols

You do any of the above search in visual studio.

To do the search in entire solution Go to Edit Menu –> Find and Replace –> Find in Files

Search/Replace Text in Entire Solution by using Visual Studio Search

Find in Files Search:

Search/Replace Text in Entire Solution by using Visual Studio Search 

Shortcut key to Find in Files : CTRL + SHIFT + F

How to Format Selected Source Code in Visual Studio Editor

Visual studio provide a very good functionality to format your source code automatically. If you code is not well formatted don't worry. just by a single click you can align all code. follow the below steps to do that.

Step 1: Go to Edit menu option

Step 2: Select Advanced and then select Format Document

Step 3: There is another option Format  Selection under Advanced , Please not that this is applicable for selected text only, so first select the option and then click on this option.

Shortcut keys for above functionality:

Format Document CTRL + E + D

Format  Selection CTRL + E + F

How to Format Selected Source Code in Visual Studio Editor

Sponsored Ad

Development Updates