Bug 3869 - MonoDevelop handles project folders badly
Summary: MonoDevelop handles project folders badly
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Shell ()
Version: Trunk
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-03-13 08:39 UTC by Alan McGovern
Modified: 2017-08-22 21:48 UTC (History)
3 users (show)

Tags:
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:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Alan McGovern 2012-03-13 08:39:54 UTC
There are several bugs in how MonoDevelop handles folders in projects. Here are some ways issues can be triggered:

1) Add a new folder. An explicit reference to the folder is added to the csproj as the folder is empty. Add a file to it using the 'Add New File' dialog. An explicit reference to the folder is maintained in the csproj. Drag the new file out of the folder into another folder (or project root). Another explicit reference is added.
2) The same as '1' except use the 'Add existing file' dialog
3) The same as '1' except drag a file into the folder from somewhere else

Similarly, if the last file is removed or deleted from a folder, an explicit reference is not added to the csproj to ensure the folder is persisted.

Note: You may need to rename the directory for this to have a visible effect, but i end up with issues like this in my csproj: http://screencast.com/t/UhkzFuFpUT
Comment 1 Will Smith 2017-08-22 21:48:33 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.