You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NuGet Package from new .csproj - Summary/Title Tag missing #2937
We are using the new .csproj and the integrated NuGet package building feature and I was wondering why I can't specify "Summary" and "Title" within Visual Studio?
When I upload the produced package to nuget.org, a title and summary field is shown without any input and the summary seems kind of important, because it is related to search?!
Repo steps:
Create new csproj
fill out some package details
upload produced package to nuget.org via the Web UI
I guess this is by design, but then the NuGet Gallery should render the fields differently.
MSBuild actually produces warnings that the Summary is missing if you use a long Description. This is what I get from my build output:
Issue found with package 'MyTestNuGetPackage1'.
..\..\Program Files\dotnet\sdk\2.0.2\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets 204 5 MyTestNuGetPackage1
Issue: Consider providing Summary text.
..\..\Program Files\dotnet\sdk\2.0.2\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets 204 5 MyTestNuGetPackage1
Description: The Description text is long but the Summary text is empty. This means the Description text will be truncated in the 'Manage NuGet Packages' dialog.
..\..\Program Files\dotnet\sdk\2.0.2\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets 204 5 MyTestNuGetPackage1
Solution: Provide a brief summary of the package in the Summary field.
..\..\Program Files\dotnet\sdk\2.0.2\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets 204 5 MyTestNuGetPackage1
Same here, I am getting a long description warning when packaging from an SDK project file. A there is no way to even pass the summary field to the task in NuGet.Build.Tasks.Pack.targets which comes with VS15.4.5.
C:\Program Files\dotnet\sdk\2.0.3\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets(204,5): warning : Description: The Description text is long but the Summary text is empty. This means the Description text will be truncated in the 'Manage NuGet Packages' dialog.
So my guess the missing UI field issue belong here, but the missing task parameter is a NuGet issue still. I'll open an issue again there.
This UI wasn't added because the NuGet team asked us not to add it due to both being deprecated. @rrelyea and @mishra14 if that has changed can you please let us know? It looks like Summary has been deprecated, but what about Title?
I will just put in my two cents to remove the summary text box all-together then, it is very confusing when publishing nuget why it doesn't carry over from the csproj.
Activity
mishra14 commentedon Nov 3, 2017
From @robertmuehsig on October 27, 2017 5:34
Is this part OSS and are PRs possible/welcome?
mishra14 commentedon Nov 3, 2017
@robertmuehsig this UI page is not owned by NuGet. I will move your bug to a better repo.
mishra14 commentedon Nov 3, 2017
From @adrianvmsft on November 3, 2017 18:16
I think you should open this issue on the dotnet project system github. That is where the implementation of the .net core project system lives.
Pilchie commentedon Nov 3, 2017
The source for the page is at https://github.com/dotnet/project-system/blob/master/src/Microsoft.VisualStudio.Editors/PropPages/PackagePropPage.vb
mishra14 commentedon Nov 3, 2017
@robertmuehsig the page is open source, please take a look at the link in the previous comment.
tompazourek commentedon Nov 12, 2017
MSBuild actually produces warnings that the Summary is missing if you use a long Description. This is what I get from my build output:
kkm000 commentedon Dec 3, 2017
Same here, I am getting a long description warning when packaging from an SDK project file. A there is no way to even pass the summary field to the task in
NuGet.Build.Tasks.Pack.targetswhich comes with VS15.4.5.So my guess the missing UI field issue belong here, but the missing task parameter is a NuGet issue still. I'll open an issue again there.
kkm000 commentedon Dec 3, 2017
Looks like the Summary has been deprecated, so this is a non-issue: NuGet/Home#4587 (comment)
@tompazourek: NoPackageAnalysis to the rescue!
davkean commentedon Dec 15, 2017
This UI wasn't added because the NuGet team asked us not to add it due to both being deprecated. @rrelyea and @mishra14 if that has changed can you please let us know? It looks like
Summaryhas been deprecated, but what aboutTitle?Retire package Summary Missing analysis rule (#1906)
jjxtra commentedon Sep 20, 2019
I will just put in my two cents to remove the summary text box all-together then, it is very confusing when publishing nuget why it doesn't carry over from the csproj.
drewnoakes commentedon Apr 12, 2022
Summaryis not supported. From the docs:Titlemakes sense and will be fixed for the new Project Properties UI in #8065.Add the Title property to the Package page