Skip to content

Instantly share code, notes, and snippets.

@JesseTG
Created March 6, 2022 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JesseTG/54c59639f9ddcda8e63a3334e7b4fb49 to your computer and use it in GitHub Desktop.
Save JesseTG/54c59639f9ddcda8e63a3334e7b4fb49 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<!--
This file exists because Jenny doesn't understand the concept of putting
code into multiple projects.
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup Label="Jenny Config">
<LangVersion>latest</LangVersion>
<DebugType>full</DebugType>
<!-- Anything here can be configured with like-named environment variables if you're using a non-standard installation location -->
<UnityProjectVersionTxt Condition="'$(UnityVersion)' == ''">$([System.IO.File]::ReadAllText('$(ProjectDir)/ProjectSettings/ProjectVersion.txt'))</UnityProjectVersionTxt>
<!--
Unity writes the currently-used editor version to ProjectSettings/ProjectVersion.txt; it *must* exist, otherwise Jenny won't
find symbols for Unity's built-in libraries. Consider committing it to your repo, too.
-->
<UnityVersionRegex>m_EditorVersion: (.+)</UnityVersionRegex>
<UnityVersion Condition="'$(UnityVersion)' == ''">$(
[System.Text.RegularExpressions.Regex]::Match(
$(UnityProjectVersionTxt),
$(UnityVersionRegex)
).get_Groups().get_Item(1).ToString().Trim()
)</UnityVersion><!-- Whitespace here is important! Don't put this closing tag on a new line! -->
</PropertyGroup>
<!-- If these don't work, try using [MSBuild]::IsOsPlatform -->
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
<UnityDir Condition=" '$(UnityDir)' == '' ">C:\Program Files\Unity\Hub\Editor\$(UnityVersion)\Editor\Data</UnityDir>
</PropertyGroup>
<PropertyGroup Condition=" '$(OS)' == 'OSX' ">
<UnityDir Condition=" '$(UnityDir)' == '' ">/Applications/$(UnityVersion)/Unity.app/Contents</UnityDir>
</PropertyGroup>
<PropertyGroup Condition=" '$(OS)' == 'Unix' ">
<UnityDir Condition=" '$(UnityDir)' == '' ">$(HOME)/Unity/Hub/Editor/$(UnityVersion)/Editor/Data</UnityDir>
</PropertyGroup>
<!-- If Unity adds editor support for another platform (one of the BSDs, maybe?), add another <PropertyGroup> here. -->
<PropertyGroup Label="Assembly Reference Paths">
<!-- This group must come *after* UnityDir is assigned! -->
<ReferencePath>$(UnityDir)/MonoBleedingEdge/lib/mono/4.6.2-api;$(ReferencePath)</ReferencePath>
<ReferencePath>$(UnityDir)/Managed;$(ReferencePath)</ReferencePath>
<ReferencePath>$(UnityDir)/Managed/UnityEngine;$(ReferencePath)</ReferencePath>
<ReferencePath>$(ProjectDir)/Library/ScriptAssemblies;$(ReferencePath)</ReferencePath>
<ReferencePath>$(ProjectDir)/Assets/Plugins/Entitas;$(ReferencePath)</ReferencePath>
<ReferencePath>$(ProjectDir)/Assets/Plugins/Sirenix/Assemblies;$(ReferencePath)</ReferencePath>
<ReferencePath>$(ProjectDir)/Assets/Plugins/Demigiant/DOTween;$(ReferencePath)</ReferencePath>
<ReferencePath>$(ProjectDir)/Assets/Plugins/Rewired/Internal/Libraries/Runtime;$(ReferencePath)</ReferencePath>
<ReferencePath>$(ProjectDir)/Assets/Plugins/WeightedRandomizer;$(ReferencePath)</ReferencePath>
<AssemblySearchPaths>$(AssemblySearchPaths);$(ReferencePath)</AssemblySearchPaths>
<!-- Remember to add $(ReferencePath) at the end so you don't keep throwing it out with each new value -->
</PropertyGroup>
<ItemGroup Label="Assembly References">
<Reference Include="DOTween" />
<Reference Include="Entitas" />
<Reference Include="Entitas.CodeGeneration.Attributes" />
<Reference Include="FNG.CodeGeneration.Attributes" />
<Reference Include="GifMaker.Runtime" />
<Reference Include="mscorlib" />
<Reference Include="netstandard" />
<Reference Include="ParadoxNotion" />
<Reference Include="MessagePack" />
<Reference Include="MessagePack.Annotations" />
<Reference Include="UnityAtoms.UnityAtomsBaseAtoms.Runtime" />
<Reference Include="UnityAtoms.UnityAtomsCore.Runtime" />
<Reference Include="Rewired_Core" />
<Reference Include="Sirenix.OdinInspector.Attributes" />
<Reference Include="System" />
<Reference Include="System.Collections.Immutable" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime" />
<Reference Include="System.Runtime.Serialization.Primitives"/>
<Reference Include="System.Runtime.Serialization"/>
<Reference Include="Unity.Addressables" />
<Reference Include="Unity.ResourceManager" />
<Reference Include="UnityEngine" />
<Reference Include="UnityEngine.AnimationModule" />
<Reference Include="UnityEngine.AudioModule" />
<Reference Include="UnityEngine.CoreModule" />
<Reference Include="UnityEngine.DirectorModule" />
<Reference Include="UnityEngine.GridModule" />
<Reference Include="UnityEngine.InputModule" />
<Reference Include="UnityEngine.InputLegacyModule" />
<Reference Include="UnityEngine.Physics2DModule" />
<Reference Include="UnityEngine.TilemapModule" />
<Reference Include="UnityEngine.UI" />
<Reference Include="UnityEngine.UIModule" />
<Reference Include="Unity.Localization" />
<Reference Include="UniTask" />
<Reference Include="Weighted_Randomizer" />
<Reference Include="Zor.RandomGenerators" />
<!-- These are compiled assemblies, not source code repos. -->
</ItemGroup>
<ItemGroup>
<Compile Include="Assets\Scripts\Generated\Game\Systems\DisposeOfGamePositionTweenSystem.cs" />
<Compile Include="Assets\Scripts\Generated\Game\GameEntity.cs" />
<Compile Include="Assets\Scripts\Generated\Timer\TimerEntity.cs" />
<Compile Include="Assets\Scripts\Generated\Ui\UiEntity.cs" />
<!-- Omitted for brevity -->
<Compile Include="Assets\Scripts\Generated\Global\GlobalCleanupSystems.cs" />
<Compile Include="Assets\Scripts\Generated\Status\StatusCleanupSystems.cs" />
<Compile Include="Assets\Scripts\Generated\Feature.cs" />
</ItemGroup>
<ItemGroup Label="Project Source Files">
<Compile Include="Assets\Scripts\Atoms\**\*.cs" />
<Compile Include="Assets\Scripts\Attributes\*.cs" />
<Compile Include="Assets\Scripts\Common\**\*.cs" />
<Compile Include="Assets\Scripts\Components\**\*.cs" />
<Compile Include="Assets\Scripts\Data\**\*.cs" />
<Compile Include="Assets\Scripts\EntityIndex\**\*.cs" />
<Compile Include="Assets\Scripts\SaveData\**\*.cs" />
<Compile Include="Assets\Scripts\Services\**\*.cs" />
<Compile Include="Assets\Scripts\Utils\**\*.cs" />
</ItemGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment