Skip to content

Commit 5c662c7

Browse files
author
Dmitry Sikorsky
committed
Updated to use ExtCore 3.3.0
1 parent e4220c8 commit 5c662c7

File tree

5 files changed

+23
-35
lines changed

5 files changed

+23
-35
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ExtCore Framework 3.2.0 Sample MVC Web Application
1+
# ExtCore Framework 3.3.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

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

2323
### Other Samples
2424

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

src/Extension/Extension.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

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

88
<ItemGroup>
99
<EmbeddedResource Include="Styles\**;Views\**" />
1010
</ItemGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="ExtCore.Mvc.Infrastructure" Version="3.2.0" />
13+
<PackageReference Include="ExtCore.Mvc.Infrastructure" Version="3.3.0" />
1414
</ItemGroup>
1515

1616
</Project>

src/WebApplication/Program.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright © 2017 Dmitry Sikorsky. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4-
using System.IO;
54
using Microsoft.AspNetCore;
65
using Microsoft.AspNetCore.Hosting;
76

@@ -11,15 +10,11 @@ public class Program
1110
{
1211
public static void Main(string[] args)
1312
{
14-
Program.BuildWebHost(args).Run();
13+
CreateWebHostBuilder(args).Build().Run();
1514
}
1615

17-
public static IWebHost BuildWebHost(string[] args) =>
16+
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
1817
WebHost.CreateDefaultBuilder(args)
19-
.UseContentRoot(Directory.GetCurrentDirectory())
20-
.UseKestrel()
21-
.UseIISIntegration()
22-
.UseStartup<Startup>()
23-
.Build();
18+
.UseStartup<Startup>();
2419
}
2520
}

src/WebApplication/Startup.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,16 @@
66
using Microsoft.AspNetCore.Hosting;
77
using Microsoft.Extensions.Configuration;
88
using Microsoft.Extensions.DependencyInjection;
9-
using Microsoft.Extensions.Logging;
109

1110
namespace WebApplication
1211
{
1312
public class Startup
1413
{
1514
private string extensionsPath;
1615

17-
public Startup(IHostingEnvironment hostingEnvironment, ILoggerFactory loggerFactory)
16+
public Startup(IHostingEnvironment hostingEnvironment, IConfiguration configuration)
1817
{
19-
IConfigurationBuilder configurationBuilder = new ConfigurationBuilder()
20-
.SetBasePath(hostingEnvironment.ContentRootPath)
21-
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true);
22-
23-
IConfigurationRoot configurationRoot = configurationBuilder.Build();
24-
25-
this.extensionsPath = hostingEnvironment.ContentRootPath + configurationRoot["Extensions:Path"];
18+
this.extensionsPath = hostingEnvironment.ContentRootPath + configuration["Extensions:Path"];
2619
}
2720

2821
public void ConfigureServices(IServiceCollection services)

src/WebApplication/WebApplication.csproj

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

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

88
<ItemGroup>
9-
<PackageReference Include="ExtCore.Mvc" Version="3.2.0" />
10-
<PackageReference Include="ExtCore.WebApplication" Version="3.2.0" />
9+
<PackageReference Include="ExtCore.Mvc" Version="3.3.0" />
10+
<PackageReference Include="ExtCore.WebApplication" Version="3.3.0" />
1111
</ItemGroup>
1212

1313
</Project>

0 commit comments

Comments
 (0)