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