netcoreapp2.1

UWP project not compatible with netcoreapp2.1

若如初见. 提交于 2021-01-28 12:31:57
问题 I created an UWP app and I will use entityFrameworkCore to create my DB with code first. My app console (entityFrameworkCore app) works and creates my DB but when I make a reference to my UWP project it doesn't work and shows this error: The project uwp is not compatible with netcoreapp2.1(.NETCoreApp,version=v2.1) And when i would like add a reference in uwp to db project i have this error enter image description here 回答1: A .NET Core app cannot add a reference to a UWP app and vice versa.

Encrypting JWT security token supported algorithms

吃可爱长大的小学妹 提交于 2019-12-21 19:59:21
问题 I'm trying to sign and encode my JWt with this snippet: var claims = new Claim[] { new SomeClaimes() }; var scKey = Encoding.UTF8.GetBytes("SOME KEY"); var ecKey = Encoding.UTF8.GetBytes("SOME OTHER KEY"); var tokenDescriptor = new SecurityTokenDescriptor { Subject = new ClaimsIdentity(claims), SigningCredentials = new SigningCredentials( new SymmetricSecurityKey( scKey), SecurityAlgorithms.HmacSha512), EncryptingCredentials = new EncryptingCredentials( new SymmetricSecurityKey( ecKey), // I