0

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

abatishchev
  • 98,240
  • 88
  • 296
  • 433
loustalet
  • 72
  • 1
  • 9

1 Answers1

0

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

  1. create a .Net project Standard class library,
  2. close the project,
  3. go into the .csproj file and replace the item <TargetFramework>netstandard1.4</TargetFramework>
    by the element <TargetFramework>net461</TargetFramework>

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

link : How do I create a Nuget package with Visual Studio 2017

loustalet
  • 72
  • 1
  • 9
  • 1
    thanks for sharing your solution here, you could mark it as the answer, so it could help other community members who get the same issues. – Leo Liu Sep 29 '17 at 02:08