Visual Studio 2010 中 Subversion 与 C# 的连接
我正在使用 subversion Sharpsvn 连接库,但总是收到错误。 代码如下:
SvnClient client = new SvnClient();
string targetSource = "http://xxxxxxx/svn/xxxx/xxxx/";
string uriDest = "C:/Documents and Settings/user/My documents/Jesus/project/test";
client.CheckOut(new Uri(targetSource), uriDest, SvnRevision.Head.Revision, true);
虽然缺乏身份验证,但如果我尝试运行此代码,我会在项目的 Main () 中收到以下错误:
“混合模式程序集是使用版本“v2.0.50727”运行时编译,如果没有附加配置信息,则无法在运行时 4.0 加载。”
I am using to connect the library with subversion Sharpsvn but I always get an error.
The code is as follows:
SvnClient client = new SvnClient();
string targetSource = "http://xxxxxxx/svn/xxxx/xxxx/";
string uriDest = "C:/Documents and Settings/user/My documents/Jesus/project/test";
client.CheckOut(new Uri(targetSource), uriDest, SvnRevision.Head.Revision, true);
Although lack of authentication, if I try to run this code I get the following error in the Main () of the project:
"The mixed-mode assembly was compiled with version 'v2.0.50727' runtime and can not be loaded at runtime 4.0 without additional configuration information."
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将其放入您的配置文件中:
似乎所使用的库不是针对 .NET 4.0 运行时而构建的。
Put this in your config file:
It seems that the used library is not built to target the .NET 4.0 runtime.