How do I create a new project from an old project in Visual studio? MVC 5 C# Entity

How do I create a new project from an old project, without causing conflicts with the original program.  I would like to make a diffrent variation of the project. but 90% of the code is the same.
bmanmike39Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MlandaTCommented:
Umm... if 90% of the code is the same, just copy the entire source code into another folder and make your changes there?

Are you upgrading from one MVC version to another? If yes, then give details. If not, then copy and paste as above.

Are you using Git? Would you like to keep all the source in the same repo? Then create a branch and make your changes on the branch (or fork). If not, then copy and paste as above.
bmanmike39Author Commented:
I want it to have a different project name an number. Do I create the project, then copy the files over.  and will the entity work?  When I tried this and got a large number of files that where excluded from the project.
Fernando SotoRetiredCommented:
Hi bmanmike39;

As stated by @MlandaT first copy the MVC project folder to a new location changing the folder name if you like. Now in Visual Studio open that project in its new location. Once the project is opened in Solution Explorer right click on the solution name and select Rename from the menu and rename the project name you wish to change. To do changes in the code files do the same, right click on a variable name and select Rename and rename the variable, select any options to change in the complete project. After doing a name change rebuild the project to make sure it still compiles.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.