Ver Fonte

Upgrade all projects to C#8

ghorsington há 4 anos atrás
pai
commit
0d6422e09e

+ 1 - 0
BepInEx.Bootstrap/BepInEx.Bootstrap.csproj

@@ -5,6 +5,7 @@
     <Product>BepInEx.Bootstrap</Product>
     <DebugType>none</DebugType>
     <OutputPath>..\bin\patcher\</OutputPath>
+    <LangVersion>8</LangVersion>
     <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
     <GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
     <GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>

+ 1 - 6
BepInEx.Core/BepInEx.Core.csproj

@@ -4,6 +4,7 @@
     <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
     <AssemblyTitle>BepInEx</AssemblyTitle>
     <Product>BepInEx</Product>
+    <LangVersion>8</LangVersion>
     <Description>Unity plugin injection framework</Description>
     <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
     <GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
@@ -27,12 +28,6 @@
     <DebugType>portable</DebugType>
   </PropertyGroup>
   <ItemGroup>
-    <Reference Include="0Harmony, Version=2.1.0.0, Culture=neutral, processorArchitecture=MSIL">
-      <HintPath>C:\Users\Richard\.nuget\packages\harmonyx\2.1.0-beta.8\lib\net35\0Harmony.dll</HintPath>
-      <SpecificVersion>False</SpecificVersion>
-    </Reference>
-  </ItemGroup>
-  <ItemGroup>
     <PackageReference Include="HarmonyX" Version="2.1.1" />
     <PackageReference Include="Mono.Cecil" Version="0.10.4" />
     <PackageReference Include="MonoMod.Utils" Version="20.11.5.1" />

+ 1 - 0
BepInEx.NetLauncher/BepInEx.NetLauncher.csproj

@@ -5,6 +5,7 @@
     <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
     <AssemblyTitle>BepInEx.NetLauncher</AssemblyTitle>
     <Product>BepInEx.NetLauncher</Product>
+    <LangVersion>8</LangVersion>
     <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
     <GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
     <GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>

+ 3 - 2
BepInEx.Patcher/BepInEx.Patcher.csproj

@@ -8,6 +8,7 @@
     <DebugType>embedded</DebugType>
     <DebugSymbols>true</DebugSymbols>
     <OutputPath>..\bin\patcher\</OutputPath>
+    <LangVersion>8</LangVersion>
     <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
     <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
     <GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
@@ -25,8 +26,8 @@
     <PackageReference Include="Mono.Cecil" Version="0.10.4" />
   </ItemGroup>
   <ItemGroup>
-    <Reference Include="Mono.Cecil, Version=0.10.3.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
-      <HintPath>$(SolutionDir)\packages\Mono.Cecil.0.10.3\lib\net35\Mono.Cecil.dll</HintPath>
+    <Reference Include="Mono.Cecil, Version=0.10.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
+      <HintPath>$(SolutionDir)\packages\Mono.Cecil.0.10.4\lib\net35\Mono.Cecil.dll</HintPath>
     </Reference>
   </ItemGroup>
   <ItemGroup>

+ 1 - 0
BepInEx.Preloader.Core/BepInEx.Preloader.Core.csproj

@@ -4,6 +4,7 @@
     <AssemblyTitle>BepInEx.Preloader.Core</AssemblyTitle>
     <Product>BepInEx.Preloader.Core</Product>
     <OutputPath>..\bin\</OutputPath>
+    <LangVersion>8</LangVersion>
     <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
     <GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
     <GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>

+ 1 - 0
BepInEx.Preloader.Unity/BepInEx.Preloader.Unity.csproj

@@ -4,6 +4,7 @@
     <AssemblyTitle>BepInEx.Preloader.Unity</AssemblyTitle>
     <Product>BepInEx.Preloader.Unity</Product>
     <OutputPath>..\bin\</OutputPath>
+    <LangVersion>8</LangVersion>
     <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
     <GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
     <GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>

+ 1 - 0
BepInEx.Unity/BepInEx.Unity.csproj

@@ -4,6 +4,7 @@
     <AssemblyTitle>BepInEx.Unity</AssemblyTitle>
     <Product>BepInEx.Unity</Product>
     <OutputPath>..\bin\Unity\</OutputPath>
+    <LangVersion>8</LangVersion>
     <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
     <GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
     <GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>