Provides minimal MSBuild properties for finding a Lethal Company installation on the local machine and other misc. targets.
$ dotnet add package Linkoid.LethalCompany.Common.BuildProvides minimal MSBuild properties for finding a Lethal Company installation on the local machine and other misc. targets.
To use this package, add a package reference to the project:
<PackageReference Include="Linkoid.LethalCompany.Common.Build" Version="*" PrivateAssets="all" />
$(GameDirectory): The path to the local installation of Lethal Company$(BepInExDirectory): The path to the BepInEx directory inside Lethal CompanyWhenever this package is used, it automatically loads the first
Directory.LethalCompany.props and Directory.LethalCompany.targets
files that are found in any of the directories above the project.
This can be used to manually specify a custom game directory for a
project/all projects in a directory and it's subdirectories.
Even if lethal company can be found automatically, it can be overriden
to use a special version/installation of the game.
Here is an example Directory.LethalCompany.props file:
<Project>
<PropertyGroup>
<GameDirectory>C:\Path\To\Lethal Company\</GameDirectory>
</PropertyGroup>
</Project>