Software development, photography, jokes, ....


Sites by me

tas-logoTransportation Administration System
snoezelkussen-logo-kleinstSnoezelen Pillows for Dementia
ikzoekeenbegeleider-logoBegeleiders voor gehandicapten
Laat uw hond het jaarlijkse vuurwerk overwinnen
Betuweroute en Kunst
logo 50x50Hey Vos! Je eigen emailadres?
Kunst in huis? Nicole Karrèr maakt echt bijzonder mooie dingen
nettylogo2Kunst in huis? Netty Franssen maakt ook bijzonder mooie dingen

Hosting Favorites

ANU Internet Services
XEL Media


Google Translate
jQuery UI
YourHead Stacks API
Favicon Generator.
Password Generator.
Check HTTPS problems

Marc's Place


How to duplicate a Visual Studio Project on macOS

Buy me a tea

1) Duplicate project
Click on the project folder and press CMD-D on the keyboard.

2) Rename folder
Rename the [VS Project Name] copy to your [New VS Project Name]

3) Rename files and folders inside the project
Open Terminal and type the following commands:

$ cd [your projects folder]/[New VS Project Name]
$ for file in $(find . -name '*[VS Project Name]*'); do mv "$file" "${file/[VS Project Name]/[New VS Project Name]}"; done

4) Rename '[VS Project Name]' inside the project files
- Open the application 'VS Code' (download here )
- Add the Visual Studio project folder into a VS Code project, if it is not already.
- Open Search + Replace
- Set 'Case sensitive' to 'On'

- Search for [VS Project Name]. A maximum of 20000 results are listed.
- Replace all with [New VS Project Name]
- Search again
- Repeat until no more occurrences are found.

- Search for [vs project name] (all lowercase). Max results are again just 20000.
- Replace all with [new vs project name] (also all lowercase)
- Search again
- Repeat until no more occurrences are found.

In 4.b and/or 4.c you will have seen literal path names to project files.
Use Find & Replace to change those paths into the new paths.

5. New icons
Don't forget to create new icons for the new app.

6. Clean
Open the new project in Visual Studio, and choose 'Clean all' under the 'Build' menu.

That's it!

buy me something-2
© 1997- Marc Vos (and others)   -   Privacy Statement   -    Contact Me

On this website, Google Analytics is used to track visitor statistics. These are anonymised data about the number of visitors, which pages they visit on this site, from which regions they visit, which web browsers they use, etc.. You will also see non-personalised ads via Google AdSense. Cookies from Paddle or Paypal are placed when you click on a 'Buy now!' or 'Donate!' button, and possible cookies from Disqus when you use that system to comment on one or more blogposts.
Privacy Statement