Advertisement
Guest User

Untitled

a guest
Apr 17th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. msbuild myproject.csproj
  2. /t:Build
  3. /P:Configuration=Test
  4. /P:Platform=AnyCPU
  5. /P:DeployOnBuild=True
  6. /P:DeployTarget=MSDeployPublish
  7. /P:MsDeployServiceUrl=https://SERVER:8172/MsDeploy.axd
  8. /P:AllowUntrustedCertificate=True
  9. /P:MSDeployPublishMethod=WMSvc
  10. /P:CreatePackageOnPublish=True
  11. /P:UserName=Username
  12. /P:Password=Passsword
  13. /P:DeployIisAppPath="IISAPPPATH"
  14.  
  15. Build
  16.  
  17. <!-- this is your non-deployment DLL -->
  18. <!-- Default DeploymentConfiguration to 'Debug' -->
  19. <DeploymentConfiguration Condition="'$(DeploymentConfiguration)'==''">Debug</DeploymentConfiguartion>
  20. <Configuration Condition='$(DeploymentConfiguration)'=='Test'">Debug</Configuration>
  21.  
  22. /p:DeploymentConfiguration=Test
  23.  
  24. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' Or '$(Configuration)|$(Platform)' == 'Test|AnyCPU'">
  25. <DebugType>pdbonly</DebugType>
  26. <Optimize>true</Optimize>
  27. <OutputPath>binRelease</OutputPath>
  28. <DefineConstants>TRACE</DefineConstants>
  29. <ErrorReport>prompt</ErrorReport>
  30. <WarningLevel>4</WarningLevel>
  31. </PropertyGroup>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement