Skip to content

Commit

Permalink
Add icon, license, and source link to nuget. (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianhall authored May 1, 2024
1 parent ec4a171 commit 92fe267
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 24 additions & 1 deletion src/Shared.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Authors>Community Toolkit</Authors>
<Company>Community Toolkit</Company>
<Company>.NET Foundation</Company>
<Copyright>(c) .NET Foundation and Contributors. All rights reserved.</Copyright>
<LicenseUrl>https://github.com/CommunityToolkit/Datasync/blob/main/LICENSE.md</LicenseUrl>
<PackageIcon>icon.png</PackageIcon>
<PackageIconUrl>https://github.com/CommunityToolkit/Datasync/blob/main/icon.png</PackageIconUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/CommunityToolkit/Datasync</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
Expand All @@ -26,7 +28,28 @@
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<PropertyGroup>
<IsPackable>true</IsPackable>
<IsPublishable>true</IsPublishable>
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)\..\README.md" PackagePath="README.md" Pack="True" />
<None Include="$(MSBuildThisFileDirectory)\..\LICENSE.md" PackagePath="LICENSE.md" Pack="True" />
<None Include="$(MSBuildThisFileDirectory)\..\icon.png" PackagePath="icon.png" Pack="True" />
</ItemGroup>

<Choose>
<When Condition="'$(SourceLinkEnabled)' != 'false'">
<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>
</When>
</Choose>
</Project>

0 comments on commit 92fe267

Please sign in to comment.