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
15 <Choose>
16 <When Condition="$([MSBuild]::IsOsPlatform('Windows'))">
17 <PropertyGroup>
18 <RuntimeIdentifier>win-x64</RuntimeIdentifier>
19 </PropertyGroup>
20 </When>
21 <When Condition="$([MSBuild]::IsOsPlatform('Linux'))">
22 <PropertyGroup>
23 <RuntimeIdentifier>linux-x64</RuntimeIdentifier>
24 </PropertyGroup>
25 </When>
26 <When Condition="$([MSBuild]::IsOsPlatform('OSX'))">
27 <PropertyGroup>
28 <RuntimeIdentifier>osx-x64</RuntimeIdentifier>
29 </PropertyGroup>
30 </When>
31 </Choose>
32
33 <Target Name="CheckRuntimeIdentifier" BeforeTargets="Build" Condition="'$(RuntimeIdentifier)'==''">
34 <Error Text="RuntimeIdentifier property not set." />
35 </Target>
36
37 <ItemGroup>
38 <ProjectReference Include="../UltralightSharp/UltralightSharp.csproj">
39 <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
40 <ExcludeAssets>all</ExcludeAssets>
41 </ProjectReference>
42 </ItemGroup>
43
44 <ItemGroup>
45 <PackageReference Include="Ansi" Version="1.0.3" />
46 <PackageReference Include="ImpromptuNinjas.UltralightSharp" Version="[$(Version)]" />
47 <PackageReference Include="SixLabors.ImageSharp" Version="1.0.0-rc0003" />
48 </ItemGroup>
49
50 <ItemGroup>
51 <NuPkgRef Include="$(SolutionDir)\*.nupkg">
52 <Visible>False</Visible>
53 </NuPkgRef>
54 </ItemGroup>
55
56 <ItemGroup>
57 <None Remove="assets\index.html" />
58 <Content Include="assets\index.html">
59 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
60 </Content>
61 </ItemGroup>
62</Project>