Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- msbuild myproject.csproj
- /t:Build
- /P:Configuration=Test
- /P:Platform=AnyCPU
- /P:DeployOnBuild=True
- /P:DeployTarget=MSDeployPublish
- /P:MsDeployServiceUrl=https://SERVER:8172/MsDeploy.axd
- /P:AllowUntrustedCertificate=True
- /P:MSDeployPublishMethod=WMSvc
- /P:CreatePackageOnPublish=True
- /P:UserName=Username
- /P:Password=Passsword
- /P:DeployIisAppPath="IISAPPPATH"
- Build
- <!-- this is your non-deployment DLL -->
- <!-- Default DeploymentConfiguration to 'Debug' -->
- <DeploymentConfiguration Condition="'$(DeploymentConfiguration)'==''">Debug</DeploymentConfiguartion>
- <Configuration Condition='$(DeploymentConfiguration)'=='Test'">Debug</Configuration>
- /p:DeploymentConfiguration=Test
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' Or '$(Configuration)|$(Platform)' == 'Test|AnyCPU'">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>binRelease</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement