Skip to content

Commit 0373c28

Browse files
authored
Add NuGet package information (#18197)
1 parent a73f796 commit 0373c28

24 files changed

+189
-65
lines changed

Assets/aspnet-icon.png

6.84 KB
Loading

Directory.Build.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,17 +157,21 @@
157157
<GitDefaultBranch>main</GitDefaultBranch>
158158
</PropertyGroup>
159159
<PropertyGroup>
160+
<!-- NuGet package information -->
160161
<PackageLicenseExpression>MIT</PackageLicenseExpression>
161162
<Authors>Microsoft</Authors>
162163
<NeutralLanguage>en</NeutralLanguage>
163164
<RepositoryUrl>https://github.com/dotnet/maui.git</RepositoryUrl>
165+
<RepositoryType>git</RepositoryType>
164166
<PackageProjectUrl>https://github.com/dotnet/maui</PackageProjectUrl>
165167
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
166168
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
167169
<PackageVersion>$(DotNetVersionBand)-dev</PackageVersion>
168170
<PackageOutputPath>$(MSBuildThisFileDirectory)artifacts</PackageOutputPath>
169171
<LicenseFile>$(MSBuildThisFileDirectory)LICENSE.TXT</LicenseFile>
172+
<PackageIconFile>$(MSBuildThisFileDirectory)Assets\icon.png</PackageIconFile>
170173
<PackageThirdPartyNoticesFile>$(MSBuildThisFileDirectory)THIRD-PARTY-NOTICES.TXT</PackageThirdPartyNoticesFile>
174+
<DefaultPackageTags>dotnet-maui;dotnet;maui;cross-platform;ios;android;macos;maccatalyst;windows;winui;tizen</DefaultPackageTags>
171175
<ContinuousIntegrationBuild Condition=" '$(CI)' == 'true' ">true</ContinuousIntegrationBuild>
172176
</PropertyGroup>
173177
<!-- This target is replaced by GitInfo when restored. Allows Versions.targets to rely on it before restore. -->

Directory.Build.targets

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,38 @@
7878
-->
7979
<Import Project="src\Core\src\nuget\buildTransitive\WinUI.Unpackaged.targets" Condition=" '$(WindowsPackageType)' == 'None' and '$(_MauiTargetPlatformIsWindows)' == 'True' " />
8080

81-
<!-- Packaging -->
81+
<!-- NuGet package information -->
82+
<PropertyGroup Condition="'$(IsPackable)' == 'true'">
83+
<PackageTags Condition="'$(PackageTags)' == ''">$(DefaultPackageTags)</PackageTags>
84+
<PackageIcon>$([System.IO.Path]::GetFileName('$(PackageIconFile)'))</PackageIcon>
85+
<GenerateNuspecDependsOn>
86+
_MauiPackReadmeFile;
87+
$(GenerateNuspecDependsOn);
88+
</GenerateNuspecDependsOn>
89+
</PropertyGroup>
8290
<ItemGroup Condition="'$(IsPackable)' == 'true'">
8391
<None Include="$(LicenseFile)"
8492
PackagePath="$([System.IO.Path]::GetFileName('$(LicenseFile)'))"
8593
Pack="true" />
8694
<None Include="$(PackageThirdPartyNoticesFile)"
8795
PackagePath="$([System.IO.Path]::GetFileName('$(PackageThirdPartyNoticesFile)'))"
8896
Pack="true" />
97+
<None Include="$(PackageIconFile)"
98+
PackagePath="$([System.IO.Path]::GetFileName('$(PackageIconFile)'))"
99+
Pack="true" />
89100
</ItemGroup>
101+
<Target Name="_MauiPackReadmeFile" Condition="'$(IsPackable)' == 'true' and '$(PackageReadmeFile)' == ''">
102+
<PropertyGroup>
103+
<PackageReadmeFile>README.md</PackageReadmeFile>
104+
</PropertyGroup>
105+
<WriteLinesToFile File="$(IntermediateOutputPath)\$(PackageReadmeFile)"
106+
Lines="$(Description)"
107+
Overwrite="true" />
108+
<ItemGroup>
109+
<_PackageFiles Include="$(IntermediateOutputPath)\$(PackageReadmeFile)"
110+
PackagePath="$(PackageReadmeFile)"
111+
Pack="true" />
112+
</ItemGroup>
113+
</Target>
114+
90115
</Project>

src/BlazorWebView/src/Maui/Microsoft.AspNetCore.Components.WebView.Maui.csproj

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,19 @@
33
<PropertyGroup>
44
<TargetFrameworks>$(_MauiDotNetTfm);$(MauiPlatforms)</TargetFrameworks>
55
<Nullable>enable</Nullable>
6-
<Description>Build .NET MAUI applications with Blazor web UI in the BlazorWebView control.</Description>
76
<DefineConstants>$(DefineConstants);WEBVIEW2_MAUI</DefineConstants>
87
<GenerateDocumentationFile>true</GenerateDocumentationFile>
98
</PropertyGroup>
109

10+
<PropertyGroup>
11+
<!-- NuGet package information -->
12+
<IsPackable>true</IsPackable>
13+
<PackageId>Microsoft.AspNetCore.Components.WebView.Maui</PackageId>
14+
<PackageTags>$(DefaultPackageTags);blazor;webview;aspnet</PackageTags>
15+
<PackageIconFile>$(MauiRootDirectory)Assets\aspnet-icon.png</PackageIconFile>
16+
<Description>Build .NET Multi-platform App UI (.NET MAUI) apps with Blazor web UI in the BlazorWebView control.</Description>
17+
</PropertyGroup>
18+
1119
<Import Project="$(MauiSrcDirectory)MultiTargeting.targets" />
1220

1321
<ItemGroup>

src/BlazorWebView/src/WindowsForms/Microsoft.AspNetCore.Components.WebView.WindowsForms.csproj

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,21 @@
66
https://github.com/MicrosoftEdge/WebView2Feedback/issues/710 -->
77
<TargetFrameworks>$(_MauiDotNetTfm)-windows</TargetFrameworks>
88
<SupportedOSPlatformVersion>7.0</SupportedOSPlatformVersion>
9-
<Description>Build Windows Forms applications with Blazor and WebView2.</Description>
109
<DefineConstants>$(DefineConstants);WEBVIEW2_WINFORMS</DefineConstants>
1110
<UseWindowsForms>true</UseWindowsForms>
1211
<Nullable>enable</Nullable>
1312
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1413
</PropertyGroup>
1514

15+
<PropertyGroup>
16+
<!-- NuGet package information -->
17+
<IsPackable>true</IsPackable>
18+
<PackageId>Microsoft.AspNetCore.Components.WebView.WindowsForms</PackageId>
19+
<PackageIconFile>$(MauiRootDirectory)Assets\aspnet-icon.png</PackageIconFile>
20+
<PackageTags>blazor;webview;aspnet;winforms</PackageTags>
21+
<Description>Build Windows Forms apps with Blazor and WebView2.</Description>
22+
</PropertyGroup>
23+
1624
<ItemGroup>
1725
<PackageReference Include="Microsoft.AspNetCore.Components.WebView" />
1826
<PackageReference Include="Microsoft.Web.WebView2" />

src/BlazorWebView/src/Wpf/Microsoft.AspNetCore.Components.WebView.Wpf.csproj

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,21 @@
66
https://github.com/MicrosoftEdge/WebView2Feedback/issues/710 -->
77
<TargetFrameworks>$(_MauiDotNetTfm)-windows</TargetFrameworks>
88
<SupportedOSPlatformVersion>7.0</SupportedOSPlatformVersion>
9-
<Description>Build WPF applications with Blazor and WebView2.</Description>
109
<DefineConstants>$(DefineConstants);WEBVIEW2_WPF</DefineConstants>
1110
<UseWPF>true</UseWPF>
1211
<Nullable>enable</Nullable>
1312
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1413
</PropertyGroup>
1514

15+
<PropertyGroup>
16+
<!-- NuGet package information -->
17+
<IsPackable>true</IsPackable>
18+
<PackageId>Microsoft.AspNetCore.Components.WebView.Wpf</PackageId>
19+
<PackageIconFile>$(MauiRootDirectory)Assets\aspnet-icon.png</PackageIconFile>
20+
<PackageTags>blazor;webview;aspnet;wpf</PackageTags>
21+
<Description>Build WPF apps with Blazor and WebView2.</Description>
22+
</PropertyGroup>
23+
1624
<ItemGroup>
1725
<PackageReference Include="Microsoft.AspNetCore.Components.WebView" />
1826
<PackageReference Include="Microsoft.Web.WebView2" />

src/Compatibility/Core/src/Compatibility.csproj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<iOSRoot>iOS\</iOSRoot>
99
<WindowsRoot>Windows\</WindowsRoot>
1010
<TizenRoot>Tizen\</TizenRoot>
11-
<IsPackable>true</IsPackable>
1211
<IsTrimmable Condition="!$(TargetFramework.StartsWith('netstandard'))">true</IsTrimmable>
1312
<MauiGenerateResourceDesigner>true</MauiGenerateResourceDesigner>
1413
<GenerateDocumentationFile>true</GenerateDocumentationFile>
@@ -21,6 +20,14 @@
2120
<DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
2221
</PropertyGroup>
2322

23+
<PropertyGroup>
24+
<!-- NuGet package information -->
25+
<IsPackable>True</IsPackable>
26+
<PackageId>Microsoft.Maui.Controls.Compatibility</PackageId>
27+
<PackageTags>$(DefaultPackageTags);compatibility;xamarin.forms;migration</PackageTags>
28+
<Description>Compatibility APIs and objects for .NET Multi-platform App UI (.NET MAUI) apps. This package contains a collection of APIs and views that allow for easier migration from Xamarin.Forms.</Description>
29+
</PropertyGroup>
30+
2431
<Import Project="$(MauiSrcDirectory)MultiTargeting.targets" />
2532

2633
<ItemGroup>

src/Controls/Foldable/src/Controls.Foldable.csproj

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@
88
<GenerateDocumentationFile>true</GenerateDocumentationFile>
99
<NoWarn>$(NoWarn);CS1591</NoWarn>
1010
<UseMaui Condition=" '$(UseWorkload)' == 'true' ">true</UseMaui>
11-
12-
<!-- Add specifics for this NuGet -->
11+
</PropertyGroup>
12+
<PropertyGroup>
13+
<!-- NuGet package information -->
1314
<IsPackable>True</IsPackable>
14-
<RepositoryType>git</RepositoryType>
15-
<PackageTags>dotnet-maui;maui;foldable;android;surface-duo</PackageTags>
16-
<Title>.NET MAUI Foldable</Title>
17-
<Description>.NET MAUI Foldable provides additional APIs to better support foldable mobile devices.</Description>
18-
<PackageIcon>icon.png</PackageIcon>
15+
<PackageTags>$(DefaultPackageTags);foldable;surface-duo</PackageTags>
16+
<Description>Foldable or multi-screen device support for .NET Multi-platform App UI (.NET MAUI) apps.</Description>
1917
</PropertyGroup>
2018
<Import Project="$(MauiSrcDirectory)MultiTargeting.targets" />
2119
<ItemGroup Condition=" '$(UseMaui)' != 'true' ">
@@ -37,10 +35,5 @@
3735
<PackageReference Include="Xamarin.AndroidX.Window.WindowJava" Version="1.1.0.1" />
3836
</ItemGroup>
3937

40-
<!-- Add icon for NuGet -->
41-
<ItemGroup>
42-
<None Include="..\..\..\..\Assets\icon.png" PackagePath="icon.png" Pack="true" />
43-
</ItemGroup>
44-
4538
<Import Project="$(MauiSrcDirectory)Workload\Shared\LibraryPacks.targets" />
4639
</Project>

src/Controls/Maps/src/Controls.Maps.csproj

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1111
<NoWarn>$(NoWarn);CS1591;RS0041;RS0026;RS0027;RS0022</NoWarn>
1212
<WarningsAsErrors>$(WarningsAsErrors);CS1591</WarningsAsErrors>
13+
</PropertyGroup>
1314

14-
<!-- Add specifics for this NuGet -->
15+
<PropertyGroup>
16+
<!-- NuGet package information -->
1517
<IsPackable>True</IsPackable>
16-
<RepositoryType>git</RepositoryType>
17-
<PackageTags>dotnet-maui;maui;maps;map;ios;android;macos</PackageTags>
18-
<Title>.NET MAUI Maps</Title>
19-
<Description>.NET MAUI Maps provides a map control for .NET MAUI apps.</Description>
20-
<PackageIcon>icon.png</PackageIcon>
18+
<PackageId>Microsoft.Maui.Controls.Maps</PackageId>
19+
<PackageTags>$(DefaultPackageTags);maps;mapping</PackageTags>
20+
<Description>Maps and mapping support for .NET Multi-platform App UI (.NET MAUI) apps.</Description>
2121
</PropertyGroup>
2222

2323
<ItemGroup>
@@ -28,11 +28,6 @@
2828

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

31-
<!-- Add icon for NuGet -->
32-
<ItemGroup>
33-
<None Include="..\..\..\..\Assets\icon.png" PackagePath="icon.png" Pack="true" />
34-
</ItemGroup>
35-
3631
<Import Project="$(MauiSrcDirectory)Workload\Shared\LibraryPacks.targets" />
3732

3833
</Project>

src/Controls/src/Build.Tasks/Controls.Build.Tasks.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
<PackageId>Microsoft.Maui.Controls.Build.Tasks</PackageId>
55
<AssemblyName>Microsoft.Maui.Controls.Build.Tasks</AssemblyName>
66
<RootNamespace>Microsoft.Maui.Controls.Build.Tasks</RootNamespace>
7-
<Description>.NET MAUI MSBuild tasks. Enabled via &lt;UseMaui&gt;true&lt;/UseMaui&gt;.</Description>
87
<TargetFramework>netstandard2.0</TargetFramework>
9-
<IsPackable>true</IsPackable>
108
<!-- Suppresses the warnings about the package not having assemblies in lib/*/.dll.-->
119
<NoPackageAnalysis>true</NoPackageAnalysis>
1210
<!-- Do not include any assemblies from this project as we will do it manually -->
@@ -17,6 +15,13 @@
1715
<ILRepackBeforePack>true</ILRepackBeforePack>
1816
</PropertyGroup>
1917

18+
<PropertyGroup>
19+
<!-- NuGet package information -->
20+
<IsPackable>true</IsPackable>
21+
<PackageId>Microsoft.Maui.Controls.Build.Tasks</PackageId>
22+
<Description>.NET Multi-platform App UI (.NET MAUI) is a cross-platform framework for creating native mobile and desktop apps with C# and XAML. This package only contains the MSBuild tasks and other tooling. Please install the Microsoft.Maui.Controls package to start using .NET MAUI.</Description>
23+
</PropertyGroup>
24+
2025
<ItemGroup>
2126
<PackageReference Include="Mono.Cecil" Version="0.11.5" PrivateAssets="all" GeneratePathProperty="true" />
2227
<PackageReference Include="System.CodeDom" Version="7.0.0" PrivateAssets="all" GeneratePathProperty="true" />

src/Controls/src/Core/Controls.Core.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms)</TargetFrameworks>
55
<RootNamespace>Microsoft.Maui.Controls</RootNamespace>
66
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
7-
<PackageId>Microsoft.Maui.Controls.Core</PackageId>
87
<Nullable>enable</Nullable>
9-
<IsPackable>true</IsPackable>
108
<IsTrimmable>false</IsTrimmable>
119
<_MauiDesignDllBuild Condition=" '$(OS)' != 'Unix' ">True</_MauiDesignDllBuild>
1210
<GitInfoReportImportance>high</GitInfoReportImportance>
@@ -16,6 +14,13 @@
1614
<NoWarn Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen' or $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">$(NoWarn);CA1420</NoWarn>
1715
</PropertyGroup>
1816

17+
<PropertyGroup>
18+
<!-- NuGet package information -->
19+
<IsPackable>true</IsPackable>
20+
<PackageId>Microsoft.Maui.Controls.Core</PackageId>
21+
<Description>.NET Multi-platform App UI (.NET MAUI) is a cross-platform framework for creating native mobile and desktop apps with C# and XAML. This package only contains the core C# and XAML objects used by .NET MAUI. Please install the Microsoft.Maui.Controls package to start using .NET MAUI.</Description>
22+
</PropertyGroup>
23+
1924
<Import Project="$(MauiSrcDirectory)MultiTargeting.targets" />
2025

2126
<ItemGroup>

src/Controls/src/NuGet/Controls.NuGet.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms)</TargetFrameworks>
5-
<IsPackable>true</IsPackable>
6-
<PackageId>Microsoft.Maui.Controls</PackageId>
75
<!-- Suppresses the warnings about the package not having assemblies in lib/*/.dll.-->
86
<NoPackageAnalysis>true</NoPackageAnalysis>
97
<!-- Do not include any assemblies from this project as it is a "meta" project -->
108
<IncludeBuildOutput>false</IncludeBuildOutput>
119
</PropertyGroup>
1210

11+
<PropertyGroup>
12+
<!-- NuGet package information -->
13+
<IsPackable>true</IsPackable>
14+
<PackageId>Microsoft.Maui.Controls</PackageId>
15+
<Description>.NET Multi-platform App UI (.NET MAUI) is a cross-platform framework for creating native mobile and desktop apps with C# and XAML. Using .NET MAUI, you can develop apps that can run on Android, iOS, macOS, Tizen, and Windows from a single shared codebase.</Description>
16+
</PropertyGroup>
17+
1318
<ItemGroup>
1419
<ProjectReference Include="..\..\..\Controls\src\Core\Controls.Core.csproj" />
1520
<ProjectReference Include="..\..\..\Controls\src\Xaml\Controls.Xaml.csproj" />

src/Controls/src/Xaml/Controls.Xaml.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms)</TargetFrameworks>
55
<AssemblyName>Microsoft.Maui.Controls.Xaml</AssemblyName>
66
<RootNamespace>Microsoft.Maui.Controls.Xaml</RootNamespace>
7-
<IsPackable>true</IsPackable>
87
<IsTrimmable>false</IsTrimmable>
98
<_MauiDesignDllBuild Condition=" '$(OS)' != 'Unix' ">True</_MauiDesignDllBuild>
109
<NoWarn>$(NoWarn);CA2200;CS1591;RS0041</NoWarn>
11-
<PackageId>Microsoft.Maui.Controls.Xaml</PackageId>
1210
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1311
</PropertyGroup>
1412

@@ -17,6 +15,13 @@
1715
<DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
1816
</PropertyGroup>
1917

18+
<PropertyGroup>
19+
<!-- NuGet package information -->
20+
<IsPackable>true</IsPackable>
21+
<PackageId>Microsoft.Maui.Controls.Xaml</PackageId>
22+
<Description>.NET Multi-platform App UI (.NET MAUI) is a cross-platform framework for creating native mobile and desktop apps with C# and XAML. This package only contains the XAML tooling. Please install the Microsoft.Maui.Controls package to start using .NET MAUI.</Description>
23+
</PropertyGroup>
24+
2025
<ItemGroup>
2126
<ProjectReference Include="..\..\..\Controls\src\Core\Controls.Core.csproj" />
2227
<ProjectReference Include="..\..\..\Core\src\Core.csproj" />

src/Core/maps/src/Maps.csproj

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@
88
<IsTrimmable>false</IsTrimmable>
99
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1010
<NoWarn>$(NoWarn);CS1591;RS0041;RS0026;RS0027</NoWarn>
11+
</PropertyGroup>
1112

12-
<!-- Add specifics for this NuGet -->
13-
<IsPackable>True</IsPackable>
14-
<RepositoryType>git</RepositoryType>
15-
<PackageTags>dotnet-maui;maui;maps;map;ios;android;macos</PackageTags>
16-
<Title>.NET MAUI Maps Core</Title>
13+
<PropertyGroup>
1714
<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>
18-
<PackageIcon>icon.png</PackageIcon>
15+
</PropertyGroup>
16+
17+
<PropertyGroup>
18+
<!-- NuGet package information -->
19+
<IsPackable>True</IsPackable>
20+
<PackageId>Microsoft.Maui.Maps</PackageId>
21+
<PackageTags>$(DefaultPackageTags);maps;mapping</PackageTags>
22+
<Description>Maps and mapping support for .NET Multi-platform App UI (.NET MAUI) apps. This package only contains the core objects used by .NET MAUI Maps. Please install the Microsoft.Maui.Controls.Maps package to start using .NET MAUI Maps.</Description>
1923
</PropertyGroup>
2024

2125
<Import Project="$(MauiSrcDirectory)MultiTargeting.targets" />
@@ -34,13 +38,8 @@
3438
<Compile Include="..\..\src\IsExternalInit.cs" Link="IsExternalInit.cs" />
3539
<Compile Include="..\..\src\TaskExtensions.cs" Link="TaskExtensions.cs" />
3640
</ItemGroup>
37-
38-
<Import Project="$(MauiSrcDirectory)PublicAPI.targets" />
3941

40-
<!-- Add icon for NuGet -->
41-
<ItemGroup>
42-
<None Include="..\..\..\..\Assets\icon.png" PackagePath="icon.png" Pack="true" />
43-
</ItemGroup>
42+
<Import Project="$(MauiSrcDirectory)PublicAPI.targets" />
4443

4544
<Import Project="$(MauiSrcDirectory)Workload\Shared\LibraryPacks.targets" />
4645

src/Core/src/Core.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,20 @@
44
<TargetFrameworks>netstandard2.1;netstandard2.0;$(_MauiDotNetTfm);$(MauiPlatforms)</TargetFrameworks>
55
<RootNamespace>Microsoft.Maui</RootNamespace>
66
<AssemblyName>Microsoft.Maui</AssemblyName>
7-
<PackageId>Microsoft.Maui.Core</PackageId>
87
<Nullable>enable</Nullable>
9-
<IsPackable>true</IsPackable>
108
<IsTrimmable>false</IsTrimmable>
119
<MauiGenerateResourceDesigner>true</MauiGenerateResourceDesigner>
1210
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1311
<NoWarn>$(NoWarn);CS1591;RS0041;RS0026;RS0027</NoWarn>
1412
</PropertyGroup>
1513

14+
<PropertyGroup>
15+
<!-- NuGet package information -->
16+
<IsPackable>true</IsPackable>
17+
<PackageId>Microsoft.Maui.Core</PackageId>
18+
<Description>.NET Multi-platform App UI (.NET MAUI) is a cross-platform framework for creating native mobile and desktop apps with C# and XAML. This package only contains the core objects used by .NET MAUI. Please install the Microsoft.Maui.Controls package to start using .NET MAUI.</Description>
19+
</PropertyGroup>
20+
1621
<Import Project="$(MauiSrcDirectory)MultiTargeting.targets" />
1722

1823
<ItemGroup>

src/Essentials/src/Essentials.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,19 @@
55
<RootNamespace>Microsoft.Maui.Essentials</RootNamespace>
66
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
77
<WarningsNotAsErrors>BI1234</WarningsNotAsErrors>
8-
<IsPackable>true</IsPackable>
98
<IsTrimmable Condition="!$(TargetFramework.StartsWith('netstandard'))">true</IsTrimmable>
109
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1110
<NoWarn>$(NoWarn);NU5104;RS0041;RS0026</NoWarn>
1211
<WarningsAsErrors>$(WarningsAsErrors);CS1591</WarningsAsErrors>
1312
<NoWarn Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">$(NoWarn);CA1420</NoWarn>
1413
</PropertyGroup>
14+
<PropertyGroup>
15+
<!-- NuGet package information -->
16+
<IsPackable>true</IsPackable>
17+
<PackageId>Microsoft.Maui.Essentials</PackageId>
18+
<PackageTags>$(DefaultPackageTags);essentials;sensors</PackageTags>
19+
<Description>.NET Multi-platform App UI (.NET MAUI) is a cross-platform framework for creating native mobile and desktop apps with C# and XAML. This package contains a collection of cross-platform APIs for working with device sensors and other features.</Description>
20+
</PropertyGroup>
1521
<Import Project="$(MauiSrcDirectory)MultiTargeting.targets" />
1622
<ItemGroup>
1723
<ProjectReference Include="..\..\Graphics\src\Graphics\Graphics.csproj" />

0 commit comments

Comments
 (0)