|
16 | 16 | <FileAlignment>512</FileAlignment> |
17 | 17 | </PropertyGroup> |
18 | 18 |
|
19 | | - <ItemGroup Condition="'$(Configuration)' == 'Debug'" > |
| 19 | + <ItemGroup Condition="'$(Configuration)' == 'Debug'"> |
20 | 20 | <PackageReference Include="BepInEx.Analyzers" Version="1.*" /> |
21 | 21 | <PackageReference Include="Microsoft.Unity.Analyzers" Version="1.*" /> |
22 | 22 | </ItemGroup> |
|
26 | 26 | <DefineConstants>$(MSBuildProjectName.Replace('.',';').Replace('-',';').Replace('_',';'))</DefineConstants> |
27 | 27 | </PropertyGroup> |
28 | 28 |
|
| 29 | + <!--Add common nuget packages based on the project name. Must use regex in this way to avoid KK matching KKS, HS matching HS2, etc.--> |
| 30 | + <ItemGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch(';$(DefineConstants);', ';PC;'))"> |
| 31 | + <PackageReference Include="IllusionLibs.BepInEx" Version="5.*" /> |
| 32 | + </ItemGroup> |
| 33 | + <ItemGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch(';$(DefineConstants);', ';PH;'))"> |
| 34 | + <PackageReference Include="ExtensibleSaveFormat.PlayHome" Version="21.0" /> |
| 35 | + <PackageReference Include="IllusionLibs.PlayHome.AllPackages" Version="*" /> |
| 36 | + </ItemGroup> |
| 37 | + <ItemGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch(';$(DefineConstants);', ';HS;'))"> |
| 38 | + <PackageReference Include="IllusionLibs.HoneySelect.AllPackages" Version="*" /> |
| 39 | + </ItemGroup> |
| 40 | + <ItemGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch(';$(DefineConstants);', ';AI;'))"> |
| 41 | + <PackageReference Include="ExtensibleSaveFormat.AIGirl" Version="21.0" /> |
| 42 | + <PackageReference Include="IllusionLibs.AIGirl.AllPackages" Version="*" /> |
| 43 | + </ItemGroup> |
| 44 | + <ItemGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch(';$(DefineConstants);', ';HS2;'))"> |
| 45 | + <PackageReference Include="ExtensibleSaveFormat.HoneySelect2" Version="21.0" /> |
| 46 | + <PackageReference Include="IllusionLibs.HoneySelect2.AllPackages" Version="*" /> |
| 47 | + </ItemGroup> |
| 48 | + <ItemGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch(';$(DefineConstants);', ';EC;'))"> |
| 49 | + <PackageReference Include="ExtensibleSaveFormat.EmotionCreators" Version="21.0" /> |
| 50 | + <PackageReference Include="IllusionLibs.EmotionCreators.AllPackages" Version="*" /> |
| 51 | + </ItemGroup> |
| 52 | + <ItemGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch(';$(DefineConstants);', ';KK;'))"> |
| 53 | + <PackageReference Include="ExtensibleSaveFormat.Koikatu" Version="21.0" /> |
| 54 | + <PackageReference Include="IllusionLibs.Koikatu.AllPackages" Version="*" /> |
| 55 | + <PackageReference Include="KoikatuCompatibilityAnalyzer" Version="*" /> |
| 56 | + </ItemGroup> |
| 57 | + <ItemGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch(';$(DefineConstants);', ';KKS;'))"> |
| 58 | + <PackageReference Include="ExtensibleSaveFormat.KoikatsuSunshine" Version="21.0" /> |
| 59 | + <PackageReference Include="IllusionLibs.KoikatsuSunshine.AllPackages" Version="*" /> |
| 60 | + </ItemGroup> |
| 61 | + |
29 | 62 | <!--Delete unnecessary .deps.json file in build output since it's not used in plugins--> |
30 | 63 | <Target Name="PostBuild" AfterTargets="PostBuildEvent"> |
31 | 64 | <Delete Files="$(OutputPath)\$(MSBuildProjectName).deps.json" /> |
|
0 commit comments