Nuget pack [someProject.csproj] won't let me change the title or description

I know that I can change the author and description if I list nuspec in my package (i.e. nuget pack someSpec.nuspec), but I want my project to be "the only source of truth." Unfortunately, I cannot change the title / description / author using the command line. I decided this would work:

nuget pack Persistence.csproj -properties Title=Company.Project.Persistence -IncludeReferencedProjects -o bin\nuget_build 

but it does not work. Can I do this using the command line?

+4
source share
1 answer

After a lot of surfing, it would seem that the only way to change them is to change the attributes AssemblyInfo.csin your project. click here to view nuget codeplex discussion

  • Title displayed in [assembly: AssemblyTitle("Nuget.Package.Title")]
  • Version displayed on [assembly: AssemblyVersion("1.0.0.0")]
  • Author displayed on [assembly: AssemblyCompany("Microsoft")]
  • Description displayed on [assembly: AssemblyDescription("")]

, .

, , Id AssemblyTitle, Nuget 2.8, , Title AssemblyTitle, Id .

+10

Source: https://habr.com/ru/post/1530305/


All Articles