Skip to content

Commit

Permalink
Re-pin dependencies & fetch BepInExPack from NuGet (#396)
Browse files Browse the repository at this point in the history
Clearly pinned versions allow easily telling when game versions changed
when reading the commit history.

To still allow for easy dependency updates, Dependabot has been
configured.
  • Loading branch information
bb010g authored May 21, 2022
1 parent 2615ae7 commit 62b272e
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 21 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ dotnet_diagnostic.CS8602.severity = suggestion
# Accessing a member that was not originally public as suggestion
# We are bound to modify / call private members because of this project nature
dotnet_diagnostic.Publicizer001.severity=suggestion

[*.csproj]
indent_style = space
indent_size = 2
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "nuget"
# uses *.csproj files from projects in /R2API.sln
directory: "/"
schedule:
interval: "daily"
ignore:
- dependency-name: "UnityEngine.Modules"
- dependency-name: "BepInEx.Core"
update-types: ["version-update:semver-major"]
4 changes: 2 additions & 2 deletions R2API.Test/R2API.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
<ItemGroup>
<ProjectReference Include="..\R2API\R2API.csproj" />

<PackageReference Include="BepInEx.Analyzers" Version="1.0.*">
<PackageReference Include="BepInEx.Analyzers" Version="1.0.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>

<PackageReference Include="Microsoft.Unity.Analyzers" Version="1.10.0">
<PackageReference Include="Microsoft.Unity.Analyzers" Version="1.13.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
28 changes: 9 additions & 19 deletions R2API/R2API.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,29 @@
<Version>2.0.0</Version>
<Nullable>annotations</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<NoWarn>$(NoWarn);NU5104</NoWarn>
</PropertyGroup>


<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BepInEx.Analyzers" Version="*">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="bbepis-BepInExPack" Version="5.4.1905" GeneratePathProperty="true" PrivateAssets="all" ExcludeAssets="all" IncludeAssets="none" />
<PackageReference Include="BepInEx.Analyzers" Version="1.0.8" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageReference Include="BepInEx.Core" Version="5.4.19" />
<PackageReference Include="Microsoft.Unity.Analyzers" Version="1.10.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Nullable" Version="1.3.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="RiskOfRain2.GameLibs" Version="*-*" />
<PackageReference Include="Microsoft.Unity.Analyzers" Version="1.13.0" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageReference Include="MMHOOK.RoR2" Version="2022.4.19" NoWarn="NU1701" />
<PackageReference Include="Nullable" Version="1.3.0" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageReference Include="RiskOfRain2.GameLibs" Version="1.2.3.1-r.0" NoWarn="NU5104" />
<PackageReference Include="UnityEngine.Modules" Version="2019.4.26" />
<PackageReference Include="MMHOOK.RoR2" Version="*">
<NoWarn>NU1701</NoWarn>
</PackageReference>
</ItemGroup>

<ItemGroup>
<Reference Include="RoR2BepInExPack">
<HintPath>libs\RoR2BepInExPack.dll</HintPath>
<Private>false</Private>
<HintPath>$(Pkgbbepis-BepInExPack)\lib\$(TargetFramework)\RoR2BepInExPack.dll</HintPath>
<Private>true</Private>
</Reference>
<Reference Include="SimpleJSON">
<HintPath>libs\SimpleJSON.dll</HintPath>
Expand Down
Binary file removed R2API/libs/RoR2BepInExPack.dll
Binary file not shown.
1 change: 1 addition & 0 deletions nuget.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<configuration>
<packageSources>
<add key="BepInEx" value="https://nuget.bepinex.dev/v3/index.json" />
<add key="Thunderstore" value="https://nuget.windows10ce.com/nuget/v3/index.json" />
</packageSources>
</configuration>

0 comments on commit 62b272e

Please sign in to comment.