Skip to content

Commit febb166

Browse files
committed
Use nuget
1 parent e82f2aa commit febb166

7 files changed

Lines changed: 22 additions & 88 deletions

File tree

GraphicsSettings/GraphicsSettings.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
using System.Linq;
77
using UnityEngine;
88

9+
[assembly: System.Reflection.AssemblyFileVersion(GraphicsSettings.GraphicsSettings.Version)]
10+
911
namespace GraphicsSettings
1012
{
1113
[BepInPlugin(GUID, "Graphics Settings", Version)]
Lines changed: 10 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,15 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1+
<Project Sdk="Microsoft.NET.Sdk">
42
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{9BBA5DAE-624E-4FF0-80A2-F14029EE34E9}</ProjectGuid>
8-
<OutputType>Library</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>GraphicsSettings</RootNamespace>
11-
<AssemblyName>GraphicsSettings</AssemblyName>
12-
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
14-
<Deterministic>true</Deterministic>
15-
</PropertyGroup>
16-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17-
<DebugSymbols>true</DebugSymbols>
18-
<DebugType>full</DebugType>
19-
<Optimize>false</Optimize>
20-
<OutputPath>..\bin\Debug\</OutputPath>
21-
<DefineConstants>DEBUG;TRACE</DefineConstants>
22-
<ErrorReport>prompt</ErrorReport>
23-
<WarningLevel>4</WarningLevel>
24-
</PropertyGroup>
25-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
263
<DebugType>embedded</DebugType>
27-
<Optimize>true</Optimize>
28-
<OutputPath>..\bin\Release\</OutputPath>
29-
<DefineConstants>TRACE</DefineConstants>
30-
<ErrorReport>prompt</ErrorReport>
31-
<WarningLevel>4</WarningLevel>
32-
<DebugSymbols>true</DebugSymbols>
4+
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
5+
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
6+
<OutputPath>$(SolutionDir)bin\$(Configuration)</OutputPath>
7+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
8+
<TargetFramework>net35</TargetFramework>
339
</PropertyGroup>
3410
<ItemGroup>
35-
<Reference Include="0Harmony">
36-
<HintPath>..\lib\0Harmony.dll</HintPath>
37-
<Private>False</Private>
38-
</Reference>
39-
<Reference Include="BepInEx">
40-
<HintPath>..\lib\BepInEx.dll</HintPath>
41-
<Private>False</Private>
42-
</Reference>
43-
<Reference Include="System" />
44-
<Reference Include="UnityEngine">
45-
<HintPath>..\lib\UnityEngine.dll</HintPath>
46-
<Private>False</Private>
47-
</Reference>
48-
</ItemGroup>
49-
<ItemGroup>
50-
<Compile Include="ConfigurationManagerAttributes.cs" />
51-
<Compile Include="GraphicsSettings.cs" />
52-
<Compile Include="Properties\AssemblyInfo.cs" />
53-
<Compile Include="SettingEnum.cs" />
54-
<Compile Include="WinAPI.cs" />
11+
<PackageReference Include="BepInEx.Core" Version="5.4.21" />
12+
<PackageReference Include="UnityEngine" Version="5.6.1" />
13+
<PackageReference Include="BepInEx.Analyzers" Version="1.0.4" />
5514
</ItemGroup>
56-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
57-
</Project>
15+
</Project>

GraphicsSettings/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 36 deletions
This file was deleted.

lib/0Harmony.dll

-76 KB
Binary file not shown.

lib/BepInEx.dll

-58.5 KB
Binary file not shown.

lib/UnityEngine.dll

-1 MB
Binary file not shown.

nuget.config

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageRestore>
4+
<add key="enabled" value="True" />
5+
<add key="automatic" value="True" />
6+
</packageRestore>
7+
<packageSources>
8+
<add key="BepInExLibs" value="https://nuget.bepinex.dev/v3/index.json" />
9+
</packageSources>
10+
</configuration>

0 commit comments

Comments
 (0)