41 lines
1.3 KiB
XML
41 lines
1.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<AssemblyName>MOD_NAME</AssemblyName>
|
|
<TargetFramework>net48</TargetFramework>
|
|
<LangVersion>latest</LangVersion>
|
|
<Nullable>enable</Nullable>
|
|
<WarningsAsErrors>CS8600;CS8602;CS8603</WarningsAsErrors>
|
|
</PropertyGroup>
|
|
|
|
<!-- Derail Valley -->
|
|
<ItemGroup>
|
|
<Reference Include="Assembly-CSharp"/>
|
|
</ItemGroup>
|
|
|
|
<!-- Unity -->
|
|
<ItemGroup>
|
|
<Reference Include="UnityEngine"/>
|
|
<Reference Include="UnityEngine.CoreModule"/>
|
|
</ItemGroup>
|
|
|
|
<!-- Mod Loader -->
|
|
<ItemGroup>
|
|
<PackageReference Include="UnityModManager" Version="0.27.2"/>
|
|
</ItemGroup>
|
|
|
|
<!-- Null Checking -->
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.CSharp" Version="4.7.0"/>
|
|
<PackageReference Include="Nullable" Version="1.3.1" PrivateAssets="all"/>
|
|
</ItemGroup>
|
|
|
|
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
|
<!-- Copy to build folder -->
|
|
<Copy SourceFiles="$(TargetPath)" DestinationFolder="../build/"/>
|
|
|
|
<!-- Package after Release build -->
|
|
<Exec Condition="'$(ConfigurationName)' == 'Release' And '$(OS)' == 'Windows_NT'" Command="powershell -executionpolicy bypass -Command "(../package.ps1)""/>
|
|
<Exec Condition="'$(ConfigurationName)' == 'Release' And '$(OS)' != 'Windows_NT'" Command="pwsh -Command "(../package.ps1)""/>
|
|
</Target>
|
|
</Project>
|