-
Notifications
You must be signed in to change notification settings - Fork 0
/
SDL2Example.csproj
37 lines (32 loc) · 1.35 KB
/
SDL2Example.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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <!-- This is a requirement to use unsafe code / pointers -->
<ApplicationIcon>Resources\Icon.ico</ApplicationIcon>
</PropertyGroup>
<!-- This copies all .dll files from the lib folder to the project output root folder -->
<ItemGroup>
<ContentWithTargetPath Include="lib\*.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>%(Filename)%(Extension)</TargetPath>
</ContentWithTargetPath>
<None Include="lib\*.dll" />
</ItemGroup>
<!-- This copies all .txt files from the lib folder to the project output Licenses folder -->
<ItemGroup>
<ContentWithTargetPath Include="lib\*.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>Licenses\%(Filename)%(Extension)</TargetPath>
</ContentWithTargetPath>
<None Include="lib\*.txt" />
</ItemGroup>
<!-- This makes sure that all the resources get copied to the project output resoruces folder -->
<ItemGroup>
<Content Include="Resources\*.*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>