Deployment in ASP.NET MVC

19 Dec 20221 minute to read

This section provides information about deploying ASP.NET MVC applications with the Syncfusion ASP.NET MVC controls.

Refer to ASP.NET MVC Deployment topic for more information.

Publish ASP.NET MVC Application with Visual Studio

  • Right-click on the project in the Solution Explorer and select Publish.

Solution Explorer

  • Then, select the Folder option and click Next to select the publishing target location.

Publish Location

  • Browse and specify the target location.

Target Configuration

  • Then, click Finish and check the configuration as Release by clicking the edit option below the target location.

Release Configuration

  • Then, click Save and Publish.

NOTE

Refer here for publishing the application to Azure App Service using Visual Studio.

Publish ASP.NET MVC Application with CLI

Packing the application and its dependencies into a folder for deployment to a hosting system by using the MSBuild command.

Use the following command to specify the path for the output directory.

msbuild <ProjectName> /p:Configuration=Release /p:outdir="<output directory>"

you can find the published folder in this <output directory>/_PublishedWebsites/<ProjectName> location.

Refer to the MSBuild optional arguments.

If the path is relative, the output directory generated is relative to the project file location, not to the current working directory.

Now, you can host the published folder by using the IIS or Azure app service.

See also