|
13 | 13 | <PackageReadmeFile>README.md</PackageReadmeFile> |
14 | 14 | <Version>0.8.0</Version> |
15 | 15 | </PropertyGroup> |
16 | | - |
17 | 16 | <!-- Common Build Properties --> |
18 | 17 | <PropertyGroup> |
19 | 18 | <TargetFramework>net472</TargetFramework> |
20 | 19 | <LangVersion>latest</LangVersion> |
21 | 20 | <Nullable>enable</Nullable> |
22 | 21 | <Deterministic>true</Deterministic> |
23 | 22 | <GenerateAssemblyInfo>true</GenerateAssemblyInfo> |
24 | | - |
25 | 23 | <!-- Debug/Release specific settings --> |
26 | 24 | <DebugType Condition="'$(Configuration)'=='Debug'">embedded</DebugType> |
27 | 25 | <DebugType Condition="'$(Configuration)'=='Release'">pdbonly</DebugType> |
28 | 26 | <Optimize Condition="'$(Configuration)'=='Release'">true</Optimize> |
29 | | - |
30 | 27 | <!-- Assembly Metadata --> |
31 | 28 | <AssemblyTitle>$(MSBuildProjectName)</AssemblyTitle> |
32 | 29 | <Product>$(MSBuildProjectName)</Product> |
33 | | - |
34 | 30 | <!-- Code Quality --> |
35 | 31 | <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> |
36 | 32 | <EnableNETAnalyzers>true</EnableNETAnalyzers> |
37 | 33 | <AnalysisLevel>latest-all</AnalysisLevel> |
38 | 34 | <WarningLevel>9999</WarningLevel> |
39 | 35 | <TreatWarningsAsErrors>true</TreatWarningsAsErrors> |
40 | 36 | <WarningsAsErrors /> |
41 | | - <WarningsNotAsErrors>NU1701</WarningsNotAsErrors> <!-- Allow .NET Framework dependencies --> |
42 | | - |
| 37 | + <WarningsNotAsErrors>NU1701</WarningsNotAsErrors> |
| 38 | + <!-- Allow .NET Framework dependencies --> |
43 | 39 | <CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies> |
44 | 40 | <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> |
45 | 41 | </PropertyGroup> |
46 | | - |
47 | 42 | <!-- Resonite Path Discovery --> |
48 | 43 | <PropertyGroup Condition="'$(ResonitePath)'==''"> |
49 | 44 | <ResonitePath>$(MSBuildThisFileDirectory)Resonite/</ResonitePath> |
50 | | - <ResonitePath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\Resonite\')">C:\Program Files (x86)\Steam\steamapps\common\Resonite\</ResonitePath> |
51 | | - <ResonitePath Condition="Exists('$(HOME)/.steam/steam/steamapps/common/Resonite/')">$(HOME)/.steam/steam/steamapps/common/Resonite/</ResonitePath> |
| 45 | + <ResonitePath Condition="Exists('C:\Program Files (x86)\Steam\steamapps\common\Resonite\')" |
| 46 | + >C:\Program Files (x86)\Steam\steamapps\common\Resonite\</ResonitePath |
| 47 | + > |
| 48 | + <ResonitePath Condition="Exists('$(HOME)/.steam/steam/steamapps/common/Resonite/')" |
| 49 | + >$(HOME)/.steam/steam/steamapps/common/Resonite/</ResonitePath |
| 50 | + > |
52 | 51 | </PropertyGroup> |
53 | | - |
54 | 52 | <!-- Normalize ResonitePath --> |
55 | 53 | <PropertyGroup> |
56 | 54 | <ResonitePath>$([MSBuild]::EnsureTrailingSlash('$(ResonitePath)'))</ResonitePath> |
57 | 55 | </PropertyGroup> |
58 | | - |
59 | 56 | <!-- Derived Resonite Paths --> |
60 | 57 | <PropertyGroup> |
61 | 58 | <ResoniteManagedPath>$(ResonitePath)Resonite_Data\Managed\</ResoniteManagedPath> |
62 | 59 | <ResoniteModsPath>$(ResonitePath)rml_mods</ResoniteModsPath> |
63 | 60 | <ResoniteHotReloadPath>$(ResonitePath)rml_mods\HotReloadMods</ResoniteHotReloadPath> |
64 | 61 | <ResoniteLibsPath>$(ResonitePath)rml_libs\</ResoniteLibsPath> |
65 | 62 | </PropertyGroup> |
66 | | - |
67 | 63 | <!-- Common Resonite References --> |
68 | 64 | <ItemGroup> |
69 | 65 | <!-- Core Resonite Mod Dependencies --> |
|
73 | 69 | </Reference> |
74 | 70 | <Reference Include="HarmonyLib"> |
75 | 71 | <HintPath>$(ResoniteLibsPath)0Harmony.dll</HintPath> |
76 | | - <HintPath Condition="Exists('$(ResonitePath)0Harmony.dll')">$(ResonitePath)0Harmony.dll</HintPath> |
| 72 | + <HintPath Condition="Exists('$(ResonitePath)0Harmony.dll')" |
| 73 | + >$(ResonitePath)0Harmony.dll</HintPath |
| 74 | + > |
77 | 75 | <Private>false</Private> |
78 | 76 | </Reference> |
79 | | - |
80 | 77 | <!-- Core Resonite Engine References (Managed) --> |
81 | 78 | <Reference Include="FrooxEngine"> |
82 | 79 | <HintPath>$(ResoniteManagedPath)FrooxEngine.dll</HintPath> |
|
90 | 87 | <HintPath>$(ResoniteManagedPath)Elements.Assets.dll</HintPath> |
91 | 88 | <Private>false</Private> |
92 | 89 | </Reference> |
93 | | - |
94 | 90 | <Reference Include="System.Text.Json"> |
95 | 91 | <HintPath>$(ResoniteManagedPath)System.Text.Json.dll</HintPath> |
96 | 92 | <Private>false</Private> |
|
99 | 95 | <HintPath>$(ResoniteManagedPath)System.Memory.dll</HintPath> |
100 | 96 | <Private>false</Private> |
101 | 97 | </Reference> |
102 | | - |
103 | 98 | <!-- Debug-only references --> |
104 | 99 | <Reference Include="ResoniteHotReloadLib" Condition="'$(Configuration)'=='Debug'"> |
105 | 100 | <HintPath>$(ResoniteLibsPath)ResoniteHotReloadLib.dll</HintPath> |
106 | 101 | <Private>false</Private> |
107 | 102 | </Reference> |
108 | 103 | </ItemGroup> |
109 | | - |
110 | 104 | <!-- Common Items --> |
111 | 105 | <ItemGroup> |
112 | 106 | <None Include="$(MSBuildThisFileDirectory).github\**\*" LinkBase=".github" /> |
|
0 commit comments