Bug 13875 - Classes getting nested under storyboards, XIB's, etc.
Summary: Classes getting nested under storyboards, XIB's, etc.
Status: RESOLVED INVALID
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: 4.0.12
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: master
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2013-08-08 21:11 UTC by Neal
Modified: 2013-08-20 12:20 UTC (History)
1 user (show)

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


Attachments
nesting (57.70 KB, image/png)
2013-08-08 21:11 UTC, Neal
Details


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 INVALID

Description Neal 2013-08-08 21:11:00 UTC
Created attachment 4591 [details]
nesting

Hello,

I continue to find files getting nested in places they should not be.  Look at the attached image and see how our Main.cs class is nested under a storyboard.  I have no idea why this is happening.  I have to search for classes I can't find then find them nested oddly as this.  I checked the .csproj file and I see this:

    <Compile Include="Settings\Main.cs">
      <DependentUpon>SettingStoryboard.storyboard</DependentUpon>
    </Compile>

I'm not sure why this happened!
Comment 1 Neal 2013-08-09 09:22:42 UTC
I fixed about a dozen of these after reporting this.  I even found images nested in images, PDF's nested, etc.  Very unfortunate but glad I found it.
Comment 2 Lluis Sanchez 2013-08-20 10:14:02 UTC
Maybe you accidentally nested the files using drag&drop?
Comment 3 Neal 2013-08-20 10:55:13 UTC
I found numerous kinds of numerous types even images nested upon images.  Regardless of drag/drop, the DependentUpon should only be for certain file types.  Why would an image be dependent upon another image?  Can you drag and drop and nest images in Visual Studio?  I don't think so.
Comment 4 Mikayla Hutchinson [MSFT] 2013-08-20 11:56:57 UTC
There are lot of things you can do in XS that you can't do in VS.

Grouping images could make sense for e.g. retina variants.
Comment 5 Neal 2013-08-20 12:20:02 UTC
okay, never mind then, thanks.