Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Add nuget reference depending on IsTestProject

$
0
0

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.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>