diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2016-11-23 19:09:09 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2016-11-23 19:09:09 +0900 |
commit | 4b4aad7217d3292650e77eec2cf4c198ea9c3b4b (patch) | |
tree | 98110734c91668dfdbb126fcc0e15ddbd93738ca /src/publish.proj | |
parent | fa45f57ed55137c75ac870356a1b8f76c84b229c (diff) | |
download | coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.gz coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.bz2 coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.zip |
Imported Upstream version 1.1.0upstream/1.1.0
Diffstat (limited to 'src/publish.proj')
-rw-r--r-- | src/publish.proj | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/publish.proj b/src/publish.proj new file mode 100644 index 0000000000..66aeb7e5e1 --- /dev/null +++ b/src/publish.proj @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> + <Import Project="$(ToolsDir)PublishContent.targets" /> + <Import Project="$(ToolsDir)versioning.targets" /> + + <!-- gathers the items to be published --> + <Target Name="GatherItemsForPattern"> + <Error Condition="'$(PublishPattern)' == ''" Text="Please specify a value for PublishPattern using standard msbuild 'include' syntax." /> + <ItemGroup> + <ForPublishing Include="$(PublishPattern)" /> + </ItemGroup> + <!-- add relative blob path metadata --> + <ItemGroup> + <ForPublishing> + <RelativeBlobPath>$(__BuildType)/%(RecursiveDir)%(Filename)%(Extension)</RelativeBlobPath> + </ForPublishing> + </ItemGroup> + <Error Condition="'@(ForPublishing)' == ''" Text="No items were found matching pattern '$(PublishPattern)'." /> + </Target> + + <PropertyGroup> + <PublishPattern Condition="'$(PublishPattern)' == ''">$(PackagesBinDir)**\*.nupkg</PublishPattern> + </PropertyGroup> + + <Target Name="CreateContainerName" + DependsOnTargets="CreateVersionFileDuringBuild" + Condition="'$(ContainerName)' == ''"> + <PropertyGroup> + <ContainerName>coreclr-$(PreReleaseLabel)-$(BuildNumberMajor)-$(BuildNumberMinor)</ContainerName> + </PropertyGroup> + </Target> + + <Target Name="Build" DependsOnTargets="CreateContainerName;UploadToAzure" /> +</Project>
\ No newline at end of file |