I was working on a C# library project and i want to create a Nuget package out of it. I'm using this command for that
dotnet pack /p:Version=2.0.1 --include-symbols
It is working fine when the version is handled properly.
But there can be situation where i have to create a nuget package with same version as before [ to replace the 2.0.1 ] when last one was a mistake.
Right now when i try above command it is not doing anything if package with same version already exists?
Is there a way where i can replace the existing package without deleting it manually?
I tried a lot of things, and ended up doing as below.
Wrote a console application which will update the .csproj version part of the library project then build the library project with the help of powershell script.