Multi-platform .NET bindings to the Ultralight project.
1<Project Sdk="Microsoft.NET.Sdk">
2
3 <PropertyGroup>
4 <OutputType>Library</OutputType>
5 <TargetFrameworks>net5.0;net45;netstandard2.0;netstandard2.1;netcoreapp3.1</TargetFrameworks>
6 <GeneratePackageOnBuild Condition="'$(Configuration)'=='Release'">true</GeneratePackageOnBuild>
7 </PropertyGroup>
8
9 <PropertyGroup>
10 <PackageId>ImpromptuNinjas.UltralightSharp.Core</PackageId>
11 <Title>ImpromptuNinjas.UltralightSharp.Core</Title>
12 <Description>Ultralight native rutimes for the UltralightSharp project.</Description>
13 <Authors>Tyler Young</Authors>
14 <Copyright>Copyright © 2020 Tyler Young</Copyright>
15 <PackageLicenseFile>LICENSE</PackageLicenseFile>
16 <PackageOutputDir>$(SolutionDir)</PackageOutputDir>
17 <RepositoryUrl>https://github.com/ImpromptuNinjas/UltralightSharp.git</RepositoryUrl>
18 <PackageTags>ultralight webkit webcore appcore ultralight-ux</PackageTags>
19 <PackageIcon>icon.png</PackageIcon>
20 <IsPackable>True</IsPackable>
21 <GenerateAssemblyConfigurationAttribute>False</GenerateAssemblyConfigurationAttribute>
22 </PropertyGroup>
23
24 <ItemGroup>
25 <PackageReference Include="ImpromptuNinjas.UltralightSharp.Core.WinX64" Version="[$(Version)]" IncludeAssets="native" />
26 <PackageReference Include="ImpromptuNinjas.UltralightSharp.Core.LinuxX64" Version="[$(Version)]" IncludeAssets="native" />
27 <PackageReference Include="ImpromptuNinjas.UltralightSharp.Core.OsxX64" Version="[$(Version)]" IncludeAssets="native" />
28 </ItemGroup>
29
30 <Choose>
31 <When Condition="'$(TargetFramework)'=='net45'">
32 <ItemGroup>
33 <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="all" />
34
35 <ProjectReference Include="..\UltralightSharp.Core.WinX64\UltralightSharp.Core.WinX64.csproj">
36 <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
37 <ExcludeAssets>all</ExcludeAssets>
38 </ProjectReference>
39 </ItemGroup>
40 </When>
41 <Otherwise>
42
43 <ItemGroup>
44 <ProjectReference Include="..\UltralightSharp.Core.WinX64\UltralightSharp.Core.WinX64.csproj">
45 <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
46 <ExcludeAssets>all</ExcludeAssets>
47 </ProjectReference>
48 <ProjectReference Include="..\UltralightSharp.Core.LinuxX64\UltralightSharp.Core.LinuxX64.csproj">
49 <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
50 <ExcludeAssets>all</ExcludeAssets>
51 </ProjectReference>
52 <ProjectReference Include="..\UltralightSharp.Core.OsxX64\UltralightSharp.Core.OsxX64.csproj">
53 <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
54 <ExcludeAssets>all</ExcludeAssets>
55 </ProjectReference>
56 </ItemGroup>
57 </Otherwise>
58 </Choose>
59
60 <ItemGroup>
61 <None Include="..\icon.png">
62 <Pack>True</Pack>
63 <PackageCopyToOutput>False</PackageCopyToOutput>
64 <PackagePath />
65 <Link>icon.png</Link>
66 </None>
67 <None Include="..\LICENSE">
68 <Pack>True</Pack>
69 <PackageCopyToOutput>False</PackageCopyToOutput>
70 <PackagePath />
71 <Link>LICENSE</Link>
72 </None>
73 <Content Include="resources\**\*">
74 <Pack>True</Pack>
75 <PackageCopyToOutput>True</PackageCopyToOutput>
76 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
77 <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
78 </Content>
79 <Content Include="Ultralight*.txt">
80 <Pack>True</Pack>
81 <PackageCopyToOutput>True</PackageCopyToOutput>
82 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
83 <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
84 </Content>
85 <None Include="runtimes\*\**">
86 <Pack>True</Pack>
87 <PackageCopyToOutput>False</PackageCopyToOutput>
88 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
89 <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
90 <PackagePath>%(Identity)</PackagePath>
91 <Link>%(Identity)</Link>
92 </None>
93 <Content Remove="runtimes\*\**"/>
94 </ItemGroup>
95
96</Project>