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
dotnet pack does not support title in .csproj #4150
Using VS 2017 RC obtained from web, I am specify all of the .nuspec metadata I care about except <title>. Are there plans to support this in dotnet pack of a .csproj?
I think we should only phase this out after we have phased it out of all user experiences. In particular, nuget.org shows title in search results, so this is a very visible field. I did some analysis of the top 100 packages on nuget.org.
.
Exact match
Difference casing
Different
Count
43
1
56
1st
EntityFramework
angularjs AngularJS
Newtonsoft.Json Json.NET
2nd
NUnit
bootstrap Bootstrap CSS
3rd
jQuery
Microsoft.AspNet.Mvc Microsoft ASP.NET MVC
Exact match means the ID and title are exactly the same. Difference casing means the ID and title only different on casing. Different means the ID is different than the title.
If more than half of our top packages are using title, we shouldn't eliminate it from tooling.
i feel like what we are doing is a good first step..we continue to support title (and summary) in the following sccenarios :
nuget.exe pack legacy csproj
nuget.exe pack nuspec
dotnet.exe pack /p:NuspecFile="nuspec file"
msbuild /t:pack /p:NuspecFile="nuspec file"
The scenario for which we are eliminating it is:
dotnet.exe pack "package ref based csproj"
msbuild /t:pack "package ref based csproj"
People who want a mix of both worlds can use the intermediate generated nuspec file from their package referenced based projects and pack the nuspec with the title added to get the desired result.
This way we discourage people from using Title and make them follow the recommended convention of having ID the same as Title, but not essentially blocking anyone.
The problem is that we have no telemetry or idea of how frequently users are packing .nuspec vs packing .csproj today. If we found that more than half of our users are using a feature, aren't we inadvertently discouraging users from moving to the new world if it doesn't have that feature?
Suppose we are designing the migration flow from packages.config to package reference. How would that migration work if the client has a package title?
People who want a mix of both worlds can use the intermediate generated nuspec file from their package referenced based projects and pack the nuspec with the title added to get the desired result.
Is this a well documented or polished experience? Are there basic knobs and switches that can be used so that customers don't have to make XML munging code on the intermediate .nuspec? If you are used to packing a legacy .csproj, is the "new world" going to be a lot more painful if you just want to set your package title?
I guess it seems strange to me to eliminate commonly used field when we a) have no documented high level design to phase out package title and b) the cost of implementing package title in package reference is very low.
Just spit-balling here, but the phase-out plan could be:
Warn during any pack when ID does not equal title.
Show ID on nuget.org instead of title.
Blog about the phase out and receive customer feedback.
@rohit21agrawal in the interest of learning why is having the same title and id a recommended convention? I use title for friendly human readable names and agree with @onovotny id alone is not enough.
Reacted by James Montemagno, Richard Simpson, Joseph Musser, Brian M. Carr and Stefano Balzarotti
Ever since Title stopped being the main result in the NuGet Package manager things have gotten really confusing. Often my package IDs are short or legacy such as "Xam.Plugin.Connectivity" when the Title is "Connectivity Plugin for Xamarin", which is what makes sense. The UI should simply just show the title and the package name under it. Seems like an extremely easy improvement.
Reacted by Claire Novotny, Martijn Laarman, Josh Evenson, Carlos Vitor Barros, Gert Driesen, Jakub Majocha, Richard Simpson, Joe Mayo, Joseph Musser, Justin Rusbatch and 1 more
plan is to bring back title...leaving summary and owners out.
and then communicate the long term plan for id/title, etc...and get feedback on that plan.
changed the title [-]dotnet pack does not support title and summary attribute in .csproj[/-][+]dotnet pack does not support title in .csproj[/+]on Jan 26, 2017
If my description is tool long, I get build warnings, which tell me to add a (shorter) summary. But I cannot add a summary, because there seems to be no plans to support that any more.
Activity
rohit21agrawal commentedon Jan 14, 2017
@joelverhagen we decided not to support title in csproj. is there a reason you need it ?
joelverhagen commentedon Jan 14, 2017
It's a first class property in NuGet.
I have a package with a title that is different than the ID. This is a pretty common scenario.
Newtonsoft.Json
Json.Net
rohit21agrawal commentedon Jan 20, 2017
@rrelyea if we want to fix this, we should fix this in 4.0 itself.
rohit21agrawal commentedon Jan 20, 2017
moving this to 4.0 RTM milestone to make it more visible for discussion.
joelverhagen commentedon Jan 20, 2017
I think we should only phase this out after we have phased it out of all user experiences. In particular, nuget.org shows title in search results, so this is a very visible field. I did some analysis of the top 100 packages on nuget.org.
AngularJS
Json.NET
Bootstrap CSS
Microsoft ASP.NET MVC
Exact match means the ID and title are exactly the same.
Difference casing means the ID and title only different on casing.
Different means the ID is different than the title.
If more than half of our top packages are using title, we shouldn't eliminate it from tooling.
rohit21agrawal commentedon Jan 20, 2017
i feel like what we are doing is a good first step..we continue to support title (and summary) in the following sccenarios :
The scenario for which we are eliminating it is:
People who want a mix of both worlds can use the intermediate generated nuspec file from their package referenced based projects and pack the nuspec with the title added to get the desired result.
This way we discourage people from using Title and make them follow the recommended convention of having ID the same as Title, but not essentially blocking anyone.
joelverhagen commentedon Jan 20, 2017
The problem is that we have no telemetry or idea of how frequently users are packing .nuspec vs packing .csproj today. If we found that more than half of our users are using a feature, aren't we inadvertently discouraging users from moving to the new world if it doesn't have that feature?
Suppose we are designing the migration flow from packages.config to package reference. How would that migration work if the client has a package title?
Is this a well documented or polished experience? Are there basic knobs and switches that can be used so that customers don't have to make XML munging code on the intermediate .nuspec? If you are used to packing a legacy .csproj, is the "new world" going to be a lot more painful if you just want to set your package title?
I guess it seems strange to me to eliminate commonly used field when we a) have no documented high level design to phase out package title and b) the cost of implementing package title in package reference is very low.
Just spit-balling here, but the phase-out plan could be:
2 remaining items
Mpdreamz commentedon Jan 23, 2017
@rohit21agrawal in the interest of learning why is having the same title and id a recommended convention? I use title for friendly human readable names and agree with @onovotny id alone is not enough.
jamesmontemagno commentedon Jan 23, 2017
Ever since Title stopped being the main result in the NuGet Package manager things have gotten really confusing. Often my package IDs are short or legacy such as "Xam.Plugin.Connectivity" when the Title is "Connectivity Plugin for Xamarin", which is what makes sense. The UI should simply just show the title and the package name under it. Seems like an extremely easy improvement.
clairernovotny commentedon Jan 23, 2017
@jamesmontemagno I agree. The title needs to be added to the results on the GUI, not removed.
stefandevo commentedon Jan 23, 2017
This is a no brainer. Don't understand that it's even considered...
ghuntley commentedon Jan 24, 2017
I'm with @onovotny. Please don't drop title.
rrelyea commentedon Jan 24, 2017
plan is to bring back title...leaving summary and owners out.
and then communicate the long term plan for id/title, etc...and get feedback on that plan.
rohit21agrawal commentedon Jan 24, 2017
CC: @onovotny
[-]dotnet pack does not support title and summary attribute in .csproj[/-][+]dotnet pack does not support title in .csproj[/+]axelheer commentedon Feb 28, 2017
If my description is tool long, I get build warnings, which tell me to add a (shorter) summary. But I cannot add a summary, because there seems to be no plans to support that any more.
That doesn't make any sense. Does it?
delphyne commentedon May 9, 2018
which version of dotnet will include the changes? 2.0.7 released 2 days ago doesn't seem to include the fix.