diff options
author | wtgodbe <wigodbe@microsoft.com> | 2016-06-01 12:18:33 -0700 |
---|---|---|
committer | wtgodbe <wigodbe@microsoft.com> | 2016-06-01 12:18:33 -0700 |
commit | 762babfed84b8f9923cdbeb2ad1192586d657868 (patch) | |
tree | 371c0244c718389eb2dc3ac493c28dc6a07d9b7b /src/publish.proj | |
parent | 0589dee5247f14dd8a3dc04f5f5404228a4e98d3 (diff) | |
download | coreclr-762babfed84b8f9923cdbeb2ad1192586d657868.tar.gz coreclr-762babfed84b8f9923cdbeb2ad1192586d657868.tar.bz2 coreclr-762babfed84b8f9923cdbeb2ad1192586d657868.zip |
Publish packages into folders named for their configuration
Diffstat (limited to 'src/publish.proj')
-rw-r--r-- | src/publish.proj | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/publish.proj b/src/publish.proj index 8fb771eb7f..d1a0bb4ec8 100644 --- a/src/publish.proj +++ b/src/publish.proj @@ -4,6 +4,21 @@ <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)/%(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> |