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

Commit

Permalink
Add Microsoft.Unity.Analyzers
Browse files Browse the repository at this point in the history
  • Loading branch information
ghorsington committed Oct 9, 2020
1 parent 9ed3896 commit 13b9e82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ The template comes preconfigured with the following components:
* **HarmonyX 2.0.6** - Harmony fork that is used in BepInEx. With this you can patch game functions at runtime.
* **BepInEx.Analyzers 1.0.0** - Helper Roslyn analyzers for BepInEx.
* **UnityEngine.Core 5.6.0** - Stubbed UnityEngine 5.6 core library. This is usable for game-independent BepInEx plugins. For game plugin development, you should replace this with `UnityEngine.dll` of the game you're modding.
* **Microsoft.Unity.Analyzers 1.8.2** - A collection of Roslyn analyzers for generic Unity programming.

The template targets .NET Framework 3.5 which is usable for game-independent plugin development. For game-specific development, [target a more specific version](#change-net-api-version)

Expand Down
4 changes: 4 additions & 0 deletions src/BepInExPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

<ItemGroup>
<PackageReference Include="BepInEx.Core" Version="5.3.0.1" IncludeAssets="compile" />
<PackageReference Include="Microsoft.Unity.Analyzers" Version="1.8.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="UnityEngine.Core" Version="5.6.0" IncludeAssets="compile" />
</ItemGroup>

Expand Down

0 comments on commit 13b9e82

Please sign in to comment.