Open alex-piccione opened 6 years ago
@rohit21agrawal any quick thought?
@alex75it any chance you can attach a repro project?
I was testing this I get the exact same behaviour. If I build the package in Debug mode it just ignores the attribute and issues a warning saying Author is not specified. Even if this wasn't intended, personally I find it useful as it alerts me if someone tries to create a package in Debug mode.
Sorry... I can't provide any example to reproduce the error at the moment.
nuget.exe version 4.4.1.4656
Nuget.exe command: nuget pack "..\my.library.csproj" -verbosity detailed -Properties Configuration=Debug;Author="My name";Authors="My name" -Suffix %suffix% -IncludeReferencedProjects
Nuspec file:
AssemblyInfo.cs file contains: [assembly: AssemblyCompany("My author")]
If I use Configuration=Release; the warning is not shown. (nuget pack "..\my.library.csproj" -Properties Configuration=Release;authors=%author% -Suffix %suffix% -IncludeReferencedProjects )
Why I continue to receive that warning in Debug mode?
Regards