0

我有一个项目,它有一个我的代码正在调用的外部 API 引用。API 本身没有,也不能驻留在我的程序文件夹中,因此复制所需的 dll 是不可能的。

但是,这使得 appveyor 根本无法构建我的项目,因为(显然)缺少所需的 dll。这是错误:

C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1697,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "PCompiler". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\projects\skyrimcompilehelper\Compiler\Compiler.csproj]
CompilerFactory.cs(25,11): error CS0246: The type or namespace name 'PCompiler' could not be found (are you missing a using directive or an assembly reference?) [C:\projects\skyrimcompilehelper\Compiler\Compiler.csproj]
CompilerFactory.cs(277,64): error CS0246: The type or namespace name 'CompilerNotifyEventArgs' could not be found (are you missing a using directive or an assembly reference?) [C:\projects\skyrimcompilehelper\Compiler\Compiler.csproj]
CompilerFactory.cs(293,68): error CS0246: The type or namespace name 'CompilerErrorEventArgs' could not be found (are you missing a using directive or an assembly reference?) [C:\projects\skyrimcompilehelper\Compiler\Compiler.csproj]
Command exited with code 1

有没有办法改变这一点,还是我必须在我的项目文件夹中包含所需的 DLL?

4

0 回答 0