我嘗試了Visual Studio 2013中的BDD。我已經開始了一個新的空白項目。我寫了功能文件和步驟定義。我使用NugGet包添加了SpecFlow。它安裝SpecFlow版本2.1.0 當我建立我搜索SpecFlow在金塊包只有1個被列爲它正在尋找SpecFlow版本1.9.0.77無法加載文件或程序集TechTalk.SpecFlow,Version = 1.9.0.77
的解決方案。我安裝了它,我相信它是最新版本2.1.0 爲什麼解決方案尋找1.9.0.77的舊版本? 如果決議要安裝1.9.0.77我該如何安裝它,我如何在NugGet中找到這個版本?
完整的錯誤軌跡是:
Custom tool error: Generation error: Could not load file or assembly 'TechTalk.SpecFlow, Version=1.9.0.77, Culture=neutral, PublicKeyToken=0778194805d6db41' or one of its dependencies. The system cannot find the file specified. E:\RL Fusion\projects\BDD\C# BDD\youtubetutorial2\specflowfirst\SpecflowFirst\SpecflowFirst\Features\GoogleSearch.feature 2 2 SpecflowFirst
感謝,里亞茲
的進口:
using Baseclass.Contrib.SpecFlow.Selenium.NUnit.Bindings;
using OpenQA.Selenium;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TechTalk.SpecFlow;
using TechTalk.SpecFlow.Assist;
我想我已經完成了。鍵入命令在NugGet管理器控制檯中的Install-Package SpecFlow -Version 1.9.0 –
我卸載了SpecFlow 2.1.0我使用了NugGet Manager控制檯來安裝1.9.0,現在當我構建解決方案時,它仍然抱怨它找不到1.9.0.77 –
這是因爲包SpecFlow.Assist.Dynamic依賴於SpecFlow 2.1.0是否在Visual Studio 2013中不支持SpecFlow 2.1.0? –