I have an VS solution file (.sln) which consists .net standard libraries and test projects. Now the project has an Integration test project that is targeted against .net Framework 4.7.2.
My current build pipeline does the following dotnet build dotnet pack dotnet push
With the dotnet pack, I am trying to excldude the project Integration.Tests.csproj.
My current folder structure looks like the following
CompanyName.Service\CompanyName.Service.csproj
CompanyName.Data\CompanyName.Data.csproj
Integration.Tests\Integration.Tests.csproj
According to the helper tooltip in the path to include/exclude we can do it like the following
**/*.csproj;-:**/*.Tests.csproj
However the dotnet pack task simply is not ignoring the Integration.Tests.csproj. It tries to pack it and it fails. I'm not sure what I am doing wrong or if this is an issue with the task. I haven't been able to locate any known issues on this so far.
Note: Prior to having that project in my solution, the pipeline was working fine with the projects being packed and published to nuget.