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

dotnet pack command does not generate .nuget packages for tests and spec projects?

$
0
0

We have a solution with mutiple projects that includes projects with unit and spec tests. When we run dotnet pack command on the solution the packages donot get generated for the unit and spec test projects. This is a good thing that it excludes test prjoects. Just wanted to understand how does not dotnet pack command exclude projects from being packaged.

On experimenting i noticed that when i added project dependency to xunit and xnit.runner.visualstudio on any project then dotnet pack doesn't generate packages for that project.

dotnet pack C:\Projects\SysScore_Integration\SysScore\SysScore.sln --output C:\Projects\LocalNuGet\ /p:PackageVersion=1.0.1.8


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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