使用 git 和 MonoDevelop / Windows 7 进行项目
我在 Visual Web Developer Express 2010 上创建了一个项目并将其添加到 github。
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)
I have created a project on Visual Web Developer Express 2010 and added it to github.
https://github.com/vmrocha/jQueryLab
When I try to build it on MonoDevelop or open the "Version Control" menu I get the following error:
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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您的 MonoDevelop 项目位于 Git 存储库中,就会发生这种情况。 Windows+Git+MonoDevelop 是一个致命的组合。要解决此问题,请进入 MonoDevelop ->工具->插件管理器->版本控制 - 然后禁用 Git 支持。
This is what can happen if your MonoDevelop project is in a Git repository. Windows+Git+MonoDevelop is a lethal combination. To fix this, go into MonoDevelop -> Tools -> Add-in Manager -> Version Control - and then disable Git support.
MonoDevelop 的“NGit.Util.FS”的源路径中似乎有问题
路径中的非法字符
尝试将源移动到另一个文件夹(出于测试原因,将其设置为 C:\Temp)并尝试再次打开项目
It seems like something wrong in your source path
Illegal characters in path
for 'NGit.Util.FS' for MonoDevelopTry to move source to the another folder (for test reason let it be C:\Temp) and try to open project again