Libgit2Sharp编译时错误

时间:2017-02-21 19:29:00

标签: c# asp.net asp.net-web-api libgit2sharp

我正在使用libgit2sharp的库,我正在尝试包含在asp.net WEB API项目中。

图书馆本身没有任何问题。此外,使用我开发的库的Console和WPF项目编译没有任何问题。但是,当我在ASP.NET Web API项目中包含该库时,它会出现以下错误。

Failed to make the following project runnable: MYAPI(.NETFramework,Version=v4.5.2) reason: The process cannot access the file 'c:\path\to\project\packages\libgit2sharp.nativebinaries.1.0.164\libgit2\libgit2sharp.dll.config' 
because it is being used by another process. MYAPI    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets    262

1 个答案:

答案 0 :(得分:0)

您之前通过调试某个应用程序启动的某些* .vhost进程很可能正在使用您的文件。 Visual Studio有时不能正确杀死每个进程。

尝试以下

  1. 关闭视觉工作室并重新开始
  2. 如果1.没有帮助,请记录您的Windows帐户。再次登录。
相关问题