-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModBridge.csproj
More file actions
47 lines (40 loc) · 2.03 KB
/
ModBridge.csproj
File metadata and controls
47 lines (40 loc) · 2.03 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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion Condition="'$(FileVersion)' == ''">1.0.0.0</FileVersion>
<Version Condition="'$(Version)' == ''">1.0.0</Version>
<Product>ModBridge</Product>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>false</SelfContained>
<RuntimeIdentifiers>win-x64;win-x86</RuntimeIdentifiers>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DefineConstants>$(DefineConstants);RELEASE</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<CurseForgeApiKey></CurseForgeApiKey>
<!-- <DefineConstants>$(DefineConstants);CURSEFORGE_API_KEY="$(CurseForgeApiKey)"</DefineConstants> -->
<BuildInfoExists Condition=" Exists( 'Properties\\BuildInfo.g.cs' ) ">true</BuildInfoExists>
</PropertyGroup>
<Target Name="GenerateBuildInfo" BeforeTargets="CoreCompile"
Outputs="Properties\BuildInfo.g.cs">
<WriteLinesToFile
File="Properties\BuildInfo.g.cs"
Lines="namespace ModBridge.Properties { public static class BuildInfo { public const string CurseForgeApiKey = %22$(CurseForgeApiKey)%22%3b; public const string Version = %22$(Version)%22%3b; public const string AssemblyVersion = %22$(AssemblyVersion)%22%3b; public const string FileVersion = %22$(FileVersion)%22%3b; public const string Product = %22$(Product)%22%3b; } }"
Overwrite="true" />
<ItemGroup Condition="$(BuildInfoExists) != 'true'">
<Compile Include="Properties\BuildInfo.g.cs" />
</ItemGroup>
</Target>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Ookii.Dialogs.WinForms" Version="4.0.0" />
<PackageReference Include="Tomlyn" Version="0.19.0" />
</ItemGroup>
</Project>