-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
114 lines (96 loc) · 4.28 KB
/
Directory.Build.props
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<Project>
<PropertyGroup>
<!-- Common Versioning and Module Information -->
<Version>0.3.0</Version>
<ModName>RuntimeIcons</ModName>
<ModGUID>com.github.lethalcompanymodding.runtimeicons</ModGUID>
<ModNameSpace>$(ModName)</ModNameSpace>
<AssemblyVersion>$(Version)</AssemblyVersion>
<FileVersion>$(Version)</FileVersion>
<InformationalVersion>$(Version)</InformationalVersion>
<Authors>LethalCompanyModding</Authors>
<!-- Construct Assembly Title from ModName -->
<AssemblyTitle>$(ModName) - Plugin</AssemblyTitle>
<AssemblyDescription>Generate Icons for scrap at runtime, replacing the gear icon.</AssemblyDescription>
<!-- Assembly Metadata -->
<AssemblyConfiguration>Release</AssemblyConfiguration>
<TargetFramework>netstandard2.1</TargetFramework>
<LangVersion>Latest</LangVersion>
<Platforms>AnyCPU</Platforms>
<!-- License Information -->
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>
<!-- Embedded Debug -->
<PropertyGroup>
<DebugSymbols>true</DebugSymbols>
<DebugType>embedded</DebugType>
<PathMap>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)'))=./</PathMap>
</PropertyGroup>
<!-- Enable Profiler Markers -->
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Profiling|AnyCPU'">
<DefineConstants>$(DefineConstants);ENABLE_PROFILER_MARKERS</DefineConstants>
</PropertyGroup>
<!-- Suppress some Warnings -->
<PropertyGroup>
<NoWarn>1701;1702;CS0436</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BepInEx.PluginInfoProps" Version="*" />
</ItemGroup>
<PropertyGroup>
<BepInExPluginGuid>$(ModGUID)</BepInExPluginGuid>
<BepInExPluginName>$(ModName)</BepInExPluginName>
</PropertyGroup>
<!-- Thunderstore Publish Profile Follows:-->
<PropertyGroup>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<LangVersion>latest</LangVersion>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>
<Target Name="Upload" AfterTargets="AfterBuild" Condition="'$(Upload)'=='true' Or '$(Upload)'=='dry'">
<PropertyGroup>
<DistributionDir>$(SolutionDir)\artifacts\tspublish\dist</DistributionDir>
<PluginsDir>$(DistributionDir)\BepInEx\plugins</PluginsDir>
</PropertyGroup>
<Message Importance="High" Text="Publishing" />
<RemoveDir Directories="$(DistributionDir)" />
<ItemGroup>
<OutputFiles Include="$(OutDir)\**" Exclude="**\*.deps.json" />
<OutputFiles Include="$(SolutionDir)\UnityAssets\AssetBundles\StandaloneWindows\runtimeicons.unity3d" />
</ItemGroup>
<Copy
SourceFiles="@(OutputFiles)"
DestinationFolder="$(PluginsDir)"
/>
<ItemGroup>
<OverrideFiles Include="$(ProjectDir)\resources\**\*.png" />
<OverrideFiles Include="$(ProjectDir)\resources\**\*.json" />
</ItemGroup>
<Copy
SourceFiles="@(OverrideFiles)"
DestinationFolder="$(PluginsDir)\$(ModName)\%(RecursiveDir)"
/>
<ItemGroup>
<PackageFiles Include="$(SolutionDir)\CHANGELOG.md" />
<PackageFiles Include="$(SolutionDir)\LICENSE" />
</ItemGroup>
<Copy
DestinationFolder="$(DistributionDir)"
SourceFiles="@(PackageFiles)"
/>
<PropertyGroup Condition="'$(UPLOAD)'=='true'">
<TcliCommand>publish</TcliCommand>
</PropertyGroup>
<PropertyGroup Condition="'$(UPLOAD)'=='dry'">
<TcliCommand>build</TcliCommand>
<PACKAGE_VERSION>0.0.0</PACKAGE_VERSION>
</PropertyGroup>
<Exec
Command='dotnet tcli $(TcliCommand) --package-name "$(Product)" --package-namespace "$(Authors)" --package-version "$(PACKAGE_VERSION)"'
ConsoleToMSBuild="true"
WorkingDirectory="$(SolutionDir)\artifacts\tspublish"
/>
</Target>
</Project>