Bug 13467 - Adding an existing project to a solution under version control does not add the csproj.
Summary: Adding an existing project to a solution under version control does not add t...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Version Control ()
Version: 4.0.10
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: master
Assignee: Alan McGovern
Depends on:
Reported: 2013-07-25 05:42 UTC by Adam
Modified: 2013-08-07 09:42 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 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 Adam 2013-07-25 05:42:00 UTC
Note: this is when using SVN

1. Solution already under version control.
2. Copy a folder in to the solution directory, which contains a csproj
3. In XS, Choose "add existing project"

The project is added, and is supposedly now under version control (because there is not option anywhere to 'add' is, just like items already added).

4. Add all files to version control

Commit all changes.

Build server complains that csproj doesnt exist! It's because XS never added the csproj to VCS.
Comment 1 Marius Ungureanu 2013-07-26 06:52:57 UTC
Could you tell me the layout of the folders? As in, where the .csproj is found relative to the directory that ended up getting added.
Comment 2 Adam 2013-08-03 20:07:33 UTC
Sorry for the late reply.

My structure was (*asterisk marks a file that has been added to VCS)


Then I copied a folder into the solution folder (using finder, so Xamarin doesnt know about it yet) so I had


Then, in Xamarin, I added the 'existing project' to the solution, I ended up with


Notice, how Xamarin added the .cs file to source control when I added the project, but NOT the csproj file.

When I committed all changes, I ended up breaking other peoples builds, because they had a solution within missing csproj files.
Comment 3 Marius Ungureanu 2013-08-07 09:42:22 UTC
This has been fixed and will be included in upcoming releases. :D