1
我在使用NUnit構建這些簡單測試時遇到了問題。項目使用MStest傳遞構建,但只要切換到NUnit,構建失敗。AppVeyor:構建失敗:無法找到NUnit程序集
在構建過程中,我得到的錯誤基本上是:
無法解析此引用。找不到組件「nunit.framework」。檢查以確保程序集存在於磁盤上。如果 此引用是您的代碼所必需的,則可能會收到編譯 錯誤。
我從NUGET下載了NUnit 3.5,並將.dll添加到我的引用中,但仍然沒有任何內容。我也確保該引用的屬性將copy local屬性設置爲true。
這裏是AppVeyor我生成的日誌網址(https://ci.appveyor.com/project/ReevMich/traviscitest/build/1.0.26)
這是我appveyor.yml
內容是否有幫助:
version: 1.0.{build}
branches:
only:
- master
- dev
configuration: Debug
before_build:
- nuget restore
build:
verbosity: minimal
project: FizzBuzz.sln
test:
assemblies:
- '**\*.Test.dll'
artifacts:
- path: '**\*.nupkg'
name: NuGet
謝謝!gah它總是那麼小。 –