Browse Source

Added UseIIS

pull/1271/head
Halil İbrahim Kalkan 7 years ago
parent
commit
64352b6df3
  1. 1
      samples/BookStore/src/Acme.BookStore.Web/Acme.BookStore.Web.csproj
  2. 1
      samples/BookStore/src/Acme.BookStore.Web/Program.cs

1
samples/BookStore/src/Acme.BookStore.Web/Acme.BookStore.Web.csproj

@ -4,6 +4,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework> <TargetFramework>netcoreapp2.2</TargetFramework>
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback> <AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType> <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>

1
samples/BookStore/src/Acme.BookStore.Web/Program.cs

@ -43,6 +43,7 @@ namespace Acme.BookStore.Web
.UseKestrel() .UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory()) .UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration() .UseIISIntegration()
.UseIIS()
.UseStartup<Startup>() .UseStartup<Startup>()
.UseSerilog() .UseSerilog()
.Build(); .Build();

Loading…
Cancel
Save