Skip to content

Commit 776343f

Browse files
committed
Peachpie: add MSBuild project
Target both full .NET and .NET Core.
1 parent 0c9340c commit 776343f

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,8 @@ Thumbs.db
7777
/.htpasswd
7878
/tests/phan/issues
7979
*.rej
80+
81+
# Visual Studio output directories
82+
bin
83+
bin_*
84+
obj

mediawiki.msbuildproj

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Library</OutputType>
5+
<TargetFrameworks>netcoreapp2.0;net46</TargetFrameworks>
6+
<AssemblyName>mediawiki</AssemblyName>
7+
<NoWarn>PHPX0125,PHP3012</NoWarn>
8+
</PropertyGroup>
9+
10+
<PropertyGroup>
11+
<OutDir Condition=" '$(TargetFramework)' == 'net46' ">bin</OutDir><!-- ASP.Net loads DLLs always from there -->
12+
<OutDir Condition=" '$(TargetFramework)' != 'net46' ">bin_$(TargetFramework)</OutDir>
13+
</PropertyGroup>
14+
15+
<ItemGroup>
16+
<Compile
17+
Include="**/*.php"
18+
Exclude="maintenance/**;tests/**;vendor/**/tests/**;vendor/**/test/**;vendor/**/Test/**" />
19+
<Compile Remove="includes/debug/logger/monolog/**" />
20+
<Compile Remove="skins/Vector/vendor/composer/installers/**" />
21+
<Compile Remove="vendor/wikimedia/composer-merge-plugin/**" />
22+
<Compile Remove="vendor/liuggio/statsd-php-client/src/Liuggio/StatsdClient/Monolog/**" />
23+
<Compile Remove="vendor/liuggio/statsd-php-client/src/Liuggio/StatsdClient/Monolog/**" />
24+
<Compile Remove="vendor/pear/pear-core-minimal/src/System.php" />
25+
</ItemGroup>
26+
27+
<ItemGroup>
28+
<DotNetCliToolReference Include="Peachpie.Compiler.Tools" Version="0.9.0-CI00853" />
29+
<PackageReference Include="Peachpie.NET.Sdk" Version="0.9.0-CI00853" PrivateAssets="Build" />
30+
<PackageReference Include="Peachpie.Library.Graphics" Version="0.9.0-CI00853" />
31+
</ItemGroup>
32+
33+
<ItemGroup Condition=" '$(TargetFramework)' == 'net46' ">
34+
<PackageReference Include="Peachpie.RequestHandler" Version="0.9.0-CI00853" />
35+
</ItemGroup>
36+
</Project>

0 commit comments

Comments
 (0)