Skip to content

Commit a0025f7

Browse files
author
Dmitry Sikorsky
committed
Updated to use ExtCore 5.0.0 and .NET Core 3.0.0
1 parent bfbe96b commit a0025f7

File tree

5 files changed

+38
-30
lines changed

5 files changed

+38
-30
lines changed

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# ExtCore Framework 4.0.0 Sample MVC Web Application
1+
# ExtCore Framework 5.0.0 Sample MVC Web Application
22

33
[![Join the chat at https://gitter.im/ExtCore/ExtCore](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ExtCore/ExtCore?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
44

55
## Introduction
66

77
[ExtCore](https://github.com/ExtCore/ExtCore) is free, open source and cross-platform framework for creating
88
modular and extendable web applications based on ASP.NET Core. It is built using the best and the most modern
9-
tools and languages (Visual Studio 2017, C# etc). Join our team!
9+
tools and languages (Visual Studio 2019, C# etc). Join our team!
1010

1111
This is the ExtCore framework sample MVC web application.
1212

@@ -22,20 +22,20 @@ add direct dependencies to the main web application project instead, but it is n
2222

2323
### Other Samples
2424

25-
* [Full-featured ExtCore 4.0.0 framework sample web application](https://github.com/ExtCore/ExtCore-Sample);
26-
* [ExtCore framework 4.0.0 sample simplest web application](https://github.com/ExtCore/ExtCore-Sample-Simplest);
27-
* [ExtCore framework 4.0.0 sample web application that uses file storage](https://github.com/ExtCore/ExtCore-Sample-FileStorage);
28-
* [ExtCore framework 4.0.0 sample web application that uses a database](https://github.com/ExtCore/ExtCore-Sample-Data);
29-
* [ExtCore framework 4.0.0 sample web application that uses Identity](https://github.com/ExtCore/ExtCore-Sample-Identity);
30-
* [ExtCore framework 4.0.0 sample web application with modular UI](https://github.com/ExtCore/ExtCore-Sample-Modular-Ui);
31-
* [ExtCore framework 4.0.0 advanced sample web application with modular UI](https://github.com/ExtCore/ExtCore-Sample-Modular-Ui-Adv);
32-
* [ExtCore framework 4.0.0 advanced sample accounting web application](https://github.com/ExtCore/ExtCore-Sample-Accounting);
33-
* [ExtCore framework 4.0.0 sample web application that registers a service inside the extension](https://github.com/ExtCore/ExtCore-Sample-Service);
34-
* [ExtCore framework 4.0.0 sample web application that uses the events](https://github.com/ExtCore/ExtCore-Sample-Events);
35-
* [ExtCore framework 4.0.0 sample API web application](https://github.com/ExtCore/ExtCore-Sample-Api).
36-
37-
You can also download our [ready to use full-featured sample](http://extcore.net/files/ExtCore-Sample-4.0.0.zip).
38-
It contains everything you need to run ExtCore-based web application from Visual Studio 2017, including SQLite
25+
* [Full-featured ExtCore 5.0.0 framework sample web application](https://github.com/ExtCore/ExtCore-Sample);
26+
* [ExtCore framework 5.0.0 sample simplest web application](https://github.com/ExtCore/ExtCore-Sample-Simplest);
27+
* [ExtCore framework 5.0.0 sample web application that uses file storage](https://github.com/ExtCore/ExtCore-Sample-FileStorage);
28+
* [ExtCore framework 5.0.0 sample web application that uses a database](https://github.com/ExtCore/ExtCore-Sample-Data);
29+
* [ExtCore framework 5.0.0 sample web application that uses Identity](https://github.com/ExtCore/ExtCore-Sample-Identity);
30+
* [ExtCore framework 5.0.0 sample web application with modular UI](https://github.com/ExtCore/ExtCore-Sample-Modular-Ui);
31+
* [ExtCore framework 5.0.0 advanced sample web application with modular UI](https://github.com/ExtCore/ExtCore-Sample-Modular-Ui-Adv);
32+
* [ExtCore framework 5.0.0 advanced sample accounting web application](https://github.com/ExtCore/ExtCore-Sample-Accounting);
33+
* [ExtCore framework 5.0.0 sample web application that registers a service inside the extension](https://github.com/ExtCore/ExtCore-Sample-Service);
34+
* [ExtCore framework 5.0.0 sample web application that uses the events](https://github.com/ExtCore/ExtCore-Sample-Events);
35+
* [ExtCore framework 5.0.0 sample API web application](https://github.com/ExtCore/ExtCore-Sample-Api).
36+
37+
You can also download our [ready to use full-featured sample](http://extcore.net/files/ExtCore-Sample-5.0.0.zip).
38+
It contains everything you need to run ExtCore-based web application from Visual Studio 2019, including SQLite
3939
database with the test data.
4040

4141
### Tutorials

src/Extension/Actions/UseMvcAction.cs renamed to src/Extension/Actions/UseEndpointsAction.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
namespace Extension.Actions
1010
{
11-
public class UseMvcAction : IUseMvcAction
11+
public class UseEndpointsAction : IUseEndpointsAction
1212
{
1313
public int Priority => 1000;
1414

15-
public void Execute(IRouteBuilder routeBuilder, IServiceProvider serviceProvider)
15+
public void Execute(IEndpointRouteBuilder endpointRouteBuilder, IServiceProvider serviceProvider)
1616
{
17-
routeBuilder.MapRoute(name: "Default", template: "{controller}/{action}", defaults: new { controller = "Default", action = "Index" });
17+
endpointRouteBuilder.MapControllerRoute(name: "Default", pattern: "{controller}/{action}", defaults: new { controller = "Default", action = "Index" });
1818
}
1919
}
2020
}

src/Extension/Extension.csproj

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
44
<Authors>Dmitry Sikorsky</Authors>
5-
<TargetFramework>netstandard2.0</TargetFramework>
5+
<TargetFramework>netcoreapp3.0</TargetFramework>
6+
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
67
</PropertyGroup>
78

89
<ItemGroup>
9-
<EmbeddedResource Include="Styles\**;Views\**" />
10+
<EmbeddedResource Include="Styles\**" />
1011
</ItemGroup>
1112

13+
<PropertyGroup>
14+
<DefaultItemExcludes>$(DefaultItemExcludes);Styles\**</DefaultItemExcludes>
15+
</PropertyGroup>
16+
1217
<ItemGroup>
13-
<PackageReference Include="ExtCore.Mvc.Infrastructure" Version="4.0.0" />
18+
<PackageReference Include="ExtCore.Mvc.Infrastructure" Version="5.0.0" />
1419
</ItemGroup>
1520

1621
</Project>

src/WebApplication/WebApplication.csproj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
<PropertyGroup>
44
<Authors>Dmitry Sikorsky</Authors>
5-
<TargetFramework>netcoreapp2.2</TargetFramework>
5+
<TargetFramework>netcoreapp3.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.2.0" />
10-
<PackageReference Include="ExtCore.Mvc" Version="4.0.0" />
11-
<PackageReference Include="ExtCore.WebApplication" Version="4.0.0" />
9+
<PackageReference Include="ExtCore.Mvc" Version="5.0.0" />
10+
<PackageReference Include="ExtCore.WebApplication" Version="5.0.0" />
1211
</ItemGroup>
1312

1413
</Project>

src/WebApplication/web.config

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
<configuration>
33
<system.webServer>
44
<handlers>
5-
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
5+
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
66
</handlers>
7-
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false"/>
7+
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" hostingModel="InProcess">
8+
<environmentVariables>
9+
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
10+
</environmentVariables>
11+
</aspNetCore>
812
</system.webServer>
9-
</configuration>
13+
</configuration>

0 commit comments

Comments
 (0)