'VS2019 copy project within solution to use as starting point for new project

Hi I have a VS2019 solution that contains multiple projects, some are class libraries and some are commandline apps

I want to start a new commandline app but would like to base it on an existing app in the solution.

Is there any easy way to do this? Or do I just have to start the new project and then labouriously copy all the references, progrma.cs etc etc...

If thats the case then fine.. I am just wondering if I am missing a trick here, maybe this is something people do a lot?

Thanks



Solution 1:[1]

  1. Copy Project:

enter image description here enter image description here

  1. Add Existing Project:

enter image description here

enter image description here

enter image description here

  1. Rename the project otherwise an error will be reported.

enter image description here

After renameing:

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jiale Xue - MSFT