I would like to add PackageReference to selected projects in my Directory.Build.Props depending on IsTestProject prop from Microsoft.NET.Test.SDK. For example I would like to "coverlet.msbuild" be added to all test projects. The problem is that IsTestProject is set later in build chain. The question is - can I possibly use this or I rather had to depend on project name to do this right.
↧