Repository navigation
Expand file tree
/
Copy pathQuestMod.csproj
More file actions
75 lines (63 loc) · 3.49 KB
/
Copy pathQuestMod.csproj
File metadata and controls
75 lines (63 loc) · 3.49 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
<Project Sdk="Microsoft.NET.Sdk">
<Import Condition="Exists('SilksongPath.props')" Project="SilksongPath.props" />
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<EnableNETAnalyzers>True</EnableNETAnalyzers>
<AnalysisMode>recommended</AnalysisMode>
<NoWarn>$(NoWarn);MSB3270</NoWarn>
<RestorePackagesWithLockFile>True</RestorePackagesWithLockFile>
<RestoreLockedMode Condition="'$(CI)' == 'true'">True</RestoreLockedMode>
<PathMap Condition="'$(Configuration)' == 'Release'">$(MSBuildProjectDirectory)=/</PathMap>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BepInEx.Analyzers" Version="1.0.8" PrivateAssets="all" />
<PackageReference Include="BepInEx.Core" Version="5.4.21" />
<PackageReference Include="HarmonyX" Version="2.9.0" />
<PackageReference Include="Hamunii.BepInEx.AutoPlugin" Version="2.1.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.Unity.Analyzers" Version="1.27.0" PrivateAssets="all" />
<!-- Keep UnityEngine modules aligned with Silksong game / GameLibs (do not jump to 6000.5.x). -->
<PackageReference Include="UnityEngine.Modules" Version="6000.0.50" IncludeAssets="compile" />
<PackageReference Include="Silksong.GameLibs" Version="1.2.0-silksong1.0.30000" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Silksong.FsmUtil" Version="0.3.17" />
<PackageReference Include="Silksong.DataManager" Version="1.2.2" />
<PackageReference Include="Silksong.UnityHelper" Version="1.2.0" />
</ItemGroup>
<!-- Dev harness (SelfTest + GuiShots): opt-in only. Release never includes them.
Build with: dotnet build -p:COMPILE_SELFTEST=true -->
<PropertyGroup Condition="'$(COMPILE_SELFTEST)' == 'true'">
<DefineConstants>$(DefineConstants);SELFTEST</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Folder Remove="thunderstore/temp;thunderstore/dist" />
<EmbeddedResource Include="Data\QuestCapabilities.json" />
<EmbeddedResource Include="Data\QuestRequirements.json" />
<Compile Remove="BuildBundles.cs" />
</ItemGroup>
<ItemGroup Condition="'$(COMPILE_SELFTEST)' != 'true'">
<Compile Remove="Util\SelfTest.cs;Util\SelfTestIpc.cs;Util\SelfTestRuntime.cs;Util\SelfTestStages.cs;GUI\QuestGUI.SelfTest.cs;GUI\QuestGUI.GuiShots.cs" />
</ItemGroup>
<Target Name="CopyMod" AfterTargets="PostBuildEvent" Condition="'$(SilksongFolder)' != ''">
<ItemGroup>
<Binaries Include="$(TargetPath)" />
<Binaries Include="$(TargetDir)/$(TargetName).pdb" />
</ItemGroup>
<Copy SourceFiles="@(Binaries)" DestinationFolder="$(SilksongFolder)/BepInEx/plugins/QuestMod" />
</Target>
<Target Name="ThunderstorePack" DependsOnTargets="Build">
<PropertyGroup>
<ThunderstoreDir>$(ProjectDir)/thunderstore</ThunderstoreDir>
</PropertyGroup>
<RemoveDir Directories="$(ThunderstoreDir)/temp;$(ThunderstoreDir)/dist" />
<MakeDir Directories="$(ThunderstoreDir)/temp/plugins/QuestMod" />
<ItemGroup>
<ThunderstoreBinaries Include="$(TargetPath)" />
</ItemGroup>
<Copy SourceFiles="@(ThunderstoreBinaries)" DestinationFolder="$(ThunderstoreDir)/temp/plugins/QuestMod" />
<Exec Command="dotnet tool restore" />
<Exec Command="dotnet tcli build --config-path "$(ThunderstoreDir)/thunderstore.toml" --package-name "$(AssemblyTitle)" --package-version $(Version)" />
</Target>
</Project>