Bug 13980 - unable to add existing project to solution (4.1.9 build 6) + solution parsing problem
Summary: unable to add existing project to solution (4.1.9 build 6) + solution parsing...
Status: RESOLVED DUPLICATE of bug 17
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: Trunk
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: master
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2013-08-14 15:00 UTC by Jonathan Shore
Modified: 2013-08-14 17:56 UTC (History)
2 users (show)

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


Attachments
screenshot of the 2 problems (96.30 KB, image/png)
2013-08-14 15:00 UTC, Jonathan Shore
Details
Xamarin Studio log with the full exception (46.71 KB, application/octet-stream)
2013-08-14 15:00 UTC, Jonathan Shore
Details
Our solution file (137.44 KB, application/octet-stream)
2013-08-14 15:01 UTC, Jonathan Shore
Details
project file (2.28 KB, application/octet-stream)
2013-08-14 17:12 UTC, Steve Wang
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 DUPLICATE of bug 17

Description Jonathan Shore 2013-08-14 15:00:13 UTC
Created attachment 4630 [details]
screenshot of the 2 problems

Since the upgrade to 4.0.12 on the stable release, was not able to add files or folders to the solution.  We moved to the alpha channel (4.1.9 build6) and this works.

However, for a number of different operations we get complaints about the solution:

"Save failed, a name did not start with a legal character 32 () Line 1, position 108"

Looking at our solution do not see any plausible issue (and this solution loaded fine in a prior version).

Secondly, we cannot add an existing project to the solution.  We get an NGit exception (even though we are not using git as our source control, rather SVN).

Have attached an image of the exception windows, the Xamarin Studio ide log, and the solution file.
Comment 1 Jonathan Shore 2013-08-14 15:00:50 UTC
Created attachment 4631 [details]
Xamarin Studio log with the full exception
Comment 2 Jonathan Shore 2013-08-14 15:01:35 UTC
Created attachment 4632 [details]
Our solution file
Comment 3 Jonathan Shore 2013-08-14 15:04:45 UTC
I should note that this solution loads file in visual studio 2011.  Also can add the project there. The resulting solution can be read by Xamarin Studio.   We use macs though, so would prefer to do these operations in Xamarin Studio.
Comment 4 Mikayla Hutchinson [MSFT] 2013-08-14 16:17:06 UTC
The error seems to be in writing the project file. Could you attach that?
Comment 5 Jonathan Shore 2013-08-14 17:10:11 UTC
Not sure if that is the case.  Any operation that would affect the .sln gives that message (it is not fatal).  For example, if I go to a random App in the solution and "Set As Startup Project", will give that error.

I know that the startup project is kept in the solution file.

In any case, my colleague will post the project file for the project he was trying to add.
Comment 6 Jonathan Shore 2013-08-14 17:11:24 UTC
The NGit exception error (you'll see in the log) is separate.  I believe this NGit error is the one preventing the addition of the project to the solution.  Not sure.
Comment 7 Steve Wang 2013-08-14 17:12:05 UTC
Created attachment 4634 [details]
project file

project file as you requested.
Comment 8 Mikayla Hutchinson [MSFT] 2013-08-14 17:56:30 UTC
I'm not sure that's the right project to reproduce this issue.

It's trying to save a project, and trying to write invalid XML into a property. It looks like a dup of https://bugzilla.xamarin.com/show_bug.cgi?id=17

ERROR [2013-08-14 14:47:27Z]: System.Xml.XmlException: a name did not start with a legal character 32 ( )  Line 1, position 108.
  at Mono.Xml2.XmlTextReader.ReadName (System.String& prefix, System.String& localName) [0x0011f] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:2714 
  at Mono.Xml2.XmlTextReader.ReadStartTag () [0x00043] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1340 
  at Mono.Xml2.XmlTextReader.ReadContent () [0x00133] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:1282 
  at Mono.Xml2.XmlTextReader.Read () [0x00141] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:573 
  at System.Xml.XmlTextReader.Read () [0x0006b] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/System.XML/System.Xml/XmlTextReader2.cs:566 
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00363] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/System.XML/System.Xml/XmlDocument.cs:1021 
  at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00032] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/System.XML/System.Xml/XmlDocument.cs:868 
  at System.Xml.XmlElement.set_InnerXml (System.String value) [0x00089] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/System.XML/System.Xml/XmlElement.cs:156 
  at MonoDevelop.Projects.Formats.MSBuild.MSBuildProperty.set_Value (System.String value) [0x00008] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProject.cs:443 
  at MonoDevelop.Projects.Formats.MSBuild.MSBuildPropertyGroup.SetPropertyValue (System.String name, System.String value, Boolean preserveExistingCase) [0x00052] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProject.cs:606 
  at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.WritePropertyGroupMetadata (MSBuildPropertySet propGroup, MonoDevelop.Core.Serialization.DataCollection itemData, MonoDevelop.Projects.Formats.MSBuild.MSBuildSerializer ser, System.Object[] itemsToReplace) [0x0011f] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs:1626 
  at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.SaveProject (IProgressMonitor monitor) [0x007a9] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.9-branch/123fc693/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs:1149

*** This bug has been marked as a duplicate of bug 17 ***