Build and Publish (ASP.NET Web Application) using c# in Button_Click event
NickName:Thirumurugan.D Ask DateTime:2015-01-27T18:30:42

Build and Publish (ASP.NET Web Application) using c# in Button_Click event

I want to publish the asp.net(web Application), when i click the button(Button_Click) Event.

As per below MSBuild script successfully published using VS2008 comment prompt at Run as administrator.

Note: msbuild D:\Test.sln /p:DeployOnBuild=true /p:OutDir= D:\Test_Publish_Folder\

how to call the above msbuild command using c# in Button_Click event?

Copyright Notice:Content Author:「Thirumurugan.D」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/28168265/build-and-publish-asp-net-web-application-using-c-sharp-in-button-click-event

More about “Build and Publish (ASP.NET Web Application) using c# in Button_Click event” related questions

Build and Publish (ASP.NET Web Application) using Microsoft.Build.Engine using c#

I want to Build a VS2008 project (ASP.NET Web Application) and then publish using Microsoft.Build.Engine. I have so far successfully managed to BUild the project. But i am unable to Publish it to a

Show Detail

Build and Publish (ASP.NET Web Application) using c# in Button_Click event

I want to publish the asp.net(web Application), when i click the button(Button_Click) Event. As per below MSBuild script successfully published using VS2008 comment prompt at Run as administrator....

Show Detail

How to publish ASP.NET Web Application with Angular 4 from MS Visual Studio

I have a web application that uses ASP.NET (server-side) with Angular 4 (client-side). The project was created in MS Visual Studio as a ASP.NET Web Application. When I want to publish my web applic...

Show Detail

Build and publish C# .NET Web App via command line

I need to be able to generically and separately build and publish C# ASP.NET Web Applications. Ideally, I would like to use MSBuild to build the application, and if that succeeds, I would like to s...

Show Detail

How to exclude class of another project to build or publish in ASP.Net c#

Is there any way to exclude class of another class Library project to build or publish in ASP.Net application using c#? Actually I have three project in one solution two is web application and one...

Show Detail

Asp.net Web Site build and Publish

How to build and publish the ASP.NET web site(Microsoft Vishul Studio->File->New->Website) using Cruise Control.net. Actually, ASP.NET Web site doesnot contain .csproj and .sln file. Please Provi...

Show Detail

How do I publish a Asp.NET web application using MSBuild?

I am trying to publish an Asp.net MVC web application locally using the NAnt and MSBuild. This is what I am using for my NAnt target; <target name="publish-artifacts-to-build"> <msbuild

Show Detail

Publish console application via command line using specific publish profile

I try to build and publish my .NET Core applications on the command line using predefined publish profiles. For a ASP.NET Core application this (taken from here) works: dotnet build -c Release /p:

Show Detail

Deploy ASP.NET Web Application using Publish-AzWebApp

I want to deploy asp.net Web App on Azure. I want to use Publish-AzWebApp cmdlet for this. Can this be done? I have tried building the Web App using MSBuild and then zipping the artifacts created a...

Show Detail

Publish WCF Service (or ASP.NET Web Application) using command line

I would like to simulate "Publish..." menu item from WCF Service project (or ASP.NET Web Application or...) context menu in Visual Studio 2008. I do not have a need to publish it to a running IIS

Show Detail