使用 git 和 MonoDevelop / Windows 7 进行项目

发布于 2024-12-27 02:03:54 字数 2007 浏览 6 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

凉风有信 2025-01-03 02:03:54

如果您的 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.

远昼 2025-01-03 02:03:54

MonoDevelop 的“NGit.Util.FS”的源路径中似乎有问题路径中的非法字符

尝试将源移动到另一个文件夹(出于测试原因,将其设置为 C:\Temp)并尝试再次打开项目

It seems like something wrong in your source path Illegal characters in path for 'NGit.Util.FS' for MonoDevelop

Try to move source to the another folder (for test reason let it be C:\Temp) and try to open project again

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文