Create a batch file for publishing an ASP.net website

I created a batch file, but it is not published. Here is my script: -

set msbuildpath=C:\Windows\Microsoft.NET\Framework\v4.0.30319 "%msbuildpath%\msbuild" "MyWeb.sln" /t:ReBuild /p:Configuration=Release/p:DeployOnBuild=true /p:PublishProfile=D:\BlaBla\SourceCode\blabla\Properties\PublishProfiles\Pub_Test.pubxml pause 

What is wrong here?

+6
source share
1 answer

Hi, after going through a lot of fiction, finally I got my decision.

 C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild MyWeb.csproj /p:DeployOnBuild=true /p:PublishProfile=D:\BlaBla\SourceCode\blabla\Properties\PublishProfiles\Pub_Test.pubxml /p:Password=myPassWord /p:AllowUntrustedCertificate=true /p:VisualStudioVersion=11.0 

It unfolds for me.

+2
source

All Articles