-
Notifications
You must be signed in to change notification settings - Fork 32
/
Directory.UnoMetadata.targets
28 lines (24 loc) · 1.34 KB
/
Directory.UnoMetadata.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<Project>
<PropertyGroup>
<Authors Condition="'$(Authors)'=='' or '$(Authors)'=='$(PackageId)' or '$(Authors)'=='$(AssemblyName)'">Uno Platform</Authors>
<Copyright Condition="'$(Copyright)'==''">Copyright (C) 2015-$([System.DateTime]::Now.ToString(`yyyy`)) Uno Platform inc. - all rights reserved</Copyright>
<RepositoryUrl Condition="'$(RepositoryUrl)'==''">$(BUILD_REPOSITORY_URI)</RepositoryUrl>
<Product Condition="'$(Product)'==''">$(AssemblyName) ($(TargetFramework))</Product>
<PackageLicenseExpression Condition="'$(PackageLicenseExpression)'==''">Apache-2.0</PackageLicenseExpression>
<DefaultLanguage Condition="'$(DefaultLanguage)'==''">en-US</DefaultLanguage>
</PropertyGroup>
<Target Name="DownloadAndSetPackageIcon" AfterTargets="Build" Condition="'$(PackageIcon)'==''">
<PropertyGroup>
<IconUrl>https://uno-assets.platform.uno/logos/uno.png</IconUrl>
</PropertyGroup>
<DownloadFile SourceUrl="$(IconUrl)" DestinationFolder="$(IntermediateOutputPath)">
<Output TaskParameter="DownloadedFile" PropertyName="UnoPackageDownloadedIcon" />
</DownloadFile>
<PropertyGroup>
<PackageIcon>$([System.IO.Path]::GetFileName($(UnoPackageDownloadedIcon)))</PackageIcon>
</PropertyGroup>
<ItemGroup>
<None Include="$(UnoPackageDownloadedIcon)" Pack="true" PackagePath="\" Visible="false" />
</ItemGroup>
</Target>
</Project>