Skip to content

Instantly share code, notes, and snippets.

@JesseTG
Last active January 23, 2022 18:39
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/b420ba2ef84267c7d20c0c0c281357a5 to your computer and use it in GitHub Desktop.
Save JesseTG/b420ba2ef84267c7d20c0c0c281357a5 to your computer and use it in GitHub Desktop.
My Codegen.csproj
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<OutputType>Library</OutputType>
<RootNamespace>CorundumGames.CodeGeneration.Plugins</RootNamespace>
<AssemblyName>CorundumGames.CodeGeneration.Plugins</AssemblyName>
<TargetFramework>net472</TargetFramework>
<Deterministic>true</Deterministic>
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
<IncludeCopyLocalFilesOutputGroup>false</IncludeCopyLocalFilesOutputGroup>
<TargetFrameworkProfile />
<LangVersion>10</LangVersion> <!-- If you use Jenny plugins separately from Unity, you can use the latest C# features -->
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="Entitas.Roslyn.CodeGeneration.Plugins">
<HintPath>$(ProjectDir)\..\Jenny\Plugins\Entitas.Roslyn\Entitas.Roslyn.CodeGeneration.Plugins.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="CorundumGames.CodeGeneration.Attributes">
<SpecificVersion>False</SpecificVersion>
<HintPath>$(ProjectDir)\..\Library\ScriptAssemblies\CorundumGames.CodeGeneration.Attributes.dll</HintPath>
<Private>False</Private>
</Reference>
<None Update="Contexts\ContextsTemplate.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>ContextsTemplate.cs</LastGenOutput>
</None>
<!-- Most of my code generators are generated with T4 -->
<None Update="Contexts\CreateEntityFromDefinitionTemplate.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>CreateEntityFromDefinitionTemplate.cs</LastGenOutput>
</None>
<None Update="Contexts\ContextObserverTemplate.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>ContextObserverTemplate.cs</LastGenOutput>
</None>
<None Update="EntityDefinition\ContextEntityDefinitionTemplate.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>ContextEntityDefinitionTemplate.cs</LastGenOutput>
</None>
<None Update="EntityDefinition\EntityInjectorTemplate.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>EntityInjectorTemplate.cs</LastGenOutput>
</None>
<None Update="Contexts\CreateEntityWithEnumTemplate.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>CreateEntityWithEnumTemplate.cs</LastGenOutput>
</None>
<None Update="Contexts\CreateEntityWithNameTemplate.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>CreateEntityWithNameTemplate.cs</LastGenOutput>
</None>
<None Update="EntityIndex\EntityIndexGeneratorTemplate.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>EntityIndexGeneratorTemplate.cs</LastGenOutput>
</None>
<None Update="EntityDefinition\ApplyEntityDefinitionTemplate.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>ApplyEntityDefinitionTemplate.cs</LastGenOutput>
</None>
<None Update="EntityBehaviour\EntityBehaviourTemplate.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>EntityBehaviourTemplate.cs</LastGenOutput>
</None>
<None Update="Contexts\ContextsDisposableTemplate.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>ContextsDisposableTemplate.cs</LastGenOutput>
</None>
<None Update="DisposableComponent\SystemTemplate.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>SystemTemplate.cs</LastGenOutput>
</None>
<None Update="InitFromUnityComponent\SystemTemplate.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>SystemTemplate.cs</LastGenOutput>
</None>
<None Update="Base\FeatureGeneratorTemplate.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>FeatureGeneratorTemplate.cs</LastGenOutput>
</None>
<None Update="Context\DisposableContextGeneratorTemplate.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>DisposableContextGeneratorTemplate.cs</LastGenOutput>
</None>
<None Update="IndexByPlayer\IndexByPlayerTemplate.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>IndexByPlayerTemplate.cs</LastGenOutput>
</None>
<None Update="IndexByPlayer\ContextsExtensionsTemplate.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>ContextsExtensionsTemplate.cs</LastGenOutput>
</None>
<None Update="IndexByPlayer\ContextMethodTemplate.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>ContextMethodTemplate.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<Compile Include="..\Assets\Scripts\GeneratedExtra\IComponentCloner.cs" />
<Compile Update="Contexts\ContextsTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ContextsTemplate.tt</DependentUpon>
</Compile>
<Compile Update="Contexts\CreateEntityFromDefinitionTemplate.cs">
<DependentUpon>CreateEntityFromDefinitionTemplate.tt</DependentUpon>
</Compile>
<Compile Update="Contexts\ContextObserverTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ContextObserverTemplate.tt</DependentUpon>
</Compile>
<Compile Update="EntityDefinition\ContextEntityDefinitionTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ContextEntityDefinitionTemplate.tt</DependentUpon>
</Compile>
<Compile Update="EntityDefinition\EntityInjectorTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>EntityInjectorTemplate.tt</DependentUpon>
</Compile>
<Compile Update="Contexts\CreateEntityWithEnumTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>CreateEntityWithEnumTemplate.tt</DependentUpon>
</Compile>
<Compile Update="Contexts\CreateEntityWithNameTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>CreateEntityWithNameTemplate.tt</DependentUpon>
</Compile>
<Compile Update="Contexts\ContextObserverTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ContextObserverTemplate.tt</DependentUpon>
</Compile>
<Compile Update="Contexts\ContextsCreateEntityFromDefinitionGeneratorTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ContextsCreateEntityFromDefinitionGeneratorTemplate.tt</DependentUpon>
</Compile>
<Compile Update="Contexts\ContextsCreateEntityWithEnumGeneratorTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ContextsCreateEntityWithEnumGeneratorTemplate.tt</DependentUpon>
</Compile>
<Compile Update="Contexts\ContextsTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ContextsTemplate.tt</DependentUpon>
</Compile>
<Compile Update="Contexts\ContextsCreateEntityWithNameGeneratorTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ContextsCreateEntityWithNameGeneratorTemplate.tt</DependentUpon>
</Compile>
<Compile Update="EntityDefinition\ContextEntityDefinitionGeneratorTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ContextEntityDefinitionGeneratorTemplate.tt</DependentUpon>
</Compile>
<Compile Update="EntityDefinition\EntityInjectorGeneratorTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>EntityInjectorGeneratorTemplate.tt</DependentUpon>
</Compile>
<Compile Update="EntityIndex\EntityIndexGeneratorTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>EntityIndexGeneratorTemplate.tt</DependentUpon>
</Compile>
<Compile Update="EntityDefinition\ApplyEntityDefinitionTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ApplyEntityDefinitionTemplate.tt</DependentUpon>
</Compile>
<Compile Update="EntityBehaviour\EntityBehaviourTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>EntityBehaviourTemplate.tt</DependentUpon>
</Compile>
<Compile Update="Contexts\ContextsDisposableTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ContextsDisposableTemplate.tt</DependentUpon>
</Compile>
<Compile Update="DisposableComponent\SystemTemplate.cs">
<DependentUpon>SystemTemplate.tt</DependentUpon>
</Compile>
<Compile Update="Generator\InitFromUnityComponent\InitFromUnityComponentSystemGeneratorTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>InitFromUnityComponentSystemGeneratorTemplate.tt</DependentUpon>
</Compile>
<Compile Update="InitFromUnityComponent\SystemTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>SystemTemplate.tt</DependentUpon>
</Compile>
<Compile Update="Base\FeatureGeneratorTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>FeatureGeneratorTemplate.tt</DependentUpon>
</Compile>
<Compile Update="Context\DisposableContextGeneratorTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>DisposableContextGeneratorTemplate.tt</DependentUpon>
</Compile>
<Compile Update="IndexByPlayer\IndexByPlayerTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ContextsExtensionsTemplate.tt</DependentUpon>
</Compile>
<Compile Update="IndexByPlayer\ContextsExtensionsTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ContextsExtensionsTemplate.tt</DependentUpon>
</Compile>
<Compile Update="IndexByPlayer\ContextMethodTemplate.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ContextMethodTemplate.tt</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<!-- Most Entitas libraries and dependencies can now be installed by NuGet (this greatly simplifies the project file) -->
<PackageReference Include="DesperateDevs.Analytics" Version="0.1.0" />
<PackageReference Include="DesperateDevs.CLI.Utils" Version="0.1.0" />
<PackageReference Include="DesperateDevs.CodeGeneration" Version="0.1.0" />
<PackageReference Include="DesperateDevs.CodeGeneration.CodeGenerator" Version="0.1.0" />
<PackageReference Include="DesperateDevs.CodeGeneration.CodeGenerator.Unity.Editor" Version="0.1.0" />
<PackageReference Include="DesperateDevs.CodeGeneration.Plugins" Version="0.1.0" />
<PackageReference Include="DesperateDevs.CodeGeneration.Unity.Plugins" Version="0.1.0" />
<PackageReference Include="DesperateDevs.Logging" Version="0.1.0" />
<PackageReference Include="DesperateDevs.Logging.Formatters" Version="0.1.0" />
<PackageReference Include="DesperateDevs.Networking" Version="0.1.0" />
<PackageReference Include="DesperateDevs.Roslyn" Version="0.1.0" />
<PackageReference Include="DesperateDevs.Roslyn.CodeGeneration.Plugins" Version="0.1.0" />
<PackageReference Include="DesperateDevs.Serialization" Version="0.1.0" />
<PackageReference Include="DesperateDevs.Unity.Editor" Version="0.1.0" />
<PackageReference Include="DesperateDevs.Utils" Version="0.1.0" />
<PackageReference Include="Entitas" Version="1.13.0" />
<PackageReference Include="Entitas.CodeGeneration.Attributes" Version="1.13.0" />
<PackageReference Include="Entitas.CodeGeneration.Plugins" Version="1.13.0" />
<PackageReference Include="Entitas.Unity" Version="1.13.0" />
<PackageReference Include="Entitas.Unity.Editor" Version="1.13.0" />
<PackageReference Include="Entitas.VisualDebugging.CodeGeneration.Plugins" Version="1.13.0" />
<PackageReference Include="Entitas.VisualDebugging.Unity" Version="1.13.0" />
<PackageReference Include="Entitas.VisualDebugging.Unity.Editor" Version="1.13.0" />
<PackageReference Include="JetBrains.Annotations" Version="2021.3.0" />
<PackageReference Include="Microsoft.Build" Version="16.5.0" />
<PackageReference Include="Microsoft.Build.Framework" Version="16.5.0" />
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="16.5.0" />
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.5.0" />
<PackageReference Include="Microsoft.CodeAnalysis" Version="3.11.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.11.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.11.0" />
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="3.11.0" />
<PackageReference Include="System.Collections.Immutable" Version="5.0.0" />
<!-- Roslyn analyzers (used by the IDE, not by Unity) to improve my code -->
<PackageReference Include="CSharpGuidelinesAnalyzer" Version="3.5.0" IncludeAssets="analyzers" />
<PackageReference Include="DotNetAnalyzers.DocumentationAnalyzers" Version="1.0.0-beta.59" IncludeAssets="analyzers" />
<PackageReference Include="ErrorProne.NET.CoreAnalyzers" Version="0.3.0-beta.0" IncludeAssets="analyzers" />
<PackageReference Include="ErrorProne.NET.Structs" Version="0.3.0-beta.0" IncludeAssets="analyzers" />
<PackageReference Include="Meziantou.Analyzer" Version="1.0.570" IncludeAssets="analyzers" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.0" IncludeAssets="analyzers" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.2" IncludeAssets="analyzers" />
<PackageReference Include="Microsoft.DotNet.Analyzers.Compatibility" Version="0.2.12-alpha" IncludeAssets="analyzers" />
<PackageReference Include="Microsoft.NetCore.Analyzers" Version="3.3.0" IncludeAssets="analyzers" />
<PackageReference Include="NetFabric.Hyperlinq.Analyzer" Version="2.0.1" IncludeAssets="analyzers" />
<PackageReference Include="ReflectionAnalyzers" Version="0.1.22-dev" IncludeAssets="analyzers" />
<PackageReference Include="RG.CodeAnalyzer" Version="1.0.13" />
<PackageReference Include="Roslynator.Analyzers" Version="3.0.0" IncludeAssets="analyzers" />
<PackageReference Include="SmartanAlyzers.ExceptionAnalyzer" Version="1.0.10" />
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.14.0.22654" IncludeAssets="analyzers" />
</ItemGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment