How is it possible to build a web service deployment package from script.
I can msbuild /target:rebuild /p:Configuration=Debug “.\MyProject.sln” but it does not build the deployment package.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First you need to set up your deployment package settings (if you already have run “Build Deployment Package” go to Step 2):
go in Project’s Properties -> Package/Publish Web and specify the package location.
If you run this command:
msbuild /T:Packageit will build the deployment package for you using the .csproj in the directory where you run it and putting the package in the location specified in the project’s properties in step 1.
Better run it from the location where your .csproj file is; if the location is different you need to supply the project name:
msbuild <C:\yourLocation\YourProjectName.csproj> /T:PackageEnjoy.