2017-10-26 3 views
3

프로젝트가있는 폴더에있을 때 "dotnet xunit"할 수 있습니다.명령 줄에서 "dotnet xunit PathToLibrary.dll"을 실행하는 방법 (연속 통합)

이미 컴파일 된 dll을 매개 변수로 전달하려는 명령 줄에서 어떻게 할 수 있습니까?

dotnet xunit PathToLibrary.dll 

나는 오류 얻을 : 나는 현재 폴더에 "xunit.execution.desktop.dll"(nuget xunit.core.2.3.0에서 얻을)를 복사 한

No executable found matching command "dotnet-xunit" 

을,하지만 않습니다 도움이 안돼.

답변

6

DOTNET-xUnit의 그래서 당신의 .csproj이

<ItemGroup> 
    <DotNetCliToolReference Include="dotnet-xunit" Version="2.3.0" /> 
</ItemGroup> 

다음

dotnet restore 
을 포함 점검하십시오 per-project CLI tool

Consuming these tools requires you to add a <DotNetCliToolReference> element to your project file for each tool you want to use. Inside the <DotNetCliToolReference> element, you reference the package in which the tool resides and specify the version you need. After running dotnet restore, the tool and its dependencies are restored.

입니다

관련 문제