Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

455
Vistas
Error trying to create a webapi in Visual Studio Code

I get this message in the terminal:

error NU1100: Unable to resolve 'Swashbuckle.AspNetCore (>= 5.6.3)' for 'net5.0'

I tried to run dotnet restore as it reccomended but it will not restore

over 4 years ago · Santiago Trujillo
4 Respuestas
Responde la pregunta

0

Could you make sure your .csproj file looks a little bit like this?

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>net5.0</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3" />
  </ItemGroup>

</Project>
over 4 years ago · Santiago Trujillo Denunciar

0

The problem may be with the missing of the nuget packages. I had the same problem.
Try these steps:

  1. Install the matching Nuget version from https://www.nuget.org/downloads
  2. If you already created a project, try adding --force after the new sln and web api creation commands to update the files.
over 4 years ago · Santiago Trujillo Denunciar

0

I was trying to build an API using dotnet CLI as well, for a couple of days now. Ended up getting no answer from microsoft, or another source of info.

Anyways, the only way I made it work was unstalling .NET SDK 5.0.203 (Latest version for the time being), and installing .NET SDK 5.0.101, and thats it, new api command works flawlessly.

over 4 years ago · Santiago Trujillo Denunciar

0

Just got the same issue on a clean machine. I managed to fix it running the command:

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

After that, create/restore your project and it should work.

source

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda