Skip to content

Commit

Permalink
harmonyx, new csproj, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkroeg committed Apr 17, 2023
1 parent f7ccf10 commit e322e15
Show file tree
Hide file tree
Showing 13 changed files with 99 additions and 323 deletions.
1 change: 1 addition & 0 deletions MapRandomizer/MapRandomizer/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
global using HarmonyLib;
147 changes: 77 additions & 70 deletions MapRandomizer/MapRandomizer/MapRandomizer.csproj
Original file line number Diff line number Diff line change
@@ -1,84 +1,91 @@
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{70F28A1A-58F4-4061-B12B-17F8B19A3CAA}</ProjectGuid>
<OutputType>Library</OutputType>
<NoStandardLibraries>false</NoStandardLibraries>
<AssemblyName>MapRandomizer</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<Project Sdk="Microsoft.NET.Sdk" InitialTargets="ValidateBattleTechGameDir">
<Target Name="ValidateBattleTechGameDir" Condition="'$(BattleTechGameDir)' == '' Or !Exists('$(BattleTechGameDir)')">
<Error Text="BattleTechGameDir variable not set properly" />
</Target>
<PropertyGroup Condition="'$(MapRandomizerModPath)' == '' And Exists('$(BattleTechGameDir)\Mods\Core\MapRandomizer')">
<!-- RogueTech -->
<MapRandomizerModPath>$(BattleTechGameDir)\Mods\Core\CollateralDamageCollateralDamage</MapRandomizerModPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<PropertyGroup Condition="'$(MapRandomizerModPath)' == '' And Exists('$(BattleTechGameDir)\Mods\MapRandomizer')">
<!-- flat dir -->
<MapRandomizerModPath>$(BattleTechGameDir)\Mods\MapRandomizer</MapRandomizerModPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<PropertyGroup Condition="'$(MapRandomizerModPath)' == ''">
<!-- sources dir -->
<MapRandomizerModPath>$(MSBuildProjectDirectory)\..</MapRandomizerModPath>
</PropertyGroup>
<PropertyGroup>
<RootNamespace>MapRandomizer</RootNamespace>
<OutputType>Library</OutputType>
<TargetFramework>net472</TargetFramework>
<LangVersion>11</LangVersion>
<AssemblySearchPaths>
$(ReferencePath);
{HintPathFromItem};
$(BattleTechGameDir)\BattleTech_Data\Managed\
</AssemblySearchPaths>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
<Nullable>enable</Nullable>
</PropertyGroup>
<Target Name="CopyFilesToGame" AfterTargets="CopyFilesToOutputDirectory">
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(MapRandomizerModPath)" />
</Target>
<PropertyGroup>
<!-- avoids IgnoresAccessChecksToAttribute warnings -->
<PublicizerRuntimeStrategies>Unsafe</PublicizerRuntimeStrategies>
<AssemblyVersion>1.1.0.0</AssemblyVersion>
<FileVersion>1.1.0.0</FileVersion>
</PropertyGroup>
<ItemGroup>
<Reference Include="0Harmony">
<HintPath>$(BattleTechGameDir)\BattleTech_Data\Managed\0Harmony.dll</HintPath>
</Reference>
<PackageReference Include="Krafs.Publicizer" Version="2.2.1" />
<Publicize Include="Assembly-CSharp" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="HarmonyX" Version="2.10.1">
<PrivateAssets>all</PrivateAssets>
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp">
<HintPath>$(BattleTechGameDir)\BattleTech_Data\Managed\Assembly-CSharp.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Assembly-CSharp-firstpass">
<Private>False</Private>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Newtonsoft.Json">
<HintPath>$(BattleTechGameDir)\BattleTech_Data\Managed\Newtonsoft.Json.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="InControl">
<Private>False</Private>
</Reference>
<Reference Include="System">
<Private>False</Private>
</Reference>
<Reference Include="System.Core">
<Private>False</Private>
</Reference>
<Reference Include="System.Data">
<Private>False</Private>
</Reference>
<Reference Include="System.Xml">
<Private>False</Private>
</Reference>
<Reference Include="Unity.TextMeshPro">
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine">
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="UnityEngine.CoreModule">
<HintPath>$(BattleTechGameDir)\BattleTech_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UI" Publicize="true">
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.UIModule">
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<None Include=".vs\ModtekTest2\v16\.suo" />
<None Include=".vs\ModtekTest\v16\.suo" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="source\Logger.cs" />
<Compile Include="source\ModInit.cs" />
<Compile Include="source\Patches\DifficultyPersistancePatches.cs" />
<Compile Include="source\Patches\MapRandomizer.cs" />
<Compile Include="source\ModState.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSHARP.Targets" />
<ProjectExtensions>
<VisualStudio AllowExistingFolder="true" />
</ProjectExtensions>
</Project>
32 changes: 0 additions & 32 deletions MapRandomizer/MapRandomizer/Properties/AssemblyInfo.cs

This file was deleted.

63 changes: 0 additions & 63 deletions MapRandomizer/MapRandomizer/Properties/Resources.Designer.cs

This file was deleted.

101 changes: 0 additions & 101 deletions MapRandomizer/MapRandomizer/Properties/Resources.resx

This file was deleted.

Binary file not shown.
Binary file not shown.
16 changes: 0 additions & 16 deletions MapRandomizer/MapRandomizer/Release/mod.json

This file was deleted.

16 changes: 0 additions & 16 deletions MapRandomizer/MapRandomizer/mod.json

This file was deleted.

Loading

0 comments on commit e322e15

Please sign in to comment.