- Publish ASP.NET MVC Application with Visual Studio
- Publish ASP.NET MVC Application with CLI
- See also
Contact Support
Deployment in ASP.NET MVC
4 Dec 20241 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 selectPublish
.
- Then, select the
Folder
option and clickNext
to select the publishing target location.
- Browse and specify the target location.
- Then, click
Finish
and check the configuration as Release by clicking the edit option below the target location.
- Then, click
Save
andPublish
.
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.