I have built a project that deploys a Nuget package.
My intention is to use the same project to deploy a variety of packages with different names.
Even though the project relates to one website. Each project relating to this website, has a special project code with its own version number sequence.
Website_project1 (version 1.0.0 to 1.9.9)
Website_project2 (version 1.0.0 to 2.9.9)
Therefore the nuget package id will equal Website_project1 and version 1.0.1
Once this package has been completely deployed a new project will be created, e.g. Website_project2 starting with version 1.0.0
Nuget file would like the following:
However in my project “Deploy a package” step, I am currently hardcoding. Therefore it either needs to be hardcoded to Website_project1 or Website_project2.
Basically what I am wanting is to have this dynamically select the last package deployed or if this is not possible prompt the user to select a package when doing the release.
Any advise would be highly appreciated.