Commit cfe6bfec authored by Geo Perez's avatar Geo Perez

Reducing packages

parent 485cb3e1
......@@ -66,7 +66,6 @@ namespace Unosquare.PassCore.Web
{
services.AddOptions();
services.Configure<AppSettings>(Configuration.GetSection(nameof(AppSettings)));
services.AddApplicationInsightsTelemetry(Configuration);
services.AddMvc();
#if DEBUG
services.AddSingleton<IPasswordChangeProvider, DebugPasswordChangeProvider>();
......@@ -87,9 +86,10 @@ namespace Unosquare.PassCore.Web
{
// Logging
log.AddConsole(Configuration.GetSection(LoggingSectionName));
log.AddDebug();
#if !DEBUG
log.AddDebug();
// HTTPS redirect
if (settings.Value.EnableHttpsRedirect)
{
......
......@@ -14,20 +14,10 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore" Version="2.0.*" />
<PackageReference Include="Microsoft.AspNetCore.ApplicationInsights.HostingStartup" Version="2.0.*" />
<PackageReference Include="Microsoft.AspNetCore.Hosting" Version="2.0.*" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.*" />
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="2.0.*" />
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="2.0.*" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.0.*" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.0.*" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.0.*" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.0.*" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.0.*" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="2.0.*" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="2.0.*" />
<PackageReference Include="Microsoft.AspNetCore.Rewrite" Version="2.0.*" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.0.*" />
<PackageReference Include="System.DirectoryServices.AccountManagement" Version="4.5.0-rc1" />
<PackageReference Include="StyleCop.Analyzers" Version="1.0.*">
<PrivateAssets>All</PrivateAssets>
......
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