-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDevilDaggersInfo.Tools.csproj
More file actions
97 lines (89 loc) · 3.89 KB
/
DevilDaggersInfo.Tools.csproj
File metadata and controls
97 lines (89 loc) · 3.89 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>ddinfo-tools</AssemblyName>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<NoWarn>SA1633</NoWarn>
<Version>0.13.5.0</Version>
<ApplicationIcon>Icon.ico</ApplicationIcon>
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
<SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings>
<JsonSerializerIsReflectionEnabledByDefault>false</JsonSerializerIsReflectionEnabledByDefault>
</PropertyGroup>
<Choose>
<When Condition="'$(Configuration)' == 'Debug'">
<Choose>
<!--In Debug mode, we determine the OS based on the machine building the project.-->
<When Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">
<PropertyGroup>
<DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
<OutputType>WinExe</OutputType>
</PropertyGroup>
</When>
<When Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">
<PropertyGroup>
<DefineConstants>$(DefineConstants);LINUX</DefineConstants>
<OutputType>Exe</OutputType>
</PropertyGroup>
</When>
</Choose>
</When>
<When Condition="'$(Configuration)' == 'Release'">
<Choose>
<!--In Release mode, we determine the OS based on the runtime identifier.-->
<When Condition="'$(RuntimeIdentifier)' == 'win-x64'">
<PropertyGroup>
<DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
<OutputType>WinExe</OutputType>
</PropertyGroup>
</When>
<When Condition="'$(RuntimeIdentifier)' == 'linux-x64' Or '$(CI)' == 'true'">
<PropertyGroup>
<DefineConstants>$(DefineConstants);LINUX</DefineConstants>
<OutputType>Exe</OutputType>
</PropertyGroup>
</When>
</Choose>
</When>
</Choose>
<Choose>
<When Condition="'$(Configuration)' == 'Debug'">
<ItemGroup>
<AssemblyAttribute Include="DevilDaggersInfo.Tools.BuildTimeAttribute">
<!--
Do not use the current date in DEBUG builds.
Sometimes this error appears during runtime: DevilDaggersInfo.Tools.AssemblyInfo.cs(13, 12): [ENC0003] Updating 'attribute' requires restarting the application.
Not sure why that happens but it breaks hot reload.
-->
<_Parameter1>DEBUG BUILD</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</When>
<When Condition="'$(Configuration)' == 'Release'">
<ItemGroup>
<AssemblyAttribute Include="DevilDaggersInfo.Tools.BuildTimeAttribute">
<_Parameter1>$([System.DateTime]::UtcNow.ToString("yyyy-MM-dd HH:mm")) UTC</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</When>
</Choose>
<ItemGroup Label="Internal dependencies">
<PackageReference Include="DevilDaggersInfo.Core" Version="0.14.1" />
<PackageReference Include="DevilDaggersInfo.Web.ApiSpec.Tools" Version="1.1.0" />
<ProjectReference Include="..\DevilDaggersInfo.Tools.Engine\DevilDaggersInfo.Tools.Engine.csproj" />
</ItemGroup>
<ItemGroup Label="External dependencies">
<PackageReference Include="NativeFileDialogSharp" Version="0.5.0" />
<PackageReference Include="Serilog.Sinks.File" Version="7.0.0" />
</ItemGroup>
<ItemGroup Label="Fonts">
<None Update="goethebold.ttf">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup Label="Encryption" Condition="Exists('Content\encryption.ini')">
<None Remove="Content\encryption.ini" />
<EmbeddedResource Include="Content\encryption.ini">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>
</Project>