forked from MichalStrehovsky/SeeSharpSnake
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSeeSharpSnake.csproj
79 lines (66 loc) · 3.18 KB
/
SeeSharpSnake.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PublishSingleFile Condition="'$(Mode)' == ''">true</PublishSingleFile>
<EnableDefaultItems>false</EnableDefaultItems>
</PropertyGroup>
<ItemGroup>
<Compile Include="Game/FrameBuffer.cs" />
<Compile Include="Game/Game.cs" />
<Compile Include="Game/Random.cs" />
<Compile Include="Game/Snake.cs" />
</ItemGroup>
<ItemGroup Condition="'$(IncludePal)' == 'true'">
<Compile Include="Pal/Thread.Windows.cs" />
<Compile Include="Pal/Environment.Windows.cs" />
<Compile Include="Pal/Console.Windows.cs" />
<Compile Include="Pal/Console.cs" />
</ItemGroup>
<ItemGroup Condition="'$(Mode)' == 'CoreRT-NoRuntime'">
<Compile Include="MiniBCL.cs" />
<Compile Include="MiniRuntime.cs" />
<Compile Include="MiniRuntime.Dos.cs" />
</ItemGroup>
<ItemGroup Condition="'$(Mode)' != ''">
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="1.0.0-alpha-*" />
</ItemGroup>
<PropertyGroup Condition="'$(Mode)' == 'CoreRT-Moderate' or '$(Mode)' == 'CoreRT-High' or '$(Mode)' == 'CoreRT-ReflectionFree'">
<IlcGenerateCompleteTypeMetadata>false</IlcGenerateCompleteTypeMetadata>
<IlcOptimizationPreference>Size</IlcOptimizationPreference>
</PropertyGroup>
<PropertyGroup Condition="'$(Mode)' == 'CoreRT-High' or '$(Mode)' == 'CoreRT-ReflectionFree' or '$(Mode)' == 'CoreRT-NoRuntime'">
<IlcGenerateStackTraceData>false</IlcGenerateStackTraceData>
<IlcInvariantGlobalization>true</IlcInvariantGlobalization>
<IlcFoldIdenticalMethodBodies>true</IlcFoldIdenticalMethodBodies>
</PropertyGroup>
<ItemGroup Condition="'$(Mode)' == 'CoreRT-High'">
<IlcArg Include="--removefeature:EventSource" />
<IlcArg Include="--removefeature:FrameworkStrings" />
</ItemGroup>
<PropertyGroup Condition="'$(Mode)' == 'CoreRT-ReflectionFree'">
<IlcDisableReflection>true</IlcDisableReflection>
</PropertyGroup>
<PropertyGroup Condition="'$(Mode)' == 'CoreRT-NoRuntime'">
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<RuntimeMetadataVersion>v4.0.30319</RuntimeMetadataVersion>
<Optimize>true</Optimize>
<IlcOptimizationPreference>Size</IlcOptimizationPreference>
<IlcDisableReflection>true</IlcDisableReflection>
<IncludePal>true</IncludePal>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<IlcSystemModule>SeeSharpSnake</IlcSystemModule>
</PropertyGroup>
<ItemGroup Condition="'$(Mode)' == 'CoreRT-NoRuntime'">
<LinkerArg Include="/subsystem:console /entry:__managed__Main /merge:.modules=.rdata /merge:.pdata=.rdata /DYNAMICBASE:NO /filealign:16 /align:16" />
</ItemGroup>
<Target Name="CustomizeReferences" BeforeTargets="BeforeCompile" AfterTargets="FindReferenceAssembliesForReferences" Condition="'$(Mode)' == 'CoreRT-NoRuntime'">
<ItemGroup>
<ReferencePathWithRefAssemblies Remove="@(ReferencePathWithRefAssemblies)" />
<ReferencePath Remove="@(ReferencePath)" />
</ItemGroup>
</Target>
</Project>