Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的库(NetMQ)依赖于 JetBrains.Annotations,但是我希望它只是一个开发依赖项,并且不希望它出现在使用“dotnet pack”生成的 nuspec 文件中。
如何使用 project.json 设置依赖项和开发依赖项?
似乎设置要构建的依赖项的类型可以解决问题,如下所示:
"dependencies": { "JetBrains.Annotations": { "version": "10.1.5", "type" : "build" } }