CodeConverter icon indicating copy to clipboard operation
CodeConverter copied to clipboard

Alternative output folder

Open GrahamTheCoder opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

I had initially thought that the output window listing file locations in addition to the option of reloading Visual Studio to for the converted project would be reasonably clear, but several people have been confused/unhappy about the resulting location of the converted files:

Sunil Kumar Puri 9/18/2020

Where do the converted files go

Gordon Bell 8/24/2020

Why does Conversion take place in same folder structure?

Jim Tollan 9/29/2020

I know that you mention that the command line utility allows you to select an alternative output folder. Would it be overly complex to include this as part of the addin?

Describe the solution you'd like

When someone clicks any of the convert options, a modal dialog should appear with various options, e.g.

You are converting MySolution.sln Where would you like the converted files to go?

  • [x] Adjacent to the existing files
  • [ ] In a copy of the solution in this folder: [Textbox]

Convert [Button] Cancel [Button]

This would also cover https://github.com/icsharpcode/CodeConverter/issues/776

Describe alternatives you've considered

  • Provided some handy commands to deal with files here: https://github.com/icsharpcode/CodeConverter/wiki/Visual-Studio-Extension#converting-whole-projectsolution

Additional context

Side-by-side conversion has these benefits:

  • Easy to compare the conversion result to the input file to diagnose and fix any inaccuracies.
  • Minimizes changes needed to any other referencing projects/solutions.
  • Minimizes chance of breaking relative paths to other resources.
  • VS offers to reload the solution

GrahamTheCoder avatar Dec 11 '21 17:12 GrahamTheCoder