Skip to content

Commit

Permalink
Pull WebDeployment dependencies through a package referece (dotnet#482)
Browse files Browse the repository at this point in the history
* Pull WebDeployment dependencies through a package referece

* Add build from source condition
  • Loading branch information
joeloff authored and vijayrkn committed Feb 13, 2019
1 parent c54ea7d commit cb575df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion build.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@echo off
xcopy \\aspnetci\share\tools\websdk\WebDeploy\* "%~dp0build\WebDeploy\*" /y /C /e /s /f
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0eng\common\Build.ps1""" -build -restore -pack -test %*"
exit /b %ErrorLevel%
4 changes: 3 additions & 1 deletion src/Publish/Package/Microsoft.NET.Sdk.Publish.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
<PackagePath>tools\net46</PackagePath>
</Content>

<Content Include="$(RepoRoot)\build\WebDeploy\**\*.*" Condition=" '$(DotNetBuildFromSource)' != 'true' ">
<Content Include="$(ArtifactsBinDir)\Microsoft.NET.Sdk.Publish.Tasks\$(Configuration)\net46\$(RuntimeIdenfier)\Microsoft.Web.Deployment.dll;
$(ArtifactsBinDir)\Microsoft.NET.Sdk.Publish.Tasks\$(Configuration)\net46\$(RuntimeIdenfier)\Microsoft.Web.Delegation.dll"
Condition=" '$(DotNetBuildFromSource)' != 'true' ">
<Pack>true</Pack>
<PackagePath>tools\net46</PackagePath>
</Content>
Expand Down
1 change: 1 addition & 0 deletions src/Publish/Tasks/Microsoft.NET.Sdk.Publish.Tasks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<PackageReference Include="Microsoft.WebSdk.WebDeploy" Version="1.0.0" />
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
Expand Down

0 comments on commit cb575df

Please # to comment.