-
Notifications
You must be signed in to change notification settings - Fork 0
/
KeyPaint.csproj
54 lines (50 loc) · 2.64 KB
/
KeyPaint.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ApplicationIcon>assets/icon64.ico</ApplicationIcon>
<RootNamespace>KeyPaint</RootNamespace>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Nullable>enable</Nullable>
<!-- Platform definitions -->
<IsWindows
Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">
true</IsWindows>
<IsOSX
Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">
true</IsOSX>
<IsLinux
Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">
true</IsLinux>
</PropertyGroup>
<!-- Platform constants -->
<PropertyGroup Condition="'$(IsWindows)'=='true'">
<DefineConstants>$(DefineConstants);Windows</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(IsOSX)'=='true'">
<DefineConstants>$(DefineConstants);OSX</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(IsLinux)'=='true'">
<DefineConstants>$(DefineConstants);Linux</DefineConstants>
</PropertyGroup>
<!-- Adding assets to bin folder -->
<Target Name="CopyAssets" AfterTargets="AfterBuild">
<ItemGroup>
<_AssetFiles Include="$(MSBuildProjectDirectory)\assets\**" />
<_GlfwFiles Include="$(MSBuildProjectDirectory)\glfw\**" />
</ItemGroup>
<Copy SourceFiles="@(_AssetFiles)" DestinationFolder="$(OutDir)assets\%(RecursiveDir)" />
<Copy SourceFiles="@(_GlfwFiles)" DestinationFolder="$(OutDir)\%(RecursiveDir)" />
</Target>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'" />
<ItemGroup>
<PackageReference Include="Silk.NET" Version="2.15.0" />
<PackageReference Include="Silk.NET.Core" Version="2.15.0" />
<PackageReference Include="Silk.NET.Windowing.Common" Version="2.15.0" />
<PackageReference Include="Silk.NET.Windowing.Glfw" Version="2.15.0" />
<PackageReference Include="SkiaSharp" Version="2.88.3" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.3" />
<PackageReference Include="SixLabors.ImageSharp" Version="2.1.2" />
<PackageReference Include="NativeFileDialogSharp" Version="*" />
</ItemGroup>
</Project>