Last active
April 2, 2019 08:16
-
-
Save codingawayy/71af64af003593f121d01b0c5a697160 to your computer and use it in GitHub Desktop.
MSDeploy script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| msbuild "MyApp.Database/MyApp.Database.sqlproj" ` | |
| /t:"Build;Publish" ` | |
| /p:SqlPublishProfilePath="MyApp.Database.automated-tests.publish.xml" ` | |
| /p:UpdateDatabase=True ` | |
| /p:PublishScriptFileName="publish-script.sql" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| msdeploy ^ | |
| -verb:sync ^ | |
| -source:package="MyApp.Web\outdir\_PublishedWebsites\MyApp.Web.csproj_Package\MyApp.Web.csproj.zip" ^ | |
| -dest:auto,computerName=https://myapp.scm.azurewebsites.net:443/msdeploy.axd?site=myapp,userName=$myapp,password=password,authtype=Basic,includeAcls=False ^ | |
| -disableLink:AppPoolExtension ^ | |
| -disableLink:ContentExtension ^ | |
| -disableLink:CertificateExtension ^ | |
| -setParam:name="IIS Web Application Name",value="myapp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| msdeploy ` | |
| -verb:sync ` | |
| -source:package=MyApp.Web\outdir\_PublishedWebsites\MyApp.Web.csproj_Package\MyApp.Web.csproj.zip ` | |
| -dest:'auto,computerName="https://myapp.scm.azurewebsites.net:443/msdeploy.axd?site=myapp",userName="$myapp",password="password",authtype="Basic",includeAcls="False"' ` | |
| -disableLink:AppPoolExtension ` | |
| -disableLink:ContentExtension ` | |
| -disableLink:CertificateExtension ` | |
| -setParam:name=`"IIS Web Application Name`",value="myapp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Runner type: MSBuild | |
| Build file path: MyApp.Web/MyApp.Web.csproj | |
| MSBuild version: Microsoft Build Tools 2017 | |
| Command line parameters: | |
| /p:Configuration="Debug" | |
| /p:OutDir="outdir" | |
| /t:package |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ".nuget/nuget.exe" restore MyApp.sln |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Project | |
| ToolsVersion="15.0" | |
| xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <PropertyGroup> | |
| <Configuration Condition="'$(Configuration)'==''">Debug</Configuration> | |
| </PropertyGroup> | |
| <Target Name="Build"> | |
| <Exec Command="msbuild.exe $(TestProject)\$(TestProject).csproj /verbosity:minimal" /> | |
| <Exec Command="vstest.console.exe $(TestProject)\bin\$(Configuration)\$(TestProject).dll /Logger:trx;LogFileName=$(TestProject).trx" /> | |
| </Target> | |
| </Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment