diff --git a/elFinder.NetCore.AzureStorage/elFinder.NetCore.AzureStorage.csproj b/elFinder.NetCore.AzureStorage/elFinder.NetCore.AzureStorage.csproj index b8427f0..e9e5062 100644 --- a/elFinder.NetCore.AzureStorage/elFinder.NetCore.AzureStorage.csproj +++ b/elFinder.NetCore.AzureStorage/elFinder.NetCore.AzureStorage.csproj @@ -1,6 +1,6 @@ - + - netcoreapp2.2 + netcoreapp2.2;netcoreapp3.0 Yevhen Noskov, Leniel Macaferi, Matt Gordon, Flavio Smirne N/A en-US @@ -8,13 +8,18 @@ Microsoft Azure Storage driver for elFinder.NetCore 1.2.1 + Library + true - + + + + diff --git a/elFinder.NetCore.Web/Startup.cs b/elFinder.NetCore.Web/Startup.cs index 1d84adb..6649ea3 100644 --- a/elFinder.NetCore.Web/Startup.cs +++ b/elFinder.NetCore.Web/Startup.cs @@ -1,10 +1,10 @@ -using System.IO; -using elFinder.NetCore.Drivers.AzureStorage; +using elFinder.NetCore.Drivers.AzureStorage; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; +using System.IO; namespace elFinder.NetCore.Web { @@ -33,12 +33,12 @@ public Startup(IConfiguration configuration) // This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { - services.AddMvc() - .SetCompatibilityVersion(CompatibilityVersion.Version_2_2); + services.AddControllersWithViews() + .AddNewtonsoftJson(); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. - public void Configure(IApplicationBuilder app, IHostingEnvironment env) + public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) { @@ -56,12 +56,11 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env) app.UseHttpsRedirection(); app.UseStaticFiles(); + app.UseRouting(); - app.UseMvc(routes => + app.UseEndpoints(endpoints => { - routes.MapRoute( - name: "default", - template: "{controller=Home}/{action=Index}/{id?}"); + endpoints.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}"); }); WebRootPath = env.WebRootPath; diff --git a/elFinder.NetCore.Web/elFinder.NetCore.Web.csproj b/elFinder.NetCore.Web/elFinder.NetCore.Web.csproj index 54a5fd3..bdb11c3 100644 --- a/elFinder.NetCore.Web/elFinder.NetCore.Web.csproj +++ b/elFinder.NetCore.Web/elFinder.NetCore.Web.csproj @@ -1,6 +1,6 @@  - netcoreapp2.2 + netcoreapp3.0 a13535c9-0a1e-4ed1-8437-bafcc87a57a9 en-US Yevhen Noskov, Leniel Macaferi, Matt Gordon, Flavio Smirne @@ -12,8 +12,8 @@ - - + + diff --git a/elFinder.NetCore/elFinder.NetCore.csproj b/elFinder.NetCore/elFinder.NetCore.csproj index b5ebb23..63f5aa7 100644 --- a/elFinder.NetCore/elFinder.NetCore.csproj +++ b/elFinder.NetCore/elFinder.NetCore.csproj @@ -1,6 +1,6 @@ - + - netcoreapp2.2 + netcoreapp2.2;netcoreapp3.0 Yevhen Noskov, Leniel Macaferi, Matt Gordon, Flavio Smirne N/A en-US @@ -8,6 +8,8 @@ https://github.com/gordon-matt/elFinder.NetCore 1.2.1 + Library + true @@ -17,9 +19,14 @@ - - + + + + + + + \ No newline at end of file