Skip to content

Commit 92fe267

Browse files
authored
Add icon, license, and source link to nuget. (#7)
1 parent ec4a171 commit 92fe267

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

icon.png

28.6 KB
Loading

src/Shared.Build.props

+24-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<Authors>Community Toolkit</Authors>
5-
<Company>Community Toolkit</Company>
5+
<Company>.NET Foundation</Company>
66
<Copyright>(c) .NET Foundation and Contributors. All rights reserved.</Copyright>
77
<LicenseUrl>https://github.com/CommunityToolkit/Datasync/blob/main/LICENSE.md</LicenseUrl>
8+
<PackageIcon>icon.png</PackageIcon>
9+
<PackageIconUrl>https://github.com/CommunityToolkit/Datasync/blob/main/icon.png</PackageIconUrl>
810
<PackageLicenseExpression>MIT</PackageLicenseExpression>
911
<PackageProjectUrl>https://github.com/CommunityToolkit/Datasync</PackageProjectUrl>
1012
<PackageReadmeFile>README.md</PackageReadmeFile>
@@ -26,7 +28,28 @@
2628
<TargetFramework>net8.0</TargetFramework>
2729
</PropertyGroup>
2830

31+
<PropertyGroup>
32+
<IsPackable>true</IsPackable>
33+
<IsPublishable>true</IsPublishable>
34+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
35+
</PropertyGroup>
36+
2937
<ItemGroup>
3038
<None Include="$(MSBuildThisFileDirectory)\..\README.md" PackagePath="README.md" Pack="True" />
39+
<None Include="$(MSBuildThisFileDirectory)\..\LICENSE.md" PackagePath="LICENSE.md" Pack="True" />
40+
<None Include="$(MSBuildThisFileDirectory)\..\icon.png" PackagePath="icon.png" Pack="True" />
3141
</ItemGroup>
42+
43+
<Choose>
44+
<When Condition="'$(SourceLinkEnabled)' != 'false'">
45+
<PropertyGroup>
46+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
47+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
48+
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
49+
</PropertyGroup>
50+
<ItemGroup>
51+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
52+
</ItemGroup>
53+
</When>
54+
</Choose>
3255
</Project>

0 commit comments

Comments
 (0)