admin管理员组文章数量:1315306
I installed HttpClientToCurl on my project to inspect and export some requests, but I don't want to bring unwanted dependencies on the project, I mean, it is only for debuggind purpuse and no reference of such library should end in production code.
So I'm asking if in nuget there is something like the npm i --save-dev
to save a library as a dependency but only for development, and it wont end in the published package.
I read that the most similar idea is marking the PackageReference as PrivateAssets
<PackageReference Include="HttpClientToCurl" Version="2.0.6">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Is that true? I mean if I add PrivateAssets=all
wouldn't the package installer still add the HttpClientToCurl library but without exporting it?
本文标签: Is there a way to install a nuget package only for development environmentStack Overflow
版权声明:本文标题:Is there a way to install a nuget package only for development environment? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741978665a2408270.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论