Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
add non-building run configs
Browse files Browse the repository at this point in the history
add support from building from ref assemblies
  • Loading branch information
Tyler-IN committed May 15, 2020
1 parent 23eb015 commit 7e4c359
Show file tree
Hide file tree
Showing 8 changed files with 113 additions and 10 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 36 additions & 5 deletions src/CommunityPatch/CommunityPatch.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,33 @@
<IsPackable>false</IsPackable>
</PropertyGroup>

<Choose>
<When Condition="'$(MnB2BannerlordRefAsmsVersion)'==''">
<ItemGroup>
<Reference Include="$(MnB2BannerlordBinDir)\TaleWorlds.*.dll" Exclude="$(MnB2BannerlordBinDir)\TaleWorlds.Starter.DotNetCore.dll">
<HintPath>%(Identity)</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
</When>
<Otherwise>
<PropertyGroup>
<ReferenceAssemblyGeneratorDir Condition="'$(ReferenceAssemblyGeneratorDir)'==''">..\..\tools\ReferenceAssemblyGenerator</ReferenceAssemblyGeneratorDir>
<MnB2BannerlordRefAsmsDir Condition="'$(MnB2BannerlordRefAsmsDir)'==''">$(ReferenceAssemblyGeneratorDir)\ref-$(MnB2BannerlordRefAsmsVersion)</MnB2BannerlordRefAsmsDir>
</PropertyGroup>
<ItemGroup>
<Reference Include="$(MnB2BannerlordRefAsmsDir)\TaleWorlds.*.dll" Exclude="$(MnB2BannerlordRefAsmsDir)\TaleWorlds.Starter.DotNetCore.dll">
<HintPath>%(Identity)</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="JetBrains.Annotations" Version="2020.1.0" PrivateAssets="All" />
</ItemGroup>
</Otherwise>
</Choose>

<ItemGroup>
<Reference Include="$(MnB2BannerlordBinDir)\TaleWorlds.*.dll" Exclude="$(MnB2BannerlordBinDir)\TaleWorlds.Starter.DotNetCore.dll">
<HintPath>%(Identity)</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="$(PkgLib_Harmony)\lib\net472\0Harmony.dll">
<HintPath>%(Identity)</HintPath>
<Private>True</Private>
Expand All @@ -46,7 +68,7 @@
<ItemGroup>
<PackageReference Include="HardwareProviders.CPU.Standard" Version="2.0.1" />
<PackageReference Include="HardwareProviders.Standard" Version="2.0.1" />
<PackageReference Include="Lib.Harmony" Version="2.0.0.9" PrivateAssets="All">
<PackageReference Include="Lib.Harmony" Version="2.0.1" PrivateAssets="All">
<GeneratePathProperty>True</GeneratePathProperty>
<NoWarn>NU1701</NoWarn>
</PackageReference>
Expand Down Expand Up @@ -81,4 +103,13 @@
<SourceRevisionId Condition="'$(SourceRevisionId)' != ''">$(SourceRevisionId.Substring(0,7))</SourceRevisionId>
</PropertyGroup>
</Target>

<Target Name="PostBuildCleanup" AfterTargets="Build">
<Message Importance="high" Text="PostBuildCleanup" />
<ItemGroup>
<FilesToRemove Include="$(OutputPath)\InlineIL.dll" />
<FilesToRemove Include="$(OutputPath)\JetBrains.Annotations.dll" />
</ItemGroup>
<Delete Files="@(FilesToRemove)" ContinueOnError="false" />
</Target>
</Project>

0 comments on commit 7e4c359

Please sign in to comment.