Nuget 项目类库 [英] Nuget project class library

查看:28
本文介绍了Nuget 项目类库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 Visual Studio 2017 Enterprise 时遇到问题.当我想发布一个 Nuget 包时,我只能用 .Net Standard 类库项目来做.我不能用 .Net Framework 类库项目来做到这一点.也许我缺少一种依赖,但我不知道是哪一种.如果你能帮我.非常感谢

I have a problem with Visual Studio 2017 Enterprise. When I want to publish a Nuget package, I can only do it with a .Net Standard class library project. I can't do this with .Net Framework class library project. perhaps I'm missing a dependance but I don't know which one. If you could help me. Thank you very much

推荐答案

感谢您的回复,我找到了解决方案.实际上有必要这样做:

Thanks for your reply, I found the solution. In fact it is necessary to do this:

  1. 创建一个 .Net 项目标准类库,
  2. 关闭项目,
  3. 进入.csproj文件并替换netstandard1.4
    通过元素 net461

重新打开项目,我们应该可以发布它的类库

reopen the project and we should be able to publish its class library

链接:如何创建带有 Visual Studio 2017 的 Nuget 包

这篇关于Nuget 项目类库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆