mirror of
https://github.com/TheJordanDev/PEAK-JordanMod.git
synced 2026-10-16 23:56:44 +02:00
Project Setup
This commit is contained in:
64
Directory.Build.targets
Normal file
64
Directory.Build.targets
Normal file
@@ -0,0 +1,64 @@
|
||||
<Project>
|
||||
<!--
|
||||
This is a special file that contains shared configuration
|
||||
for all project files in subdirectories.
|
||||
-->
|
||||
|
||||
<!-- Set extra NuGet sources -->
|
||||
<PropertyGroup>
|
||||
<RestoreAdditionalProjectSources>
|
||||
https://nuget.bepinex.dev/v3/index.json;
|
||||
https://nuget.windows10ce.com/nuget/v3/index.json
|
||||
</RestoreAdditionalProjectSources>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Modding dependencies -->
|
||||
<ItemGroup>
|
||||
<PackageReference Include="BepInEx.Core" Version="5.4.21" />
|
||||
<PackageReference Include="BepInEx.Analyzers" Version="1.*" PrivateAssets="all" />
|
||||
<PackageReference Include="BepInEx.AssemblyPublicizer.MSBuild" Version="0.4.3" PrivateAssets="all" />
|
||||
<PackageReference Include="Hamunii.BepInEx.AutoPlugin" Version="2.0.*" PrivateAssets="all" />
|
||||
<!-- <PackageReference Include="PEAKModding.PEAKLib.Core" Version="1.2.0" />
|
||||
<PackageReference Include="PEAKModding.PEAKLib.Stats" Version="1.2.0" />
|
||||
<PackageReference Include="PEAKModding.PEAKLib.UI" Version="1.5.0" />
|
||||
<PackageReference Include="PEAKModding.PEAKLib.Items" Version="1.4.2" /> -->
|
||||
</ItemGroup>
|
||||
|
||||
<!-- NuGet fallback stripped game references -->
|
||||
<ItemGroup Condition="!Exists('$(ManagedDir)')">
|
||||
<PackageReference Include="UnityEngine.Modules" Version="6000.0.36" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Local game references -->
|
||||
<ItemGroup Condition="Exists('$(ManagedDir)')">
|
||||
<!--
|
||||
Reference all assemblies except ones that come
|
||||
with our target framework or would cause conflicts
|
||||
-->
|
||||
<LocalReferences
|
||||
Include="$(ManagedDir)*.dll"
|
||||
Exclude="$(ManagedDir)Mono*.dll;$(ManagedDir)netstandard.dll;$(ManagedDir)System*.dll;$(ManagedDir)mscorlib.dll"
|
||||
/>
|
||||
<Reference Include="@(LocalReferences)" Private="false" />
|
||||
<!-- Publicize these assemblies so we can access their internal members -->
|
||||
<Reference Include="$(ManagedDir)Assembly-CSharp.dll" Private="false" Publicize="true" />
|
||||
</ItemGroup>
|
||||
|
||||
<!--
|
||||
Build Thunderstore package by calling `dotnet build -c Release -target:PackTS -v d` (verbosity detailed).
|
||||
Publish to Thunderstore by including `-property:PublishTS=true` in the command.
|
||||
-->
|
||||
<Target Name="PackTS" DependsOnTargets="Build" Condition="$(ThunderstorePackable) != 'false'">
|
||||
<Error
|
||||
Text=" PackTS must be called with Release configuration."
|
||||
Condition="'$(Configuration)' != 'Release'"
|
||||
/>
|
||||
<PropertyGroup>
|
||||
<BuildArgument Condition="'$(PublishTS)' != 'true'">build</BuildArgument>
|
||||
<BuildArgument Condition="'$(PublishTS)' == 'true'">publish</BuildArgument>
|
||||
</PropertyGroup>
|
||||
<Exec Command="dotnet tool restore" />
|
||||
<Exec Command="dotnet tcli $(BuildArgument) --package-version $(Version)" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user