-2

I have a WPF solution & project(written in Visual Studio2019) that I would like to use under another name.

On the other words, I have a project like( EXAMPLE_A ) that I would like to use on my other task (not creating again the entire project) just copy & paste and rename it (EXAMPLE_B) and then I want to exchange the GUI colors and title and logos...

I tried this copy&paste way but some part of code was wrong: VS said some part of code are not included in this project and so on . However, I copied the entire folder. I saw the Save As is not option... Therefore, I ask your help what is the correct process.

The question: have a simple correct way to clone/ copy the solution and use it under another separated name? ( final outcome: have EXAMPLE_A and EXAMPLE_B separately with same program functions, different name and logo)

Thank you for you all support.

sansui1
  • 17
  • 4
  • "want to exchange the GUI colors and title and logos" - that doesn't require copying project source code. (imaging copying .net libs every time you want to change some text Foreground) – ASh Feb 07 '22 at 09:18
  • Just search for the old name over all files and replace it with the new. There are references to class names not only in the file names, but also in the code itself, in xaml files, resource files etc. – PMF Feb 07 '22 at 09:31
  • Thanks @ASh. I tried to meaning: in the past I have created an WPF application for a business task. And now I would like to clone that application (to keep A and B) for the new and same project. But is it important to use and store it in different name. And I have to use this copied version under another name (with the same functions). And maybe in the future I have to add something only for projectA or only in projectB, based on the business requests. Sorry if I was wrong/ not clear. Thanks once more. – sansui1 Feb 07 '22 at 09:52
  • @PMF In my Example.xaml.cs there is a Properties.Settings.Default.Reload(); that VS underlines and said Properties does not exist in the current context. – sansui1 Feb 07 '22 at 09:56

1 Answers1

-1

Export your project as a Template in Visual Studio, then you can create another project and change the name or whatever else you need.

dwpessoa
  • 440
  • 4
  • 15