Skip to content

Commit

Permalink
Merge pull request dotnet#4 from aspnet/msdeploy
Browse files Browse the repository at this point in the history
Adding Support for publishing using MsDeploy
  • Loading branch information
vijayrkn authored Aug 26, 2016
2 parents 6731e48 + 12ed7fd commit 31709ee
Show file tree
Hide file tree
Showing 16 changed files with 5,050 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ Copyright (C) Microsoft Corporation. All rights reserved.
ParameterName="PublishSiteName"
ParameterValue="$(PublishSiteName)"/>

<ValidateParameter
ParameterName="UserName"
ParameterValue="$(UserName)"/>

<ValidateParameter
ParameterName="Password"
ParameterValue="$(Password)"/>


<PropertyGroup>
<PublishUrl Condition=" '$(PublishUrl)'=='' ">https://{0}.scm.azurewebsites.net/api/{1}</PublishUrl>
<DeployIndividualFiles Condition=" '$(DeployIndividualFiles)' != 'true'">false</DeployIndividualFiles>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ Copyright (C) Microsoft Corporation. All rights reserved.
ParameterName="MsDeployServiceUrl"
ParameterValue="$(MsDeployServiceUrl)"/>

<ValidateParameter
ParameterName="DeployIisAppPath"
ParameterValue="$(DeployIisAppPath)"/>

<ValidateParameter
ParameterName="UserName"
ParameterValue="$(UserName)"/>

<ValidateParameter
ParameterName="Password"
ParameterValue="$(Password)"/>

<!-- Normalize service url such as convert a server name to format like https://<server>:8172/msdeploy.axd-->
<NormalizeServiceUrl ServiceUrl="$(MsDeployServiceUrl)" UseWMSVC="true" UseRemoteAgent="false">
<Output TaskParameter="ResultUrl" PropertyName="MsDeployServiceUrl" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ Copyright (C) Microsoft Corporation. All rights reserved.
<Import Project="$(DotNetPublishingCollectFilesDirectory)Microsoft.DotNet.$(PublishProjectType).Publishing.CollectFiles.targets"/>

<!-- Extension points for pre-publish and post-publish events-->
<Target Name="BeforePublish" />
<Target Name="AfterPublish" />
<Target Name="PrePublish" />
<Target Name="PostPublish" />
<Target Name="BeforeCollectFiles" />
<Target Name="AfterCollectFiles" />
<Target Name="BeforePublishFiles" />
Expand Down Expand Up @@ -96,9 +96,9 @@ Copyright (C) Microsoft Corporation. All rights reserved.
-->
<PropertyGroup>
<DotNetPublishDependsOn>
BeforePublish;
PrePublish;
CorePublish;
AfterPublish;
PostPublish;
</DotNetPublishDependsOn>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<Password></Password>
</PropertyGroup>

<!-- Publish extensibility -->
<!--
<Target Name="BeforePublish" />
<!-- To modify your publish process, add your task inside one of the targets below and uncomment it.
<Target Name="PrePublish" />
<Target Name="BeforeCollectFiles" />
<Target Name="AfterCollectFiles" >
-->
<!-- Removing files from the publish list -->
<!-- Example: Removing files from the publish list -->
<!--
<ItemGroup>
<DotNetPublishFiles Remove="@(DotNetPublishFiles)" Condition="'%(Extension)' == '.user'" />
</ItemGroup>
-->
<!-- Adding files to the publish list -->
<!-- Example: Adding files to the publish list -->
<!--
<ItemGroup>
<DotNetPublishFiles Include="@(None)">
Expand All @@ -37,5 +37,5 @@ by editing this MSBuild file. In order to learn more about this please visit htt
</Target>
<Target Name="BeforePublishFiles" />
<Target Name="AfterPublishFiles" />
<Target Name="AfterPublish" />-->
<Target Name="PostPublish" />-->
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,18 @@ by editing this MSBuild file. In order to learn more about this please visit htt
</PropertyGroup>


<!-- Publish extensibility --><!--
<Target Name="BeforePublish" />
<!-- To modify your publish process, add your task inside one of the targets below and uncomment it.
<Target Name="PrePublish" />
<Target Name="BeforeCollectFiles" />
<Target Name="AfterCollectFiles" >
--><!-- Removing files from the publish list --><!--
-->
<!-- Example: Removing files from the publish list --><!--
<ItemGroup>
<DotNetPublishFiles Remove="@(DotNetPublishFiles)" Condition="'%(Extension)' == '.user'" />
</ItemGroup>
--><!-- Adding files to the publish list --><!--
--><!-- Example: Adding files to the publish list --><!--
<ItemGroup>
<DotNetPublishFiles Include="@(None)">
<DestinationRelativePath>%(Filename)%(Extension)</DestinationRelativePath>
Expand All @@ -30,6 +32,6 @@ by editing this MSBuild file. In order to learn more about this please visit htt
</Target>
<Target Name="BeforePublishFiles" />
<Target Name="AfterPublishFiles" />
<Target Name="AfterPublish" />-->
<Target Name="PostPublish" />-->

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<Password></Password>
</PropertyGroup>

<!-- Publish extensibility -->
<!--
<Target Name="BeforePublish" />
<!-- To modify your publish process, add your task inside one of the targets below and uncomment it.
<Target Name="PrePublish" />
<Target Name="BeforeCollectFiles" />
<Target Name="AfterCollectFiles" >
-->
<!-- Removing files from the publish list -->
<!-- Example: Removing files from the publish list -->
<!--
<ItemGroup>
<DotNetPublishFiles Remove="@(DotNetPublishFiles)" Condition="'%(Extension)' == '.user'" />
</ItemGroup>
-->
<!-- Adding files to the publish list -->
<!-- Example: Adding files to the publish list -->
<!--
<ItemGroup>
<DotNetPublishFiles Include="@(None)">
Expand All @@ -34,5 +34,5 @@ by editing this MSBuild file. In order to learn more about this please visit htt
</Target>
<Target Name="BeforePublishFiles" />
<Target Name="AfterPublishFiles" />
<Target Name="AfterPublish" />-->
<Target Name="PostPublish" />-->
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<IgnoreProjectGuid>false</IgnoreProjectGuid>
</PropertyGroup>

<!-- Publish extensibility -->
<!--
<Target Name="BeforePublish" />
<!-- To modify your publish process, add your task inside one of the targets below and uncomment it.
<Target Name="PrePublish" />
<Target Name="BeforeCollectFiles" />
<Target Name="AfterCollectFiles" >
-->
<!-- Removing files from the publish list -->
<!-- Example: Removing files from the publish list -->
<!--
<ItemGroup>
<DotNetPublishFiles Remove="@(DotNetPublishFiles)" Condition="'%(Extension)' == '.user'" />
</ItemGroup>
-->
<!-- Adding files to the publish list -->
<!-- Example: Adding files to the publish list -->
<!--
<ItemGroup>
<DotNetPublishFiles Include="@(None)">
Expand All @@ -35,5 +35,5 @@ by editing this MSBuild file. In order to learn more about this please visit htt
</Target>
<Target Name="BeforePublishFiles" />
<Target Name="AfterPublishFiles" />
<Target Name="AfterPublish" />-->
<Target Name="PostPublish" />-->
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,20 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<IgnoreProjectGuid>false</IgnoreProjectGuid>
</PropertyGroup>

<!-- Publish extensibility -->
<!--
<Target Name="BeforePublish" />


<!-- To modify your publish process, add your task inside one of the targets below and uncomment it.
<Target Name="PrePublish" />
<Target Name="BeforeCollectFiles" />
<Target Name="AfterCollectFiles" >
-->
<!-- Removing files from the publish list -->
<!--
<!-- Example: Removing files from the publish list --><!--
<ItemGroup>
<DotNetPublishFiles Remove="@(DotNetPublishFiles)" Condition="'%(Extension)' == '.user'" />
</ItemGroup>
-->
<!-- Adding files to the publish list -->
<!--
--><!-- Example: Adding files to the publish list --><!--
<ItemGroup>
<DotNetPublishFiles Include="@(None)">
<DestinationRelativePath>%(Filename)%(Extension)</DestinationRelativePath>
Expand All @@ -42,5 +41,5 @@ by editing this MSBuild file. In order to learn more about this please visit htt
</Target>
<Target Name="BeforePublishFiles" />
<Target Name="AfterPublishFiles" />
<Target Name="AfterPublish" />-->
<Target Name="PostPublish" />-->
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,27 @@
<Compile Include="Kudu\KuduMetadata.cs" />
<Compile Include="Kudu\KuduVfsDeploy.cs" />
<Compile Include="Kudu\KuduZipDeploy.cs" />
<Compile Include="MsDeploy\CommonUtility.cs" />
<Compile Include="MsDeploy\DynamicAssembly.cs" />
<Compile Include="MsDeploy\IVSMSDeployTask.cs" />
<Compile Include="MsDeploy\MSDeploy.cs" />
<Compile Include="MsDeploy\NormalizeServiceUrl.cs" />
<Compile Include="MsDeploy\VsMsdeploy.cs" />
<Compile Include="MsDeploy\VsMSDeployObject.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SR.Designer.cs" />
<Compile Include="ValidateParameter.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="SR.resx" />
<Compile Include="SR.Designer.cs">
<DependentUpon>SR.resx</DependentUpon>
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
</Compile>
<EmbeddedResource Include="SR.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>SR.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
Loading

0 comments on commit 31709ee

Please sign in to comment.