Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When using the latest Monodevelop and VS 2012 RC to share code I get problems

When using the latest Monodevelop and VS 2012 RC to share code. I can load and use the .sln solution, .csproj project files, and all the code files from either a Mac running MonoDevelop and a Windows 7 PC running the latest VS 2012 beta. The source code is on a share between the machines.

This works really well... but at some stage when I try to reload the solution project under MonoDevelop on the mac MonoDevelop thinks the solution file .sln is a Hex file and loads and displays it hex in a Window. It doesn't think its a solution file anymore!

I notice the file lines are terminated with 0D 0A, which is correct for the PC. . I know the Mac uses just 0D as in ... but its like that initially and works. The contents look fine to me!

If I create a new solution on Mac MonoDevelop then drop the exiting csproj's into it it works fine. Until it doesn't....

Any ideas?

like image 680
AnthonyLambert Avatar asked Jun 15 '12 10:06

AnthonyLambert


1 Answers

The problem is that the VS SLN files now start with:

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2010

Whereas they need to start with:

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010

I reported this to Xamarin - and they've already got a patch - https://bugzilla.xamarin.com/show_bug.cgi?id=4919

Alternatively, just manually hack the files - that's what I do.

like image 183
Stuart Avatar answered Nov 09 '22 00:11

Stuart