1
我正在使用ASP.NET MVC3,StructureMap和SharpSvn。
下面是我使用的代碼:無法加載文件或程序集「SharpSvn-DB44-20-Win32.dll」
public class SvnFileReader : ISvnFileReader
{
private readonly string _svnAddress;
public SvnFileReader(string svnAddress)
{
_svnAddress = svnAddress;
}
public void DownloadFiles(DirectoryInfo destination)
{
using (var svnClient = new SvnClient())
{
// checkout the code to the specified directory
svnClient.CheckOut(new Uri(_svnAddress), destination.FullName);
}
}
}
當我執行此代碼:
_svnFileReader.DownloadFiles(new System.IO.DirectoryInfo(@"d:\test"));
我收到以下錯誤信息:
無法加載文件或程序集 'file:/// D:\ Projects \ SvnFileReaderDemo \ bin \ SharpSvn-DB44-20-Win32.dll' 或它的一個依賴關係。預計模塊 包含程序集 清單。
任何幫助將不勝感激!
請問我可以怎麼做? –
@šljaker,我不知道你用什麼代碼來配置你的DI容器。 –
@Darin,我編輯了我的問題。 –