Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

919
Visualizações
c# dotnet CLI "error: There are no versions available for the package 'Newtonsoft.Json'."

I am new to c# , I am trying to add package to my project I tried before to add "Microsoft.Toolkit.Uwp.Notifications" by dotnet cli dotnet add package Microsoft.Toolkit.Uwp.Notifications , and then tried to mimic Microsoft example Microsoft.Docs but it always shows this error , any help please?

info : Adding PackageReference for package 'Newtonsoft.Json' into project 'C:\Users\moham\cs\cs.csproj'. error: There are no versions available for the package 'Newtonsoft.Json'.

EDIT :

when I tried dotnet add package Newtonsoft.Json --version 13.0.1 I got this error : CMD error

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

I had the same issue, I fix it running this command

dotnet nuget add source --name nuget.org https://api.nuget.org/v3/index.json

See this issue https://github.com/dotnet/sdk/issues/4156 for more details.

Hope this helps you ;)

over 4 years ago · Santiago Trujillo Relatório

0

Welcome to the world of C#! While Microsoft.Toolkit.Uwp.Notifications doesn't appear to be dependent on Newtonsoft.Json, there may be another dependency in your project file. May I have you try adding Newtonsoft.Json FIRST, and then attempt to add the Mictrosoft.Toolkiy.Uwp.Notifications package afterwards?

dotnet add package Newtonsoft.Json --version 13.0.1
dotnet add package Microsoft.Toolkit.Uwp.Notifications --version 7.0.1
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda