Share via


How to: Deploy Your Visual C# Express Application

Visual C# Express Edition provides a ClickOnce deployment option, which makes it easy for you to share your finished application.

To publish to a folder

  1. In Solution Explorer, select the application project.

  2. On the Build menu, click Publish Projectname.

    The Publish Wizard will be launched.

  3. On the Where do you want to publish the application? page, type a valid file path, and click Next to continue.

    Note

    If users will install the application from the Web, the file path must correspond to the URL that the users will access. For example, if the users will install from http:\\www.microsoft.com\myapplication\publish.htm, you would enter the path c:\inetpub\wwwroot\myapplication.

  4. On the How will users install the application? page, select the location where users will go to install the application:

    • If users will install from a Web site, click From a Web site, and type a URL that corresponds to the file path entered in the previous step, and then click Next.

    • If users will install the application directly from the file share, click From a UNC path or file share, and then click Next.

    • If users will install from removable media, click From a CD-ROM or DVD-ROM, and then click Next.

  5. On the Will the application be available offline? page, click the appropriate option:

    • If you want to enable the application to be run when the user is disconnected from the network, click Yes, this application will be available online or offline. A shortcut on the Start menu will be created for the application.

    • If you want to run the application directly from the publish location, click No, this application is only available online. A shortcut on the Start menu will not be created.

  6. Click Next to continue, and then click Finish to publish the application.

    Publishing status is displayed in the status notification area of the taskbar.

To publish to the Web

  1. In Solution Explorer, select the application project.

  2. Right-click the project node, and click Publish.

    The Publish Wizard will be launched.

  3. On the Where do you want to publish the application? page, type a valid URL using the format https://www.microsoft.com/foldername, and then click Next.

  4. On the Will the application be available offline? page, click the appropriate option:

    • If you want to enable the application to be run when the user is disconnected from the network, click Yes, this application will be available online or offline. A shortcut on the Start menu will be created for the application.

    • If you want to run the application directly from the publish location, click No, this application is only available online. A shortcut on the Start menu will not be created.

  5. Click Finish to publish the application.

    Publishing status is displayed in the status notification area of the taskbar.

See Also

Tasks

How to: Create a New Visual C# Express Application

Other Resources

Visual C# Express

Using the Visual C# Express IDE