Skip to content

Instantly share code, notes, and snippets.

@TristinDavis
Last active September 9, 2016 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TristinDavis/44f3d1501682f293a5fcefef949269c6 to your computer and use it in GitHub Desktop.
Save TristinDavis/44f3d1501682f293a5fcefef949269c6 to your computer and use it in GitHub Desktop.
CI WebDeploy using MSBuild - Creates WebDeployment package and then deploys that package using the given published profile name
## Deployment Step ##
```
MSBuild.exe C:\Projects\Class.csproj /P:Configuration=Debug /P:DeployOnBuild=true /P:DeployTarget=Package /P:PublishProfile=ClassOnlineProduction /P:_PackageTempDir=C:\packages /P:CreatePackageOnPublish=True /P:VisualStudioVersion=14.0
```
@TristinDavis
Copy link
Author

It's best to create a build and use a publish profile with the same name for both web apps (e.g. it will be deployed to the proper directory)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment