I am currently generating nuget packages by passing in a csproj file instead of a nuspec file. The problem is that I need to change the name of the nuget package to avoid conflicts with another project.
This is the command I'm running:
"C:\Program Files\dotnet\dotnet.exe" pack C:\VSTS\Agent\_work\1\s\src\MyProject\MyProject.csproj --include-symbols --include-source --output C:\VSTS\Agent\_work\1\a --no-build /p:Configuration=debug --include-symbols --include-source /p:PackageVersion=2018.10.11.3
I tried appending the following to the command, but it seems to be ignored:
/p:Id=ThisIsWhatThePackageNameShouldBe
And also tried changing the assembly name in the project (but not the project name), and then doing this:
/p:Id=$(AssemblyName)
But this was also ignored.