-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSSMPEssentials.csproj
More file actions
69 lines (62 loc) · 3.78 KB
/
SSMPEssentials.csproj
File metadata and controls
69 lines (62 loc) · 3.78 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
<Project Sdk="Microsoft.NET.Sdk">
<!--
Imports silksong path properties only if present in order to allow CI builds. The file should be gitignored.
If you are checking out from git and need to create a new one, you can use `dotnet new silksongpath` to generate one.
-->
<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>
<!-- Ignore warning about processor architecture mismatch with PlayMaker ConditionalExpression -->
<NoWarn>$(NoWarn);MSB3270</NoWarn>
<RestorePackagesWithLockFile>True</RestorePackagesWithLockFile>
<RestoreLockedMode Condition="'$(CI)' == 'true'">True</RestoreLockedMode>
<!-- Shortens and anonymizes paths in debug symbols relative to the project directory. Breakpoints will not work, however. -->
<PathMap Condition="'$(Configuration)' == 'Release'">$(MSBuildProjectDirectory)=/</PathMap>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIcon>icon.png</PackageIcon>
<RepositoryUrl>https://github.com/BobbyTheCatfish/SSMP.Utils</RepositoryUrl>
</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="Harmonize" Version="1.0.3" PrivateAssets="all" />
<PackageReference Include="Hamunii.BepInEx.AutoPlugin" Version="2.0.1" PrivateAssets="all" />
<PackageReference Include="Microsoft.Unity.Analyzers" Version="1.25.0" PrivateAssets="all" />
<PackageReference Include="UnityEngine.Modules" Version="6000.0.50" IncludeAssets="compile" />
<PackageReference Include="Silksong.GameLibs" Version="*-*" PrivateAssets="all" />
<Reference Include="FilteredLogs" Condition="'$(Configuration)' == 'Debug'">
<HintPath>H:\SteamLibrary\steamapps\common\Hollow Knight Silksong\BepInEx\plugins\flibber-FilteredLogs-1.0.0\FilteredLogs.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="SSMP">
<HintPath>H:\SteamLibrary\steamapps\common\Hollow Knight Silksong\BepInEx\plugins\SSMP\SSMP.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Remove="thunderstore/temp;thunderstore/dist" />
<None Include="README.md" Pack="True" PackagePath="README.md" />
<None Include="thunderstore/icon.png" Pack="True" PackagePath="icon.png" />
</ItemGroup>
<Target Name="CopyAndPackageMod" AfterTargets="PostBuildEvent">
<ItemGroup>
<Binaries Include="$(TargetPath)" LocalDir="/" PackDir="/" />
<Binaries Include="$(TargetDir)/$(TargetName).pdb" LocalDir="/" PackDir="/" />
</ItemGroup>
<PropertyGroup>
<ThunderstoreDir>$(ProjectDir)/thunderstore</ThunderstoreDir>
</PropertyGroup>
<!-- Local install -->
<Copy SourceFiles="@(Binaries)" DestinationFolder="$(SilksongPluginsFolder)/BobbyTheCatfish-$(AssemblyTitle)/%(Binaries.LocalDir)" Condition="'$(SilksongPluginsFolder)' != '' And Exists('$(SilksongPluginsFolder)')" />
<!-- Thunderstore packaging -->
<RemoveDir Directories="$(ThunderstoreDir)/temp;$(ThunderstoreDir)/dist" />
<MakeDir Directories="$(ThunderstoreDir)/temp" />
<Copy SourceFiles="@(Binaries)" DestinationFolder="$(ThunderstoreDir)/temp/%(Binaries.PackDir)" />
<Exec Command="dotnet tool restore" />
<Exec Command="dotnet tcli build --config-path "$(ThunderstoreDir)/thunderstore.toml" --package-name "$(AssemblyTitle)" --package-version $(Version)" StandardOutputImportance="High" StandardErrorImportance="High" />
</Target>
</Project>