Created
May 15, 2021 10:12
-
-
Save pardeike/41e414e5204dbf4c4e3e78407bf754a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<RootNamespace>Analyzer</RootNamespace> | |
<AssemblyName>PerformanceAnalyzer</AssemblyName> | |
<TargetFramework>net472</TargetFramework> | |
<LangVersion>8.0</LangVersion> | |
<PlatformTarget>x64</PlatformTarget> | |
<OutputPath>..\1.2\Assemblies\</OutputPath> | |
<Optimize>true</Optimize> | |
<DebugType>pdbonly</DebugType> | |
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | |
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | |
<DefineConstants>TRACE;NDEBUG</DefineConstants> | |
<WarningLevel>4</WarningLevel> | |
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | |
<DefineConstants>TRACE;DEBUG</DefineConstants> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.2.2753-REV" GeneratePathProperty="true"/> | |
<PackageReference Include="Lib.Harmony" Version="2.0.2" ExcludeAssets="runtime" /> | |
<PackageReference Include="Microsoft.NETCore.Platforms" Version="1.1.0" /> | |
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net472" Version="1.0.0"/> | |
<PackageReference Include="TaskPubliciser" Version="1.0.3" /> | |
</ItemGroup> | |
<Target Name="MyCode" BeforeTargets="UpdateReferences"> | |
<!-- Set our variables --> | |
<PropertyGroup> | |
<AssemblyCSharp>$(PkgKrafs_Rimworld_Ref)\ref\net472\Assembly-CSharp.dll</AssemblyCSharp> | |
<Unity_CoreModule>$(PkgKrafs_Rimworld_Ref)\ref\net472\UnityEngine.CoreModule.dll</Unity_CoreModule> | |
<PubliciseOutputPath>$(PkgKrafs_Rimworld_Ref)\ref\net472\</PubliciseOutputPath> | |
<AssemblyCSharp_Publicised>$(PubliciseOutputPath)Assembly-CSharp_publicised.dll</AssemblyCSharp_Publicised> | |
<Unity_CoreModule_Publicised>$(PubliciseOutputPath)UnityEngine.CoreModule_publicised.dll</Unity_CoreModule_Publicised> | |
</PropertyGroup> | |
<!-- Publicise the dlls (if required) --> | |
<Message Importance="High" Text="Publicising Rimworld Assembly ..." /> | |
<Publicise TargetAssemblyPath="$(AssemblyCSharp)" OutputPath="$(PubliciseOutputPath)" Condition="Exists('$(AssemblyCSharp)')" /> | |
<Publicise TargetAssemblyPath="$(Unity_CoreModule)" OutputPath="$(PubliciseOutputPath)" Condition="Exists('$(Unity_CoreModule)')" /> | |
<!-- Add references to the new publicised dlls --> | |
<Message Importance="High" Text="Replacing reference to un-publicised assemblies with publicised equivalents ..." /> | |
<ItemGroup> | |
<Reference Include="$(AssemblyCSharp_Publicised)"> | |
<SpecificVersion>false</SpecificVersion> | |
<HintPath>$(AssemblyCSharp_Publicised)</HintPath> | |
<Implicit>true</Implicit> | |
<Private>false</Private> | |
</Reference> | |
<Reference Include="$(Unity_CoreModule_Publicised)"> | |
<SpecificVersion>false</SpecificVersion> | |
<HintPath>$(Unity_CoreModule_Publicised)</HintPath> | |
<Implicit>true</Implicit> | |
<Private>false</Private> | |
</Reference> | |
</ItemGroup> | |
</Target> | |
<Target Name="UpdateReferences" AfterTargets="ResolveLockFileReferences"> | |
<Message Importance="High" Text="Remove References ..." /> | |
<ItemGroup> | |
<Reference Remove="$(PkgKrafs_Rimworld_Ref)\ref\net472\Assembly-CSharp.dll" /> | |
<Reference Remove="$(PkgKrafs_Rimworld_Ref)\ref\net472\UnityEngine.CoreModule.dll" /> | |
</ItemGroup> | |
</Target> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment