Skip to content

Commit

Permalink
Add nicer metadata to our NuGet packages (#11219)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfversluis authored Nov 11, 2022
1 parent b9cd0f7 commit b2c66e4
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 4 deletions.
Binary file added Assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion src/Controls/Foldable/src/Controls.Foldable.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@
<AssemblyName>Microsoft.Maui.Controls.Foldable</AssemblyName>
<RootNamespace>Microsoft.Maui.Controls.Foldable</RootNamespace>
<WarningsNotAsErrors>BI1234</WarningsNotAsErrors>
<IsPackable>true</IsPackable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<UseMaui Condition=" '$(UseWorkload)' == 'true' ">true</UseMaui>

<!-- Add specifics for this NuGet -->
<IsPackable>True</IsPackable>
<RepositoryType>git</RepositoryType>
<PackageTags>dotnet-maui;maui;foldable;android;surface-duo</PackageTags>
<Title>.NET MAUI Foldable</Title>
<Description>.NET MAUI Foldable provides additional APIs to better support foldable mobile devices.</Description>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>
<Import Project="$(MauiNuSpecDirectory)Microsoft.Maui.Controls.MultiTargeting.targets" />
<ItemGroup Condition=" '$(UseMaui)' != 'true' ">
Expand All @@ -27,4 +34,9 @@
<PackageReference Include="Xamarin.AndroidX.Legacy.Support.V4" />
<PackageReference Include="Xamarin.AndroidX.Window.WindowJava" />
</ItemGroup>

<!-- Add icon for NuGet -->
<ItemGroup>
<None Include="..\..\..\..\Assets\icon.png" PackagePath="icon.png" Pack="true" />
</ItemGroup>
</Project>
15 changes: 13 additions & 2 deletions src/Controls/Maps/src/Controls.Maps.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms)</TargetFrameworks>
<AssemblyName>Microsoft.Maui.Controls.Maps</AssemblyName>
<RootNamespace>Microsoft.Maui.Controls.Maps</RootNamespace>
<IsPackable>true</IsPackable>
<Nullable>enable</Nullable>
<_MauiDesignDllBuild Condition=" '$(OS)' != 'Unix' ">True</_MauiDesignDllBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591;RS0041;RS0026;RS0027;RS0022</NoWarn>

<!-- Add specifics for this NuGet -->
<IsPackable>True</IsPackable>
<RepositoryType>git</RepositoryType>
<PackageTags>dotnet-maui;maui;maps;map;ios;android;macos</PackageTags>
<Title>.NET MAUI Maps</Title>
<Description>.NET MAUI Maps provides a map control for .NET MAUI apps.</Description>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>

<ItemGroup>
Expand All @@ -18,5 +25,9 @@
</ItemGroup>

<Import Project="$(MauiSrcDirectory)PublicAPI.targets" />


<!-- Add icon for NuGet -->
<ItemGroup>
<None Include="..\..\..\..\Assets\icon.png" PackagePath="icon.png" Pack="true" />
</ItemGroup>
</Project>
14 changes: 13 additions & 1 deletion src/Core/maps/src/Maps.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@
<RootNamespace>Microsoft.Maui.Maps</RootNamespace>
<AssemblyName>Microsoft.Maui.Maps</AssemblyName>
<Nullable>enable</Nullable>
<IsPackable>true</IsPackable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591;RS0041;RS0026;RS0027</NoWarn>

<!-- Add specifics for this NuGet -->
<IsPackable>True</IsPackable>
<RepositoryType>git</RepositoryType>
<PackageTags>dotnet-maui;maui;maps;map;ios;android;macos</PackageTags>
<Title>.NET MAUI Maps Core</Title>
<Description>.NET MAUI Maps provides a map control for .NET MAUI apps. This only contains the core types. If you want the Map control, please install the Microsoft.Maui.Controls.Maps package.</Description>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>

<Import Project="$(MauiNuSpecDirectory)Microsoft.Maui.Controls.MultiTargeting.targets" />
Expand All @@ -28,4 +35,9 @@
</ItemGroup>

<Import Project="$(MauiSrcDirectory)PublicAPI.targets" />

<!-- Add icon for NuGet -->
<ItemGroup>
<None Include="..\..\..\..\Assets\icon.png" PackagePath="icon.png" Pack="true" />
</ItemGroup>
</Project>

0 comments on commit b2c66e4

Please sign in to comment.