2012-01-13 58 views
2

我在Visual Web Developer Express 2010上创建了一个项目,并将它添加到github中。使用git和MonoDevelop/Windows 7的项目

https://github.com/vmrocha/jQueryLab

当我尝试建立它的MonoDevelop或打开“版本控制”菜单中,我得到以下错误:

System.TypeInitializationException: The type initializer for 'NGit.Util.FS' threw an exception. ---> System.ArgumentException: Illegal characters in path. 
    at System.IO.Path.CheckInvalidPathChars(String path) 
    at System.IO.Path.Combine(String path1, String path2) 
    at Sharpen.FilePath..ctor(String other, String child) 
    at NGit.Util.FS.SearchPath(String path, String[] lookFor) 
    at NGit.Util.FS_Win32_Cygwin.IsCygwin() 
    at NGit.Util.FS.Detect(Nullable`1 cygwinUsed) 
    at NGit.Util.FS.Detect() 
    at NGit.Util.FS..cctor() 
    --- End of inner exception stack trace --- 
    at NGit.BaseRepositoryBuilder`2.SetupWorkTree() 
    at NGit.BaseRepositoryBuilder`2.Setup() 
    at NGit.Storage.File.FileRepository..ctor(FilePath gitDir) 
    at NGit.Storage.File.FileRepository..ctor(String gitDir) 
    at MonoDevelop.VersionControl.Git.LocalGitRepository..ctor(String path) 
    at MonoDevelop.VersionControl.Git.GitRepository..ctor(FilePath path, String url) 
    at MonoDevelop.VersionControl.Git.GitVersionControl.GetRepositoryReference(FilePath path, String id) 
    at MonoDevelop.VersionControl.VersionControlService.GetRepositoryReference(String path, String id) 
    at MonoDevelop.VersionControl.VersionControlService.GetRepository(IWorkspaceObject entry) 
    at MonoDevelop.VersionControl.SolutionVersionControlCommandHalder.GetItems() 
    at MonoDevelop.VersionControl.SolutionVersionControlCommandHalder.Update(CommandInfo info) 
    at MonoDevelop.Components.Commands.CommandHandler.InternalUpdate(CommandInfo info) 
    at MonoDevelop.Components.Commands.CommandManager.DefaultUpdateCommandInfo(ActionCommand cmd, CommandInfo info) 
    at MonoDevelop.Components.Commands.CommandManager.GetCommandInfo(Object commandId, CommandTargetRoute targetRoute) 

回答

0

好像在你的源路径Illegal characters in path为'不对劲NGit.Util.FS”为MonoDevelop的

尝试源移动到其他文件夹(用于测试的原因让它成为C:\ Temp),然后尝试打开项目再次

+0

它没有工作! = T – 2012-02-12 01:40:39

2

如果您的MonoDevelop项目位于Git存储库中,会发生这种情况。 Windows + Git + MonoDevelop是一个致命的组合。要解决此问题,请进入MonoDevelop - > Tools - > Add-in Manager - > Version Control - 然后禁用Git支持。

+0

我在Unity + MonoDevelop中遇到过同样的情况。这些步骤解决了我的问题。谢谢马特。 – 2013-06-09 08:54:17