Ian Vink
Ian Vink

Reputation: 68740

VSTS not building Test.dll in Release

I have a ASP.NET Core 2.x application with three projects

The Tests project references the other projects, but is not referenced by the others of course.

I get the error:

[warning]No test assemblies found matching the pattern: \release*test*.dll,!\obj**,**\App.Tests.dll.

When VSTS builds the Release version, the agent work folder doesn't contain the App.Tests.dll so the VSTS Test runner doesn't run, there is no dll to run on.

enter image description here

Here is a picture of the agent build folder. No App.Test.dll

How can I get the agent to build the App.Tests.dll ?

enter image description here

Upvotes: 0

Views: 414

Answers (1)

Gyuwon
Gyuwon

Reputation: 26

You can use .NET Core task with 'test' command instead. It's a simpler way.

.NET Core task

Upvotes: 1

Related Questions