Commit e112f944 authored by Israel Ramos's avatar Israel Ramos Committed by Geovanni Perez

Issue155 update to asp.net core2.1 (#156)

Closes #146 & #155 

* updating to asp.net core 2.1

* packages and main startup main updated

* README.md and packages updated
parent a9528cd3
......@@ -93,7 +93,7 @@ To run as a sub application you need to modify the `base href="/"` value in the
## Troubleshooting
- If you find an **HTTP Error 502.5**, ensure you have installed [.NET Core Runtime 2.0.6 / SDK 2.1.2](https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.0.6-download.md), or better.
- At first run if you find an error (e.g. **HTTP Error 502.5**) first ensure you have installed [.NET Core Runtime 2.1.0 / SDK 2.1.300](https://www.microsoft.com/net/download/windows), or better.
- If you find an [HTTP Error 500](https://stackoverflow.com/questions/45415832/http-error-500-19-in-iis-10-and-visual-studio-2017) you can try
1. Press Win Key+R to Open Run Window
1. in the Run Window, enter "OptionalFeatures.exe"
......
......@@ -48,16 +48,15 @@ namespace Unosquare.PassCore.Web
/// <param name="args">The arguments.</param>
public static void Main(string[] args)
{
BuildWebHost(args).Run();
CreateWebHostBuilder(args).Build().Run();
}
#endregion
#region Methods
public static IWebHost BuildWebHost(string[] args) =>
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.Build();
.UseStartup<Startup>();
/// <summary>
/// This method gets called by the runtime. Use this method to add services to the container.
......
......@@ -3,7 +3,7 @@
<DefaultItemExcludes>$(DefaultItemExcludes);**\node_modules\**;node_modules\**</DefaultItemExcludes>
<DefaultItemExcludes>$(DefaultItemExcludes);**\jspm_packages\**;jspm_packages\**</DefaultItemExcludes>
<DefaultItemExcludes>$(DefaultItemExcludes);**\bower_components\**;bower_components\**</DefaultItemExcludes>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp2.1</TargetFramework>
<AssemblyName>Unosquare.PassCore.Web</AssemblyName>
<PackageId>Unosquare.PassCore.Web</PackageId>
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
......@@ -13,11 +13,11 @@
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore" Version="2.0.*" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.*" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.0.*" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.0.*" />
<PackageReference Include="Microsoft.AspNetCore.Rewrite" Version="2.0.*" />
<PackageReference Include="Microsoft.AspNetCore" Version="2.1.*" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.1.*" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.1.*" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.1.*" />
<PackageReference Include="Microsoft.AspNetCore.Rewrite" Version="2.1.*" />
<PackageReference Include="StyleCop.Analyzers" Version="1.0.*">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
......
......@@ -32,7 +32,7 @@
"@angular/common": "^6.0.0",
"@angular/compiler": "^6.0.0",
"@angular/core": "^6.0.0",
"@angular/flex-layout": "^5.0.0-beta.15",
"@angular/flex-layout": "^6.0.0-beta.16",
"@angular/forms": "^6.0.0",
"@angular/http": "^6.0.0",
"@angular/material": "6.0.1",
......@@ -40,10 +40,9 @@
"@angular/platform-browser-dynamic": "^6.0.0",
"@angular/router": "^6.0.0",
"core-js": "^2.5.5",
"ng-recaptcha": "^3.0.5",
"ng-recaptcha": "^4.0.0-beta.1",
"reflect-metadata": "^0.1.12",
"rxjs": "^6.1.0",
"rxjs-compat": "^6.1.0",
"zone.js": "^0.8.26"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment