Bug 3670 - Attempting to create a project with a name already in use results in 'File Already Exists' dialog for every file in solution
Summary: Attempting to create a project with a name already in use results in 'File Al...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Management ()
Version: 2.8 beta 3
Hardware: PC Mac OS
: Low minor
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-02-28 14:43 UTC by PJ
Modified: 2017-08-17 23:26 UTC (History)
5 users (show)

Tags: templating, papercut
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description PJ 2012-02-28 14:43:00 UTC
Steps to reproduce:

1) Create a solution called SameName
2) Save this solution
3) Create another new solution called SameName
4) On the 'File Already Exists' dialogue, hit Cancel

Expected result:
User should be able to completely cancel the solution creation and attempt to re-name the solution

Actual result:
Hitting Cancel or Override affects the file in question only, and MD will go through each matching file and ask for confirmation.

I experienced this on MonoDevelop but it also exists on the 2.8.6 builds.
Comment 1 Zane 2012-02-29 18:24:38 UTC
I've experienced this as well. In addition, I've had the issue where the dialog won't event close and I have to restart MonoDevelop.
Comment 2 Alan McGovern 2012-03-01 11:40:26 UTC
Zane, your issues are probably gtk focus related. usually clicking on the desktop and going back into monodevelop fixes that. If it happens again, let me know if that workaround allows you to click on the dialog buttons again.

The issue isn't hugely important but I'll take a quick look as it might be trivial to add the 'Use this answer for everything' button.
Comment 3 Mikayla Hutchinson [MSFT] 2012-03-01 17:42:46 UTC
The new template system's validation will warn if filenames will conflict with existing files, and then ask once. Asking for each file isn't really necessary.
Comment 4 PJ 2013-06-04 10:53:47 UTC
We still just don't handle this scenario correctly at all, I'm on XS 4.08.

How close are we to that new template system?
Comment 5 Will Smith 2017-08-17 23:26:23 UTC
Thanks so much for taking the time to submit this report! I attempted to reproduce this issue based on the bug description with the latest Visual Studio 2017 for Mac Preview version 7.2, and I was unable to hit the problem. If this issue is still occurring for you, please reopen this report and attach a reproduction, ideally starting with a new template project and then adding just the code necessary to demonstrate the issue.