asp.net-core-3.1

Endpoint Routing .net core 3-Multiple Areas

流过昼夜 提交于 2020-01-15 03:41:29
问题 I am trying to migrate from .net core 2.2 routing to endpoint routing in asp.net core 3 with following route in startup My .net core 2.2 route were routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); routes.MapRoute( name: "AppArea", template: "{area:exists}/{controller=Home}/{did?}/{action=Index}/{id?}"); .net core 3 route app.UseEndpoints(routes => { routes.MapControllerRoute( name:"default", pattern:"{controller=Home}/{action=Index}/{id?}"); routes

Simply Adding Entity Framework Core to a basic Azure function application results in an error

放肆的年华 提交于 2020-01-14 02:10:08
问题 It's very simple to describe: Create a new solution using the "Azure Functions" template from Visual Studio 2019 (16.4.1). Change the TargetFramework to ".NET Core 3.1". It will be created with Microsoft.NET.Sdk.Functions (1.0.29). Update it to the latest version (3.0.1). It will not work, because now we will need some other nuget packages: Microsoft.Azure.WebJobs.Core (3.0.14) Microsoft.Azure.WebJobs.Extensions.Http (3.0.2) At this moment, the application runs in the emulator. Just start the