Bug 36536 - Creating new project within existing solution folder defaults to wrong location on disk
Summary: Creating new project within existing solution folder defaults to wrong locati...
Status: NEW
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: 5.10 (C6SR3)
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Matt Ward
Depends on:
Reported: 2015-12-03 15:55 UTC by Aaron Bockover [MSFT]
Modified: 2015-12-04 14:51 UTC (History)
2 users (show)

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 for Bug 36536 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Aaron Bockover [MSFT] 2015-12-03 15:55:48 UTC
The default path to write a new project to when adding the project to a solution folder seems to be set to the location of the first project already in the solution folder, and not its parent path.



If I right click on <Solution Folder> and add a new project, the output path for the new project will be <Solution>/<FirstExistingProject> and not <Solution>.

Screencast: http://screencast.com/t/sYKPj4faH
Comment 1 Matt Ward 2015-12-04 14:51:17 UTC
Mmm, I am unable to reproduce this. I tried on a few solutions and also tried the one you have open. I get the solution directory when the inspector solution is opened.

The code always just seems to use solutionFolder.BaseDirectory as the location, which should never be one of the project directories.

The screencast is interesting. The right click menu options are showing menu items for a different node (Xamarin.Inspector). I have seen that sometimes when using the Mac's track pad where the Solution window still seems to think a different tree node is selected. However even after reproducing that I still do not get the project's directory as the location in the New Project dialog.

So I have no idea how this is happening.