7

I have created a batch file, but it is not publishing. 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?

1 Answer 1

2

Hi after going through many articals, finally I got my solution.

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

This is wroking for me.

Sign up to request clarification or add additional context in comments.

1 Comment

With this , only build is happening for me. Please help

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.