I'm working on a nuget build pipeline. My problem is that my integration test project is being packaged and deployed to the azure artifacts, while my unit test projects are not.
The integration test project is a console application. I want it in the project, but I don't want it to deploy into the artifacts.
My Projects in the solution:
- MyProject.Common
- MyProject.Common.UnitTests
- MyProject
- MyProject.UnitTests
- MyProject.IntegrationTests
I am using .net core v2 steps
Restore
Build
Test
Publish
Pack
Push
Test Path to project (works)
**/*[Uu]nit[Tt]ests.csproj
Publish Path to projects (works)
!**/*[Tt]ests.csproj
**/*.csproj
Pack path to project (does not work - filters unit test projects, but not integration test)
!**/*[Tt]ests.csproj;**/*.csproj