Bug 5457 - MonoDevelop fails to open project with obscure error message when it references an invalid directory
Summary: MonoDevelop fails to open project with obscure error message when it referenc...
Status: CONFIRMED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: 5.8
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2012-06-01 13:23 UTC by Michael Bayne
Modified: 2015-04-08 04:00 UTC (History)
6 users (show)

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


Attachments
Project demonstrating the error (4.28 KB, application/zip)
2015-04-07 14:18 UTC, Dave Dunkin
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 for Bug 5457 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:
Status:
CONFIRMED

Description Michael Bayne 2012-06-01 13:23:02 UTC
I have a project structure, that for other reasons, contains a symlink to a directory containing my resources. For example:

foo/foo.sln
foo/foo.csproj
foo/images -> ../../somewhereelse/images

In the foo.csproj file, I reference resources in that images directory:

  <ItemGroup>
    <Content Include="images\alphalayertest.png" />
  </ItemGroup>

For yet other reasons, that symlink became invalid. When this happened, MonoDevelop began to completely fail to open my project. Failing with the non-useful error message:

  Error while trying to load the project '/Users/me/foo/foo.csproj': The directory name is invalid.

It would be great if it would report the name of the directory that was invalid, or even just load the project and mark all of the resources referenced through the invalid symlink as in error. Anything would be better than the obscure error above, that sent me off on a wild goose chase, trying to figure out what had changed and what the error message could possibly have meant.
Comment 1 troy-dawson 2012-11-15 20:05:27 UTC
Yes, I just got this, when updating my monomac project and deleting the monomac symlink and creating a new symlink, upon reloading the solution the projects that had monomac dll links aren't even loading in the editor.

Deleting the new symlink to monomac project directory at least lets the project that references monomac.dll load up.

This is monodevelop 3.0.05
Comment 2 Dave Dunkin 2015-04-07 14:18:49 UTC
Created attachment 10661 [details]
Project demonstrating the error

This still happens in Xamarin Studio 5.8.2 (build 7).
Comment 3 John Miller [MSFT] 2015-04-07 16:31:54 UTC
I was able to reproduce this just trying to open the project from comment #2.