1
我正在使用libgit2sharp的库,我试图包含在一个asp.net WEB API项目。Libgit2Sharp编译时间错误
库本身的构建没有任何问题。此外,使用我开发的库的控制台和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
这不是通常的使用错误,这些都没有解决我只是写我如何解决在这个特定情况下的问题。 我基本上下载了libgit2sharp源代码,并且自己构建它而不是使用nuget包。然后我将Release文件夹复制到我的项目中。之后,我将libgit2sharp.dll作为参考,然后将特定于平台(win32/x64)的git2-1196807.dll作为常规文件,并将复制到输出目录设置设置为始终。 – medivh