Skip to content

Commit

Permalink
updated peachpie Sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubmisek committed Feb 18, 2020
1 parent 333db0c commit f8ec28d
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 13 deletions.
7 changes: 7 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>
</PropertyGroup>

</Project>
5 changes: 5 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"msbuild-sdks": {
"Peachpie.NET.Sdk": "0.9.800"
}
}
2 changes: 1 addition & 1 deletion mediawiki
6 changes: 2 additions & 4 deletions server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Rewrite;
using Microsoft.Extensions.DependencyInjection;
using Peachpie.Web;

namespace Website.Server
{
Expand All @@ -14,10 +13,9 @@ static void Main(string[] args)
{
var root = System.IO.Directory.GetCurrentDirectory() + "/mediawiki";

var host = new WebHostBuilder()
.UseKestrel()
.UseUrls("http://*:5004/")
var host = WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.UseUrls("http://*:5004/")
.UseWebRoot(root)
.UseContentRoot(root)
.Build();
Expand Down
14 changes: 6 additions & 8 deletions server/server.csproj
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk.Web">

<!-- $(PeachpieVersion) property from the current Peachpie.NET.Sdk -->
<Import Project="Version.props" Sdk="Peachpie.NET.Sdk" Condition=" '$(PeachpieVersion)'=='' " />

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="2.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Session" Version="2.0.1" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Rewrite" Version="2.0.1" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="2.0.0" />
<PackageReference Include="Peachpie.NETCore.Web" Version="0.9.0-CI00853" />
<PackageReference Include="Peachpie.AspNetCore.Web" Version="$(PeachpieVersion)" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit f8ec28d

Please sign in to comment.