Multi-platform .NET bindings to the Ultralight project.
1<Project Sdk="Microsoft.NET.Sdk">
2
3 <PropertyGroup>
4 <OutputType>Exe</OutputType>
5 <TargetFramework>netcoreapp3.1</TargetFramework>
6 <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
7 <LangVersion>8</LangVersion>
8 <Nullable>enable</Nullable>
9 <Platform>x64</Platform>
10 <PlatformTarget>x64</PlatformTarget>
11 <NoWarn>8002</NoWarn>
12 </PropertyGroup>
13
14 <Choose>
15 <When Condition="$([MSBuild]::IsOsPlatform('Windows'))">
16 <PropertyGroup>
17 <RuntimeIdentifier>win-x64</RuntimeIdentifier>
18 </PropertyGroup>
19 </When>
20 <When Condition="$([MSBuild]::IsOsPlatform('Linux'))">
21 <PropertyGroup>
22 <RuntimeIdentifier>linux-x64</RuntimeIdentifier>
23 </PropertyGroup>
24 </When>
25 <When Condition="$([MSBuild]::IsOsPlatform('OSX'))">
26 <PropertyGroup>
27 <RuntimeIdentifier>osx-x64</RuntimeIdentifier>
28 </PropertyGroup>
29 </When>
30 </Choose>
31
32 <Target Name="CheckRuntimeIdentifier" BeforeTargets="Build" Condition="'$(RuntimeIdentifier)'==''">
33 <Error Text="RuntimeIdentifier property not set." />
34 </Target>
35
36 <ItemGroup>
37 <ProjectReference Include="../UltralightSharp/UltralightSharp.csproj">
38 <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
39 <ExcludeAssets>all</ExcludeAssets>
40 </ProjectReference>
41 </ItemGroup>
42
43 <ItemGroup>
44 <PackageReference Include="Ansi" Version="1.0.3" />
45 <PackageReference Include="ImpromptuNinjas.UltralightSharp" Version="[$(Version)]" />
46 <PackageReference Include="SixLabors.ImageSharp" Version="1.0.0-rc0003" />
47 </ItemGroup>
48
49 <ItemGroup>
50 <NuPkgRef Include="$(SolutionDir)\*.nupkg">
51 <Visible>False</Visible>
52 </NuPkgRef>
53 </ItemGroup>
54
55 <ItemGroup>
56 <None Remove="assets\index.html" />
57 <Content Include="assets\index.html">
58 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
59 </Content>
60 </ItemGroup>
61</Project>