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

喜你入骨 提交于 2019-12-05 18:14:39

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/11049049/when-using-the-latest-monodevelop-and-vs-2012-rc-to-share-code-i-get-problems

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!