2
respostas

Ao baixar e executar o projeto final da primeira aula ocorrem vários erros.

Boa noite! Gostaria de saber como resolver os erros abaixo.

Severity Code Description Project File Line Suppression State Warning MSB3245 Could not resolve this reference. Could not locate the assembly "Microsoft.IdentityModel.Tokens". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. Alura.WebAPI.Seguranca C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 2182

Error CS0234 The type or namespace name 'IdentityModel' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) Alura.WebAPI.Seguranca C:\Users\WINDOWS 8.1\Documents\TI\Alura\WebAPI\Alura.WebAPI\Alura.WebAPI.Seguranca\SigningConfigurations.cs 1 Active

Error CS0246 The type or namespace name 'SecurityKey' could not be found (are you missing a using directive or an assembly reference?) Alura.WebAPI.Seguranca C:\Users\WINDOWS 8.1\Documents\TI\Alura\WebAPI\Alura.WebAPI\Alura.WebAPI.Seguranca\SigningConfigurations.cs 9 Active

Error CS0006 Metadata file 'C:\Users\WINDOWS 8.1\Documents\TI\Alura\WebAPI\Alura.WebAPI\Alura.WebAPI.Seguranca\bin\Debug\netcoreapp2.1\Alura.WebAPI.Seguranca.dll' could not be found Alura.WebAPI.WebApp C:\Users\WINDOWS 8.1\Documents\TI\Alura\WebAPI\Alura.WebAPI\Alura.WebAPI.WebApp\CSC 1 Active

2 respostas

Olá Everton, como vai?

Acabei de fazer o download deste projeto, e por aqui funcionou.

Isso também está acontecendo com o primeiro projeto disponibilizado? Se sim, o erro é exatamente o mesmo? Senão, poderia fazer o teste? Você está utilizando a versão .Net Core 2.1?

Aguardo seu retorno.

No primeiro projeto funciona. Aparecendo apenas Warnings: Severity Code Description Project File Line Suppression State Warning NETSDK1071 A PackageReference to 'Microsoft.AspNetCore.App' specified a Version of 2.1.0. Specifying the version of this package is not recommended. For more information, see https://aka.ms/sdkimplicitrefs Alura.WebAPI.WebApp C:\Program Files\dotnet\sdk\5.0.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets 189

Estou usando a versao 5.0.5

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software